[bugfix] syntaces should be registered to var_tbl, not global_tbl

This commit is contained in:
Yuichi Nishiwaki 2013-11-26 08:59:16 -08:00
parent be311cb96f
commit e7673c65bd
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ pic_open(int argc, char *argv[], char **envp)
#define register_core_syntax(pic,kind,name) do { \
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++; \
} while (0)