diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2009-03-09 07:11:18 +0000 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2009-07-17 23:06:23 +0000 |
commit | d5c9c2431b417837d3e2d41bddcafc79e0361aeb (patch) | |
tree | d8bae87114d8cbaf2f137b7d92ee3eeda21c1db1 /parse.c | |
parent | Propagate decl_state to declaration_specifiers() (diff) | |
download | sparse-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |