macros must be added to var_tbl

This commit is contained in:
Yuichi Nishiwaki 2013-11-26 17:43:59 -08:00
parent d2af692280
commit 94aac37443
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ pic_defmacro(pic_state *pic, const char *name, struct pic_proc *macro)
pic_abort(pic, "macro table overflow");
}
pic->stx[idx] = pic_syntax_new_macro(pic, pic_intern_cstr(pic, name), macro);
xh_put(pic->global_tbl, name, ~idx);
xh_put(pic->var_tbl, name, ~idx);
pic->xlen++;
}