texlive[63376] Build/source/texk/web2c/cwebdir: [CWEB] Fix production

commits+ascherer at tug.org commits+ascherer at tug.org
Mon May 23 01:47:09 CEST 2022


Revision: 63376
          http://tug.org/svn/texlive?view=revision&revision=63376
Author:   ascherer
Date:     2022-05-23 01:47:09 +0200 (Mon, 23 May 2022)
Log Message:
-----------
[CWEB] Fix production rule 117 similar to 35.

Now 'gb_words.w' is formatted correctly again.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebdir/ChangeLog
    trunk/Build/source/texk/web2c/cwebdir/Makefile
    trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch
    trunk/Build/source/texk/web2c/cwebdir/cweave.w
    trunk/Build/source/texk/web2c/cwebdir/prod-cweave.w
    trunk/Build/source/texk/web2c/cwebdir/prod.w

Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2022-05-22 23:42:44 UTC (rev 63375)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2022-05-22 23:47:09 UTC (rev 63376)
@@ -1,3 +1,11 @@
+2022-05-23  Andreas Scherer  <https://ascherer.github.io>
+
+	* Makefile,
+	* ctwill-w2c.ch,
+	* cweave.w,
+	* prod-cweave.w,
+	* prod.w: Fix production rule 117 similar to rule 35.
+
 2022-05-03  Andreas Scherer  <https://ascherer.github.io>
 
 	* cweave.w,

Modified: trunk/Build/source/texk/web2c/cwebdir/Makefile
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/Makefile	2022-05-22 23:42:44 UTC (rev 63375)
+++ trunk/Build/source/texk/web2c/cwebdir/Makefile	2022-05-22 23:47:09 UTC (rev 63376)
@@ -13,7 +13,7 @@
 # entire resulting derived work is given a different name and distributed
 # under the terms of a permission notice identical to this one.
 
-# 
+#
 # Read the README file, then edit this file to reflect local conditions
 #
 
@@ -138,7 +138,7 @@
 	$(CC) $(CFLAGS) -DCWEBINPUTS=\"$(CWEBINPUTS)\" -c common.c
 
 ctangle: ctangle.o common.o
-	$(CC) $(LINKFLAGS) -o ctangle ctangle.o common.o 
+	$(CC) $(LINKFLAGS) -o ctangle ctangle.o common.o
 
 ctangle.c: ctangle.w $(TCHANGES) common.h
 	$(CTANGLE) ctangle $(TCHANGES)

Modified: trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch	2022-05-22 23:42:44 UTC (rev 63375)
+++ trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch	2022-05-22 23:47:09 UTC (rev 63376)
@@ -834,7 +834,7 @@
 else if (cat1==int_like) {
   big_app1_insert(pp,' '); reduce(pp,2,typedef_like,0,116);
 }
-else if (cat1==exp && cat2!=lpar && cat2!=exp && cat2!=cast) {
+else if (cat1==exp && cat2!=lpar && cat2!=lbrack && cat2!=exp && cat2!=cast) {
   make_underlined(pp+1); make_reserved(pp+1);
   big_app1_insert(pp,' '); reduce(pp,2,typedef_like,0,117);
 }

Modified: trunk/Build/source/texk/web2c/cwebdir/cweave.w
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/cweave.w	2022-05-22 23:42:44 UTC (rev 63375)
+++ trunk/Build/source/texk/web2c/cwebdir/cweave.w	2022-05-22 23:47:09 UTC (rev 63376)
@@ -3093,7 +3093,7 @@
 else if (cat1==int_like) {
   big_app1_insert(pp,' '); reduce(pp,2,typedef_like,0,116);
 }
-else if (cat1==exp && cat2!=lpar && cat2!=exp && cat2!=cast) {
+else if (cat1==exp && cat2!=lpar && cat2!=lbrack && cat2!=exp && cat2!=cast) {
   make_underlined(pp+1); make_reserved(pp+1);
   big_app1_insert(pp,' '); reduce(pp,2,typedef_like,0,117);
 }

Modified: trunk/Build/source/texk/web2c/cwebdir/prod-cweave.w
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/prod-cweave.w	2022-05-22 23:42:44 UTC (rev 63375)
+++ trunk/Build/source/texk/web2c/cwebdir/prod-cweave.w	2022-05-22 23:47:09 UTC (rev 63376)
@@ -333,7 +333,7 @@
 Rules 1, 38, 52, and 73: The \\{din}s and \\{out}s are suppressed if
 \.{CWEAVE} has been invoked with the \.{-i} option.
 
-Rule 35: The |exp| must not be immediately followed by |lpar|, |lbrack|,
+Rules 35, 117: The |exp| must not be immediately followed by |lpar|, |lbrack|,
 |exp|, or~|cast|.
 
 Rule 41: The |big_force| becomes |force| if \.{CWEAVE} has been invoked with the
@@ -361,9 +361,6 @@
 Rule 114: The |operator_like| must not be immediately followed by
 |raw_ubin|.
 
-Rule 117: The |exp| must not be immediately followed by |lpar|, |exp|,
-or |cast|.
-
 Rule 123: The mathness of the |colon| or |base| changes to `yes'.
 
 Rules 153, 154: |make_reserved| is called only if \.{CWEAVE} has been invoked

Modified: trunk/Build/source/texk/web2c/cwebdir/prod.w
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/prod.w	2022-05-22 23:42:44 UTC (rev 63375)
+++ trunk/Build/source/texk/web2c/cwebdir/prod.w	2022-05-22 23:47:09 UTC (rev 63376)
@@ -265,7 +265,7 @@
 \+& |typedef_like| |comma| & |typedef_like| \hfill $TC\.\ $ &
     \&{typedef} \&{int} \&x,\cr
 \+& |typedef_like| |semi| & |decl| & \&{typedef} \&{int} $\&x,\&y$;\cr
-\+& |typedef_like| |ubinop| \alt |cast| |ubinop| & 
+\+& |typedef_like| |ubinop| \alt |cast| |ubinop| &
     |typedef_like| \alt |cast| |ubinop| \hfill
     \alt $C=\.\{U\.\}C$ $U_2=\.\{U_1\.\}U_2$ \unskip &
     \&{typedef} |*|{}|*|(\&{CPtr})\cr
@@ -329,7 +329,7 @@
 \parindent=0pt
 \dag{\bf Notes}
 \yskip
-Rule 35: The |exp| must not be immediately followed by |lpar|, |lbrack|,
+Rules 35, 117: The |exp| must not be immediately followed by |lpar|, |lbrack|,
 |exp|, or~|cast|.
 
 Rule 48: The |exp| or |int_like| must not be immediately followed by |base|.
@@ -352,9 +352,6 @@
 Rule 114: The |operator_like| must not be immediately followed by
 |raw_ubin|.
 
-Rule 117: The |exp| must not be immediately followed by |lpar|, |exp|,
-or |cast|.
-
 Rule 123: The mathness of the |colon| or |base| changes to `yes'.
 
 Rules 153, 154: |make_reserved| is called only if \.{CWEAVE} has been invoked



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