Directly free structure managed by imemo tmpbuf
authoryui-knk <[email protected]>
Wed, 20 Sep 2023 14:51:39 +0000 (20 23:51 +0900)
committerYuichiro Kaneko <[email protected]>
Fri, 22 Sep 2023 02:25:53 +0000 (22 11:25 +0900)
NODE_ARGS, NODE_ARYPTN, NODE_FNDPTN manage memory of their
structure by imemo tmpbuf Object.
However rb_ast_struct has reference to NODE. Then these
memory can be freed directly when rb_ast_struct is freed.

This commit reduces parser's dependency on CRuby functions.

node.c
parse.y
ruby_parser.c