summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-08-22 22:36:44 +0900
committerYukihiro Matsumoto <[email protected]>2012-08-22 22:36:44 +0900
commit15725eb4f6dc67de626fe5822d77312d7ab8994a (patch)
tree0b33a09d486046c49edef7af6b24a90a6ce3e643 /src/parse.y
parent655518f38a712073cd68d678b046226b64c98859 (diff)
downloadmruby-15725eb4f6dc67de626fe5822d77312d7ab8994a.tar.gz
mruby-15725eb4f6dc67de626fe5822d77312d7ab8994a.zip
file/line info passed to codegen; argument type of mrb_generate_code() has changed
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index ec2baa179..3e0c670ea 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -99,6 +99,7 @@ cons_gen(parser_state *p, node *car, node *cdr)
c->car = car;
c->cdr = cdr;
+ c->lineno = p->lineno;
return c;
}
#define cons(a,b) cons_gen(p,(a),(b))
@@ -4862,7 +4863,7 @@ load_exec(mrb_state *mrb, parser_state *p, mrbc_context *c)
return mrb_nil_value();
}
}
- n = mrb_generate_code(mrb, p->tree);
+ n = mrb_generate_code(mrb, p);
mrb_parser_free(p);
if (n < 0) {
static const char msg[] = "codegen error";