Skip to content

Commit

Permalink
kconfig: fix the rule of mainmenu_stmt symbol
Browse files Browse the repository at this point in the history
The rule of mainmenu_stmt does not have debug print of zconf_lineno(),
but if it had, it would print a wrong line number for the same reason
as commit b2d00d7 ("kconfig: fix line numbers for if-entries in
menu tree").

The mainmenu_stmt does not need to eat following empty lines because
they are reduced to common_stmt.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Aug 13, 2018
1 parent 47f38ae commit 56869d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kconfig/zconf.y
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct symbol *symbol_hash[SYMBOL_HASHSIZE];
static struct menu *current_menu, *current_entry;

%}
%expect 31
%expect 30

%union
{
Expand Down Expand Up @@ -117,7 +117,7 @@ start: mainmenu_stmt stmt_list | stmt_list;

/* mainmenu entry */

mainmenu_stmt: T_MAINMENU prompt nl
mainmenu_stmt: T_MAINMENU prompt T_EOL
{
menu_add_prompt(P_MENU, $2, NULL);
};
Expand Down

0 comments on commit 56869d4

Please sign in to comment.