summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lkc_proto.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-05-28 11:21:48 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-05-28 20:31:19 +0200
commit9de071536c87cb814e210bd762fcf7f645d514a9 (patch)
treee532e85bd127e3e569c454222175a9ea89f8339c /scripts/kconfig/lkc_proto.h
parentkconfig: replace $(UNAME_RELEASE) with function call (diff)
downloadlinux-9de071536c87cb814e210bd762fcf7f645d514a9.tar.xz
linux-9de071536c87cb814e210bd762fcf7f645d514a9.zip
kconfig: begin PARAM state only when seeing a command keyword
Currently, any statement line starts with a keyword with TF_COMMAND flag. So, the following three lines are dead code. alloc_string(yytext, yyleng); zconflval.string = text; return T_WORD; If a T_WORD token is returned in this context, it will cause syntax error in the parser anyway. The next commit will support the assignment statement where a line starts with an arbitrary identifier. So, I want the lexer to switch to the PARAM state only when it sees a command keyword. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/lkc_proto.h')
0 files changed, 0 insertions, 0 deletions