X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=symbol_table.c;h=8f546b36dd3c8f9222fe7bc0f51863d83ffb8e71;hb=3b491a136d937af49b07f0d46ad0022c37506ecb;hp=03cbdd566ad98306ed5579f47f9d50824aaaf607;hpb=9e29e9c33f6511c4583e5b8ed83194d433e82c45;p=cparser diff --git a/symbol_table.c b/symbol_table.c index 03cbdd5..8f546b3 100644 --- a/symbol_table.c +++ b/symbol_table.c @@ -1,6 +1,7 @@ #include #include "symbol_table_t.h" +#include "token_t.h" #include "adt/hash_string.h" #include "adt/obst.h" @@ -9,9 +10,10 @@ struct obstack symbol_obstack; static inline void init_symbol_table_entry(symbol_t *entry, const char *string) { - entry->ID = 0; - entry->pp_ID = 0; - entry->string = string; + entry->string = string; + entry->ID = T_IDENTIFIER; + entry->pp_ID = 0; + entry->declaration = NULL; } #define HashSet symbol_table_t