summaryrefslogtreecommitdiffhomepage
path: root/include
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 /include
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 'include')
-rw-r--r--include/mruby/compile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index e16f34d71..4a27eaa6f 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -33,6 +33,7 @@ const char *mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s);
/* AST node structure */
typedef struct mrb_ast_node {
struct mrb_ast_node *car, *cdr;
+ int lineno;
} mrb_ast_node;
/* lexer states */
@@ -107,7 +108,7 @@ void mrb_parser_parse(struct mrb_parser_state*,mrbc_context*);
struct mrb_parser_state* mrb_parse_file(mrb_state*,FILE*,mrbc_context*);
struct mrb_parser_state* mrb_parse_string(mrb_state*,const char*,mrbc_context*);
struct mrb_parser_state* mrb_parse_nstring(mrb_state*,const char*,int,mrbc_context*);
-int mrb_generate_code(mrb_state*, mrb_ast_node*);
+int mrb_generate_code(mrb_state*, struct mrb_parser_state*);
/* program load functions */
mrb_value mrb_load_file(mrb_state*,FILE*);