summaryrefslogtreecommitdiffstats
path: root/scripts/tkgen.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-06-13 16:29:25 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-06-13 16:29:25 +0000
commitdb7d4daea91e105e3859cf461d7e53b9b77454b2 (patch)
tree9bb65b95440af09e8aca63abe56970dd3360cc57 /scripts/tkgen.c
parent9c1c01ead627bdda9211c9abd5b758d6c687d8ac (diff)
Merge with Linux 2.2.8.
Diffstat (limited to 'scripts/tkgen.c')
-rw-r--r--scripts/tkgen.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/tkgen.c b/scripts/tkgen.c
index d695b2e48..279072d78 100644
--- a/scripts/tkgen.c
+++ b/scripts/tkgen.c
@@ -89,6 +89,9 @@
* drives/net/Config.in and other places.
* - Fix menu line wraparound at 128 menus (some fool used a 'char' for
* a counter).
+ *
+ * 23 January 1999, Michael Elizabeth Chastain <mec@shout.net>
+ * - Remove bug-compatible code.
*/
#include <stdio.h>
@@ -749,11 +752,9 @@ void dump_tk_script( struct kconfig * scfg )
break;
case token_endmenu:
-#if ! defined(BUG_COMPATIBLE)
/* flatten menus with proper scoping */
if ( --menu_depth < 0 )
{ fprintf( stderr, "unmatched endmenu\n" ); exit( 1 ); }
-#endif
break;
case token_bool:
@@ -929,8 +930,11 @@ void dump_tk_script( struct kconfig * scfg )
case token_hex:
case token_int:
+ printf( "set %s %s\n", cfg->optionname, cfg->value ? cfg->value : "0");
+ break;
+
case token_string:
- printf( "set %s %s\n", cfg->optionname, cfg->value );
+ printf( "set %s \"%s\"\n", cfg->optionname, cfg->value ? cfg->value : "");
break;
}
}