From: Sam Ravnborg Date: Tue, 18 Sep 2007 19:12:26 +0000 (+0200) Subject: kconfig: make comments stand out in menuconfig X-Git-Tag: v2.6.24-rc1~826^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48874077ddd6c0c444758059af2cf77c10204ece;p=profile%2Fivi%2Fkernel-x86-ivi.git kconfig: make comments stand out in menuconfig 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 --- diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index bc5854e..2ee12a7 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++;