patch-pre2.0.13 linux/scripts/tkgen.c

Next file: linux/Documentation/00-INDEX
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.12/linux/scripts/tkgen.c linux/scripts/tkgen.c
@@ -989,9 +989,11 @@
 	case tok_dep_tristate:
 	case tok_define:
 	case tok_choose:
-	  if(cfg->flags & GLOBAL_WRITTEN) break;
-	  cfg->flags |= GLOBAL_WRITTEN;
-	  printf("\tglobal %s\n", cfg->optionname);
+	  if(!(cfg->flags & GLOBAL_WRITTEN))
+	    {
+	      cfg->flags |= GLOBAL_WRITTEN;
+	      printf("\tglobal %s\n", cfg->optionname);
+	    }
 	  /* fall through */
 	case tok_make:
 	case tok_comment:


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this