patch-2.2.0-pre7 linux/scripts/tkgen.c
Next file: linux/CREDITS
Previous file: linux/scripts/lxdialog/menubox.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sat Jan 9 19:16:44 1999
- Orig file:
v2.2.0-pre6/linux/scripts/tkgen.c
- Orig date:
Fri Jan 8 22:36:28 1999
diff -u --recursive --new-file v2.2.0-pre6/linux/scripts/tkgen.c linux/scripts/tkgen.c
@@ -69,6 +69,11 @@
* 0: they may have been set to 1 elsewhere. CONFIG_NETLINK is
* an example.
*
+ * 1999 01 04
+ * Michael Elizabeth Chastain <mec@shout.net>
+ * - Call clear_globalflags when writing out update_mainmenu.
+ * This fixes the missing global/vfix lines for ARCH=alpha on 2.2.0-pre4.
+ *
* TO DO:
* - clean up - there are useless ifdef's everywhere.
* - better comments throughout - C code generating tcl is really cryptic.
@@ -358,7 +363,7 @@
}
printf(".menu%d.config.f.x%d.n configure -state normal;",menu_num, line_num);
- printf(".menu%d.config.f.x%d.m configure -state normal;",menu_num, line_num);
+ printf("global CONFIG_MODULES; if {($CONFIG_MODULES == 1)} then { .menu%d.config.f.x%d.m configure -state normal };",menu_num, line_num);
printf(".menu%d.config.f.x%d.l configure -state normal;",menu_num, line_num);
/*
* Or in a bit to the variable - this causes all of the radiobuttons
@@ -913,6 +918,7 @@
* the top level menu, and this procedure will ensure that things are
* correct.
*/
+ clear_globalflags(scfg);
printf("proc update_mainmenu {w} {\n");
for(cfg = scfg; cfg != NULL; cfg = cfg->next)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov