diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2005-11-09 00:34:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:55:53 -0500 |
commit | 7a88488bbc231e48a4a88ee2569bc0cc5d706f0a (patch) | |
tree | 2fd6b51b5cf76dd37a2a369a29c50b5121c12a92 /scripts/kconfig/zconf.y | |
parent | 491d711035dc08071ed58cf470f15efadb67cb1c (diff) |
[PATCH] kconfig: use gperf for kconfig keywords
Use gperf to generate a hash for the kconfig keywords. This greatly reduces
the size of the generated scanner and makes it easier to extend kconfig.
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/zconf.y')
-rw-r--r-- | scripts/kconfig/zconf.y | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 1e214e9c1d31..43021d436baf 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y | |||
@@ -11,6 +11,11 @@ | |||
11 | #include <string.h> | 11 | #include <string.h> |
12 | #include <stdbool.h> | 12 | #include <stdbool.h> |
13 | 13 | ||
14 | #define LKC_DIRECT_LINK | ||
15 | #include "lkc.h" | ||
16 | |||
17 | #include "zconf.hash.c" | ||
18 | |||
14 | #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) | 19 | #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) |
15 | 20 | ||
16 | #define PRINTD 0x0001 | 21 | #define PRINTD 0x0001 |
@@ -88,10 +93,6 @@ static struct menu *current_menu, *current_entry; | |||
88 | %type <expr> if_expr | 93 | %type <expr> if_expr |
89 | %type <token> end | 94 | %type <token> end |
90 | 95 | ||
91 | %{ | ||
92 | #define LKC_DIRECT_LINK | ||
93 | #include "lkc.h" | ||
94 | %} | ||
95 | %% | 96 | %% |
96 | input: /* empty */ | 97 | input: /* empty */ |
97 | | input block | 98 | | input block |