projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: require T_EOL to reduce visible statement
[carl9170fw.git]
/
config
/
zconf.y
diff --git
a/config/zconf.y
b/config/zconf.y
index d9a095200e9dd94163401d577309cce435863cf6..4aa5ad8dc874049a3ad8130d23078df8090f67d7 100644
(file)
--- a/
config/zconf.y
+++ b/
config/zconf.y
@@
-31,7
+31,7
@@
struct symbol *symbol_hash[SYMBOL_HASHSIZE];
static struct menu *current_menu, *current_entry;
%}
static struct menu *current_menu, *current_entry;
%}
-%expect
31
+%expect
29
%union
{
%union
{
@@
-117,7
+117,7
@@
start: mainmenu_stmt stmt_list | stmt_list;
/* mainmenu entry */
/* mainmenu entry */
-mainmenu_stmt: T_MAINMENU prompt
nl
+mainmenu_stmt: T_MAINMENU prompt
T_EOL
{
menu_add_prompt(P_MENU, $2, NULL);
};
{
menu_add_prompt(P_MENU, $2, NULL);
};
@@
-265,7
+265,7
@@
symbol_option_arg:
choice: T_CHOICE word_opt T_EOL
{
struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE);
choice: T_CHOICE word_opt T_EOL
{
struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE);
- sym->flags |= SYMBOL_
AUTO
;
+ sym->flags |= SYMBOL_
NO_WRITE
;
menu_add_entry(sym);
menu_add_expr(P_CHOICE, NULL, NULL);
free($2);
menu_add_entry(sym);
menu_add_expr(P_CHOICE, NULL, NULL);
free($2);
@@
-461,7
+461,7
@@
visibility_list:
| visibility_list T_EOL
;
| visibility_list T_EOL
;
-visible: T_VISIBLE if_expr
+visible: T_VISIBLE if_expr
T_EOL
{
menu_add_visibility($2);
};
{
menu_add_visibility($2);
};