summaryrefslogtreecommitdiff
path: root/universal_parser.c
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2023-09-20 23:51:39 +0900
committerYuichiro Kaneko <[email protected]>2023-09-22 11:25:53 +0900
commitfb7a2ddb4be21a6d0def8286f341b1b4ee368fe0 ()
treefb69e8ada6e1d86695eb323732ce6577079f3c29 /universal_parser.c
parentbf129370d32da9b673d242bb3c9661f2188b3ad0 (diff)
Directly free structure managed by imemo tmpbuf
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.
-rw-r--r--universal_parser.c2
1 files changed, 0 insertions, 2 deletions
@@ -113,8 +113,6 @@ struct rb_imemo_tmpbuf_struct {
#define new_strterm p->config->new_strterm
#define strterm_is_heredoc p->config->strterm_is_heredoc
-#define rb_imemo_tmpbuf_auto_free_pointer p->config->tmpbuf_auto_free_pointer
-#define rb_imemo_tmpbuf_set_ptr p->config->tmpbuf_set_ptr
#define rb_imemo_tmpbuf_parser_heap p->config->tmpbuf_parser_heap
#define compile_callback p->config->compile_callback