diff options
| author | take_cheeze <[email protected]> | 2013-09-01 22:43:17 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2013-09-02 00:48:06 +0900 |
| commit | 3d1fffbd6bce3a6f9a77af3116078574ce8d5fe9 (patch) | |
| tree | 35d6c58a23442ca055671c3b9e34f736153bc4ec /tools | |
| parent | bc131350d416409220fd3294d2ffcea3ae73027d (diff) | |
| download | mruby-3d1fffbd6bce3a6f9a77af3116078574ce8d5fe9.tar.gz mruby-3d1fffbd6bce3a6f9a77af3116078574ce8d5fe9.zip | |
support multiple filename in irep
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mrbc/mrbc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index 735b22b1d..8ba424fd4 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -145,7 +145,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct mrbc_args *args) } } else { - break; + break; } } return i; @@ -177,9 +177,7 @@ partial_hook(struct mrb_parser_state *p) fprintf(stderr, "%s: cannot open program file. (%s)\n", args->prog, fn); return -1; } - mrbc_filename(p->mrb, c, fn); - p->filename = c->filename; - p->lineno = 1; + mrb_parser_set_filename(p, fn); return 0; } |
