diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-06-09 01:12:44 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-09 01:31:30 -0400 |
commit | f6a88aa86027bdecfc74ef7c6bf6c68233e86bb3 (patch) | |
tree | 524a366add362ffae3fa550fd822293ffd84984e /scripts/kconfig/menu.c | |
parent | f1d28fb043b325dad8944647a52b20287e59d8a1 (diff) |
kconfig: add symbol option config syntax
This adds the general framework to the parser to define options for config
symbols with a syntax like:
config FOO
option bar[="arg"]
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 0fce20cb7f3c..151ef2168a2c 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -152,6 +152,10 @@ void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep) | |||
152 | menu_add_prop(type, NULL, expr_alloc_symbol(sym), dep); | 152 | menu_add_prop(type, NULL, expr_alloc_symbol(sym), dep); |
153 | } | 153 | } |
154 | 154 | ||
155 | void menu_add_option(int token, char *arg) | ||
156 | { | ||
157 | } | ||
158 | |||
155 | static int menu_range_valid_sym(struct symbol *sym, struct symbol *sym2) | 159 | static int menu_range_valid_sym(struct symbol *sym, struct symbol *sym2) |
156 | { | 160 | { |
157 | return sym2->type == S_INT || sym2->type == S_HEX || | 161 | return sym2->type == S_INT || sym2->type == S_HEX || |