From: Al Viro <viro@ftp.linux.org.uk>
To: linux-sparse@vger.kernel.org
Subject: [PATCH 8/18] Take the rest of storage class keywords to parse.c
Date: Mon, 09 Mar 2009 07:11:28 +0000 [thread overview]
Message-ID: <E1LgZe4-0000uZ-1F@ZenIV.linux.org.uk> (raw)
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 },
reply other threads:[~2009-03-09 7:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LgZe4-0000uZ-1F@ZenIV.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).