kconfig: introduce menu type enum
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 27 May 2025 17:56:15 +0000 (02:56 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 5 Jun 2025 20:40:25 +0000 (05:40 +0900)
commit0f57c75973bedc08a865b06ce1b73ae5b54477c0
tree849c018176c763b6baefc8795cfba171e47b9151
parent94145ffb07601674091aadbdca9ce004b1736df4
kconfig: introduce menu type enum

Currently, menu->prompt->type is checked to distinguish "comment"
(P_COMMENT) and "menu" (P_MENU) entries from regular "config" entries.
This is odd because P_COMMENT and P_MENU are not properties.

This commit introduces menu type enum to distinguish menu types more
naturally.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/expr.h
scripts/kconfig/lkc.h
scripts/kconfig/menu.c
scripts/kconfig/parser.y