summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-03 20:59:07 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-03 20:59:07 +0900
commit65096c4c1bd1bfb6f547808fc01ab6ea223d9dc6 (patch)
tree5ed7ff2d2ddd0da12e0bcf9b7e09d48e15f1b2c8 /tools/mrbc
parentce49d90dc82bc165880a800ae95dc327b729143f (diff)
downloadmruby-65096c4c1bd1bfb6f547808fc01ab6ea223d9dc6.tar.gz
mruby-65096c4c1bd1bfb6f547808fc01ab6ea223d9dc6.zip
add context to parser, that would hold local variable info, filename, and line number. mrbc_context argument has been added to mrb_parse_xxx() functions. Normally, you just to need to add NULL (or 0) to the last argument of the above functions.
Diffstat (limited to 'tools/mrbc')
-rw-r--r--tools/mrbc/mrbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c
index 99fea76d8..9b69244e5 100644
--- a/tools/mrbc/mrbc.c
+++ b/tools/mrbc/mrbc.c
@@ -172,7 +172,7 @@ main(int argc, char **argv)
return n;
}
- p = mrb_parse_file(mrb, args.rfp);
+ p = mrb_parse_file(mrb, args.rfp, NULL);
if (!p || !p->tree || p->nerr) {
cleanup(&args);
mrb_close(mrb);