Use rb_gc_mark_and_move for imemo

This commit is contained in:
Peter Zhu 2024-02-16 13:35:33 -05:00
parent 20f03100d5
commit c184aa8740
5 changed files with 105 additions and 216 deletions

2
node.h
View file

@ -62,7 +62,7 @@ void rb_ast_node_type_change(NODE *n, enum node_type type);
const char *ruby_node_name(int node);
void rb_node_init(NODE *n, enum node_type type);
void rb_ast_mark(rb_ast_t*);
void rb_ast_mark_and_move(rb_ast_t *ast, bool reference_updating);
void rb_ast_update_references(rb_ast_t*);
void rb_ast_free(rb_ast_t*);
void rb_ast_set_tokens(rb_ast_t*, VALUE);