* [PATCH 8/18] Take the rest of storage class keywords to parse.c
@ 2009-03-09 7:11 Al Viro
0 siblings, 0 replies; only message in thread
From: Al Viro @ 2009-03-09 7:11 UTC (permalink / raw)
To: linux-sparse
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
parse.c | 6 ++++++
symbol.c | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/parse.c b/parse.c
index 12d2bba..7b1cfb6 100644
--- a/parse.c
+++ b/parse.c
@@ -231,6 +231,12 @@ static struct init_keyword {
{ "restrict", NS_TYPEDEF, .op = &qualifier_op},
{ "__restrict", NS_TYPEDEF, .op = &qualifier_op},
+ /* Storage class */
+ { "auto", NS_TYPEDEF, MOD_AUTO, .op = &modifier_op },
+ { "register", NS_TYPEDEF, MOD_REGISTER, .op = &modifier_op },
+ { "static", NS_TYPEDEF, MOD_STATIC, .op = &modifier_op },
+ { "extern", NS_TYPEDEF, MOD_EXTERN, .op = &modifier_op },
+
/* Statement */
{ "if", NS_KEYWORD, .op = &if_op },
{ "return", NS_KEYWORD, .op = &return_op },
diff --git a/symbol.c b/symbol.c
index c82e530..8a323b5 100644
--- a/symbol.c
+++ b/symbol.c
@@ -700,12 +700,6 @@ static struct sym_init {
unsigned int modifiers;
struct symbol_op *op;
} symbol_init_table[] = {
- /* Storage class */
- { "auto", NULL, MOD_AUTO },
- { "register", NULL, MOD_REGISTER },
- { "static", NULL, MOD_STATIC },
- { "extern", NULL, MOD_EXTERN },
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-09 7:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 7:11 [PATCH 8/18] Take the rest of storage class keywords to parse.c Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).