projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle IR generation for selection of non-scalar types from a compound type.
[cparser]
/
symbol_table.c
diff --git
a/symbol_table.c
b/symbol_table.c
index
03cbdd5
..
8f546b3
100644
(file)
--- a/
symbol_table.c
+++ b/
symbol_table.c
@@
-1,6
+1,7
@@
#include <config.h>
#include "symbol_table_t.h"
#include <config.h>
#include "symbol_table_t.h"
+#include "token_t.h"
#include "adt/hash_string.h"
#include "adt/obst.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)
{
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
}
#define HashSet symbol_table_t