projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd46cf9
)
fix pp_definition not being initialized in a symbol
author
Matthias Braun
<matze@braunis.de>
Mon, 25 Jul 2011 13:14:50 +0000
(15:14 +0200)
committer
Matthias Braun
<matze@braunis.de>
Tue, 9 Aug 2011 18:19:26 +0000
(20:19 +0200)
symbol_table.c
patch
|
blob
|
history
diff --git
a/symbol_table.c
b/symbol_table.c
index
64f2c22
..
b756e8e
100644
(file)
--- a/
symbol_table.c
+++ b/
symbol_table.c
@@
-30,10
+30,11
@@
struct obstack symbol_obstack;
static inline
void init_symbol_table_entry(symbol_t *entry, const char *string)
{
- entry->string = string;
- entry->ID = T_IDENTIFIER;
- entry->pp_ID = TP_IDENTIFIER;
- entry->entity = NULL;
+ entry->string = string;
+ entry->ID = T_IDENTIFIER;
+ entry->pp_ID = TP_IDENTIFIER;
+ entry->entity = NULL;
+ entry->pp_definition = NULL;
}
#define HashSet symbol_table_t