save debugging lineno info in irep

This commit is contained in:
Yukihiro Matsumoto
2012-08-31 11:12:33 +09:00
parent 2f21cea50a
commit 3e924e887f
3 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ typedef struct mrbc_context {
mrb_sym *syms;
int slen;
char *filename;
int lineno;
short lineno;
int capture_errors:1;
int dump_result:1;
int no_exec:1;
@@ -33,7 +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;
short lineno;
} mrb_ast_node;
/* lexer states */
+1
View File
@@ -18,6 +18,7 @@ typedef struct mrb_irep {
int nregs;
mrb_code *iseq;
short *lines;
mrb_value *pool;
mrb_sym *syms;