summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-10 21:17:38 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-09-10 21:17:38 +0900
commit4e158320000322f3601647332727b59a4d797cb7 (patch)
tree1b15a28510831b7f1180b724fe921a107739aaa7 /mrbgems/mruby-compiler
parentc27e45193177b6e4d09d526a248af63c0961035a (diff)
downloadmruby-4e158320000322f3601647332727b59a4d797cb7.tar.gz
mruby-4e158320000322f3601647332727b59a4d797cb7.zip
Update `y.tab.c`; ref #4933
Diffstat (limited to 'mrbgems/mruby-compiler')
-rw-r--r--mrbgems/mruby-compiler/core/y.tab.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/y.tab.c b/mrbgems/mruby-compiler/core/y.tab.c
index d9a7b72de..c570fb1d7 100644
--- a/mrbgems/mruby-compiler/core/y.tab.c
+++ b/mrbgems/mruby-compiler/core/y.tab.c
@@ -12174,6 +12174,16 @@ mrbc_partial_hook(mrb_state *mrb, mrbc_context *c, int (*func)(struct mrb_parser
}
MRB_API void
+mrbc_cleanup_local_variables(mrb_state *mrb, mrbc_context *c)
+{
+ if (c->syms) {
+ mrb_free(mrb, c->syms);
+ c->syms = NULL;
+ c->slen = 0;
+ }
+}
+
+MRB_API void
mrb_parser_set_filename(struct mrb_parser_state *p, const char *f)
{
mrb_sym sym;