aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2009-03-09 07:11:18 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-17 23:06:23 +0000
commitd5c9c2431b417837d3e2d41bddcafc79e0361aeb (patch)
treed8bae87114d8cbaf2f137b7d92ee3eeda21c1db1 /parse.c
parentPropagate decl_state to declaration_specifiers() (diff)
downloadsparse-d5c9c2431b417837d3e2d41bddcafc79e0361aeb.tar.gz
sparse-d5c9c2431b417837d3e2d41bddcafc79e0361aeb.tar.bz2
sparse-d5c9c2431b417837d3e2d41bddcafc79e0361aeb.zip
Fix regression created by commit af30c6df74f01db10fa78ac0cbdb5c3c40b5c73f
const and friends are reserved words, TYVM... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index a2048a2..12d2bba 100644
--- a/parse.c
+++ b/parse.c
@@ -354,6 +354,8 @@ void init_parser(int stream)
struct init_keyword *ptr = keyword_table + i;
struct symbol *sym = create_symbol(stream, ptr->name, SYM_KEYWORD, ptr->ns);
sym->ident->keyword = 1;
+ if (ptr->ns == NS_TYPEDEF)
+ sym->ident->reserved = 1;
sym->ctype.modifiers = ptr->modifiers;
sym->op = ptr->op;
}