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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
 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 },
-
 	/* Type specifiers */
 	{ "void",	&void_ctype,	0 },
 	{ "char",	NULL,		MOD_CHAR },
-- 
1.5.6.5


--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux