[bugfix] syntaces should be registered to var_tbl, not global_tbl
This commit is contained in:
parent
be311cb96f
commit
e7673c65bd
|
@ -119,7 +119,7 @@ pic_open(int argc, char *argv[], char **envp)
|
||||||
|
|
||||||
#define register_core_syntax(pic,kind,name) do { \
|
#define register_core_syntax(pic,kind,name) do { \
|
||||||
pic->stx[pic->xlen] = pic_syntax_new(pic, kind, pic_intern_cstr(pic, name)); \
|
pic->stx[pic->xlen] = pic_syntax_new(pic, kind, pic_intern_cstr(pic, name)); \
|
||||||
xh_put(pic->global_tbl, name, ~pic->xlen); \
|
xh_put(pic->var_tbl, name, ~pic->xlen); \
|
||||||
pic->xlen++; \
|
pic->xlen++; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue