aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lex.zconf.c_shipped
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2005-11-09 00:34:52 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:55:54 -0500
commit3370f9f0d9c7d14bf71aab27fa45c0537f130614 (patch)
treed1fb9b98aabf5fb6dd4e68c1dc69eb345f0c7f60 /scripts/kconfig/lex.zconf.c_shipped
parent7a88488bbc231e48a4a88ee2569bc0cc5d706f0a (diff)
[PATCH] kconfig: simplify symbol type parsing
This simplifies the parser a bit by merging the various symbol types into a single token and adds the type to the keyword hash. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/kconfig/lex.zconf.c_shipped')
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
index 0168141417f6..bedba89a87c6 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -1025,6 +1025,7 @@ YY_RULE_SETUP
1025 struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng); 1025 struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng);
1026 if (id && id->flags & TF_COMMAND) { 1026 if (id && id->flags & TF_COMMAND) {
1027 BEGIN(PARAM); 1027 BEGIN(PARAM);
1028 zconflval.id = id;
1028 return id->token; 1029 return id->token;
1029 } 1030 }
1030 alloc_string(zconftext, zconfleng); 1031 alloc_string(zconftext, zconfleng);
@@ -1091,8 +1092,10 @@ case 19:
1091YY_RULE_SETUP 1092YY_RULE_SETUP
1092{ 1093{
1093 struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng); 1094 struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng);
1094 if (id && id->flags & TF_PARAM) 1095 if (id && id->flags & TF_PARAM) {
1096 zconflval.id = id;
1095 return id->token; 1097 return id->token;
1098 }
1096 alloc_string(zconftext, zconfleng); 1099 alloc_string(zconftext, zconfleng);
1097 zconflval.string = text; 1100 zconflval.string = text;
1098 return T_WORD; 1101 return T_WORD;