aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-06-11 16:15:58 +0400
committerJosh Triplett <josh@freedesktop.org>2008-06-11 10:08:31 -0700
commit6a0698873c43e41c78abf3231c6d5a7863bda897 (patch)
tree369051d9f73d6a4f5e901b4348b36f46fe8a45d7 /symbol.h
parentfix bug in context tracking code (diff)
downloadsparse-6a0698873c43e41c78abf3231c6d5a7863bda897.tar.gz
sparse-6a0698873c43e41c78abf3231c6d5a7863bda897.tar.bz2
sparse-6a0698873c43e41c78abf3231c6d5a7863bda897.zip
Remove symbol.id_list
It was only used to check if the symbol was already bound, and would cause significant complication in the serialization code. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/symbol.h b/symbol.h
index 50fb86a..c4d7f28 100644
--- a/symbol.h
+++ b/symbol.h
@@ -110,12 +110,11 @@ extern int expand_constant_p(struct expression *expr, int cost);
struct symbol {
enum type type:8;
enum namespace namespace:9;
- unsigned char used:1, attr:2, enum_member:1;
+ unsigned char used:1, attr:2, enum_member:1, bound:1;
struct position pos; /* Where this symbol was declared */
struct position endpos; /* Where this symbol ends*/
struct ident *ident; /* What identifier this symbol is associated with */
struct symbol *next_id; /* Next semantic symbol that shares this identifier */
- struct symbol **id_list; /* Back pointer to symbol list head */
struct symbol *replace; /* What is this symbol shadowed by in copy-expression */
struct scope *scope;
union {