texlive[54718] Build/source/texk/web2c/cwebdir: [CWEB] Purge global

commits+ascherer at tug.org commits+ascherer at tug.org
Mon Apr 13 14:26:47 CEST 2020


Revision: 54718
          http://tug.org/svn/texlive?view=revision&revision=54718
Author:   ascherer
Date:     2020-04-13 14:26:47 +0200 (Mon, 13 Apr 2020)
Log Message:
-----------
[CWEB] Purge global variable from 'main'.

In CWEAVE and CTWILL, move definition of 'use_language' to 'Extensions.'

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch
    trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch

Modified: trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch	2020-04-13 08:09:12 UTC (rev 54717)
+++ trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch	2020-04-13 12:26:47 UTC (rev 54718)
@@ -292,13 +292,6 @@
 @z
 
 @x
-  argc=ac; argv=av;
- at y
-  extern const char *use_language; /* prefix to \.{cwebmac.tex} in \TEX/ output */
-  argc=ac; argv=av;
- at z
-
- at x
   program=cweave;
 @y
   program=ctwill;
@@ -3152,6 +3145,12 @@
 static void squash(scrap_pointer,short,eight_bits,short,short);@/
 static void update_node(name_pointer p);@/
 
+@* Language setting.  This global variable is defined and set in \.{common} by
+the `\.{+l}' (or `\.{-l}') commandline option.
+
+@<Global var...@>=
+extern const char *use_language; /* prefix to \.{cwebmac.tex} in \TEX/ output */
+
 @* Output file update.  Most \CEE/ projects are controlled by a
 \.{Makefile} that automatically takes care of the temporal dependecies
 between the different source modules.  It is suitable that \.{CWEB} doesn't

Modified: trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch	2020-04-13 08:09:12 UTC (rev 54717)
+++ trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch	2020-04-13 12:26:47 UTC (rev 54718)
@@ -72,13 +72,6 @@
 @z
 
 @x
-  argc=ac; argv=av;
- at y
-  extern const char *use_language; /* prefix to \.{cwebmac.tex} in \TEX/ output */
-  argc=ac; argv=av;
- at z
-
- at x
   make_xrefs=force_lines=make_pb=1; /* controlled by command-line options */
   common_init();
   @<Set initial values@>;
@@ -1915,6 +1908,12 @@
 static void squash(scrap_pointer,short,eight_bits,short,short);@/
 static void update_node(name_pointer p);@/
 
+@* Language setting.  This global variable is defined and set in \.{common} by
+the `\.{+l}' (or `\.{-l}') commandline option.
+
+@<Global var...@>=
+extern const char *use_language; /* prefix to \.{cwebmac.tex} in \TEX/ output */
+
 @* Output file update.  Most \CEE/ projects are controlled by a
 \.{Makefile} that automatically takes care of the temporal dependecies
 between the different source modules.  It is suitable that \.{CWEB} doesn't



More information about the tex-live-commits mailing list.