]> err.no Git - linux-2.6/commitdiff
kconfig: make comments stand out in menuconfig
authorSam Ravnborg <sam@ravnborg.org>
Tue, 18 Sep 2007 19:12:26 +0000 (21:12 +0200)
committerSam Ravnborg <sam@neptun.(none)>
Fri, 12 Oct 2007 19:15:32 +0000 (21:15 +0200)
Matěj Laitl <strohel@gmail.com> 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 <strohel@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/mconf.c

index bc5854ed60554e9459fca037ff507ed4f7e79d16..2ee12a744641a16abb829465513a05ff8e045954 100644 (file)
@@ -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++;