lkml.org 
[lkml]   [2018]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/27] kconfig: remove redundant if_block rule
    Date
    The code block surrounded by "if" ... "endif" is stmt_list.

    Remove the redundant if_block symbol entirely.

    Remove "stmt_list: stmt_list end" rule as well since it would
    obviously cause conflicts.

    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    ---

    scripts/kconfig/zconf.y | 10 +---------
    1 file changed, 1 insertion(+), 9 deletions(-)

    diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
    index a92f167..dcbf643 100644
    --- a/scripts/kconfig/zconf.y
    +++ b/scripts/kconfig/zconf.y
    @@ -123,7 +123,6 @@ stmt_list:
    | stmt_list common_stmt
    | stmt_list choice_stmt
    | stmt_list menu_stmt
    - | stmt_list end { zconf_error("unexpected end statement"); }
    | stmt_list T_WORD error T_EOL { zconf_error("unknown statement \"%s\"", $2); }
    | stmt_list error T_EOL { zconf_error("invalid statement"); }
    ;
    @@ -330,14 +329,7 @@ if_end: end
    }
    };

    -if_stmt: if_entry if_block if_end
    -;
    -
    -if_block:
    - /* empty */
    - | if_block common_stmt
    - | if_block menu_stmt
    - | if_block choice_stmt
    +if_stmt: if_entry stmt_list if_end
    ;

    /* menu entry */
    --
    2.7.4
    \
     
     \ /
      Last update: 2018-12-11 12:05    [W:3.570 / U:1.580 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site