Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kconfig: highlight gconfig 'comment' lines with '***'

Mark Kconfig "comment" lines with "*** <commentstring> ***"
so that it is clear that these lines are comments and not some
kconfig item that cannot be modified.

This is helpful in some menus to be able to provide a menu
"sub-heading" for groups of similar config items.

This also makes the comments be presented in a way that is
similar to menuconfig and nconfig.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Randy Dunlap and committed by
Masahiro Yamada
5fb35ec1 ed63ef77

+6 -2
+6 -2
scripts/kconfig/gconf.c
··· 1044 1044 g_free(row[i]); 1045 1045 bzero(row, sizeof(row)); 1046 1046 1047 + ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; 1048 + 1047 1049 row[COL_OPTION] = 1048 - g_strdup_printf("%s %s", menu_get_prompt(menu), 1050 + g_strdup_printf("%s %s %s %s", 1051 + ptype == P_COMMENT ? "***" : "", 1052 + menu_get_prompt(menu), 1053 + ptype == P_COMMENT ? "***" : "", 1049 1054 sym && !sym_has_value(sym) ? "(NEW)" : ""); 1050 1055 1051 1056 if (opt_mode == OPT_ALL && !menu_is_visible(menu)) ··· 1061 1056 else 1062 1057 row[COL_COLOR] = g_strdup("Black"); 1063 1058 1064 - ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; 1065 1059 switch (ptype) { 1066 1060 case P_MENU: 1067 1061 row[COL_PIXBUF] = (gchar *) xpm_menu;