diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2005-11-08 21:34:53 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 07:55:54 -0800 |
commit | a02f0570ae201c495ee991b959bb974af18f35cc (patch) | |
tree | 363e06307b7355caa2435a006c5385a1149bb7cc /scripts/kconfig/menu.c | |
parent | 3370f9f0d9c7d14bf71aab27fa45c0537f130614 (diff) | |
download | kernel_samsung_crespo-a02f0570ae201c495ee991b959bb974af18f35cc.zip kernel_samsung_crespo-a02f0570ae201c495ee991b959bb974af18f35cc.tar.gz kernel_samsung_crespo-a02f0570ae201c495ee991b959bb974af18f35cc.tar.bz2 |
[PATCH] kconfig: improve error handling in the parser
Add a few error tokens to the parser to catch common errors and print more
descriptive error messages.
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/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index c2a423a..0fce20c 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -61,10 +61,11 @@ void menu_end_entry(void) { } -void menu_add_menu(void) +struct menu *menu_add_menu(void) { - current_menu = current_entry; + menu_end_entry(); last_entry_ptr = ¤t_entry->list; + return current_menu = current_entry; } void menu_end_menu(void) |