OSDN Git Service

kconfig: remove keyword lookup table entirely
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 11 Dec 2018 11:01:10 +0000 (20:01 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 28 Dec 2018 11:44:38 +0000 (20:44 +0900)
commit979f2b2f7936f4b71a3100baf2d16c8057f027eb
tree02cc885fdf217e12d7cea210136a04fedf206667
parent4b31a32caf0a28e4726f1bf267ff8a804ed864e2
kconfig: remove keyword lookup table entirely

Commit 7a88488bbc23 ("[PATCH] kconfig: use gperf for kconfig keywords")
introduced gperf for the keyword lookup.

Then, commit bb3290d91695 ("Remove gperf usage from toolchain") killed
the gperf use. As a result, the linear keyword search was left behind.

If we do not use gperf, there is no reason to have the separate table
of the keywords. Move all keywords back to the lexer.

I also refactored the lexer to remove the COMMAND and PARAM states.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/kconf_id.c [deleted file]
scripts/kconfig/lkc.h
scripts/kconfig/zconf.l
scripts/kconfig/zconf.y