[8/18] Take the rest of storage class keywords to parse.c
diff mbox

Message ID E1LgZe4-0000uZ-1F@ZenIV.linux.org.uk
State Mainlined, archived
Headers show

Commit Message

Al Viro March 9, 2009, 7:11 a.m. UTC
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 parse.c  |    6 ++++++
 symbol.c |    6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

Patch
diff mbox

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 },
-
 	/* Type specifiers */
 	{ "void",	&void_ctype,	0 },
 	{ "char",	NULL,		MOD_CHAR },