From 48874077ddd6c0c444758059af2cf77c10204ece Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Tue, 18 Sep 2007 21:12:26 +0200 Subject: [PATCH] kconfig: make comments stand out in menuconfig MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Matěj Laitl noticed that there was no way to distingush between comments and un-selectable menu lines. This patch marks comments with *** comment *** Cc: Matěj Laitl Signed-off-by: Sam Ravnborg --- scripts/kconfig/mconf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index bc5854ed60..2ee12a7446 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -481,6 +481,14 @@ static void build_conf(struct menu *menu) if (single_menu_mode && menu->data) goto conf_childs; return; + case P_COMMENT: + if (prompt) { + child_count++; + item_make(" %*c*** %s ***", indent + 1, ' ', prompt); + item_set_tag(':'); + item_set_data(menu); + } + break; default: if (prompt) { child_count++; -- 2.39.5