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/lkc.h | |
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/lkc.h')
-rw-r--r-- | scripts/kconfig/lkc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 5fba1feff2a8..6881fb084324 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
@@ -37,6 +37,16 @@ extern "C" { | |||
37 | #define _(text) gettext(text) | 37 | #define _(text) gettext(text) |
38 | #define N_(text) (text) | 38 | #define N_(text) (text) |
39 | 39 | ||
40 | |||
41 | #define TF_COMMAND 0x0001 | ||
42 | #define TF_PARAM 0x0002 | ||
43 | |||
44 | struct kconf_id { | ||
45 | int name; | ||
46 | int token; | ||
47 | unsigned int flags; | ||
48 | }; | ||
49 | |||
40 | int zconfparse(void); | 50 | int zconfparse(void); |
41 | void zconfdump(FILE *out); | 51 | void zconfdump(FILE *out); |
42 | 52 | ||