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~830^2~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48874077ddd6c0c444758059af2cf77c10204ece;p=linux-2.6 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 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++;