svn commit: trunk/busybox/scripts/config

landley at busybox.net landley at busybox.net
Thu Sep 8 11:50:51 UTC 2005


Author: landley
Date: 2005-09-08 04:50:48 -0700 (Thu, 08 Sep 2005)
New Revision: 11400

Log:
Put the menu_is_visible test back because it avoids printing spurious
(albeit commented out) garbage.


Modified:
   trunk/busybox/scripts/config/confdata.c


Changeset:
Modified: trunk/busybox/scripts/config/confdata.c
===================================================================
--- trunk/busybox/scripts/config/confdata.c	2005-09-08 06:02:49 UTC (rev 11399)
+++ trunk/busybox/scripts/config/confdata.c	2005-09-08 11:50:48 UTC (rev 11400)
@@ -322,18 +322,18 @@
 	while (menu) {
 		sym = menu->sym;
 		if (!sym) {
-			//if (!menu_is_visible(menu))
-			//	goto next;
-			str = menu_get_prompt(menu);
-			fprintf(out, "\n"
-				     "#\n"
-				     "# %s\n"
-				     "#\n", str);
-			if (out_h)
-				fprintf(out_h, "\n"
-					       "/*\n"
-					       " * %s\n"
-					       " */\n", str);
+			if (menu_is_visible(menu)) {
+				str = menu_get_prompt(menu);
+				fprintf(out, "\n"
+					     "#\n"
+					     "# %s\n"
+					     "#\n", str);
+				if (out_h)
+					fprintf(out_h, "\n"
+						       "/*\n"
+						       " * %s\n"
+						       " */\n", str);
+			}
 		} else if (!(sym->flags & SYMBOL_CHOICE)) {
 			sym_calc_value(sym);
 			//if (!(sym->flags & SYMBOL_WRITE))




More information about the busybox-cvs mailing list