@@ -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 },
@@ -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 },
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> --- parse.c | 6 ++++++ symbol.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)