texlive[67178] Build/source/texk/web2c: [CWEB] Handle deletion of
commits+ascherer at tug.org
commits+ascherer at tug.org
Sun May 21 17:59:10 CEST 2023
Revision: 67178
http://tug.org/svn/texlive?view=revision&revision=67178
Author: ascherer
Date: 2023-05-21 17:59:10 +0200 (Sun, 21 May 2023)
Log Message:
-----------
[CWEB] Handle deletion of last line in 'master' file.
Modified Paths:
--------------
trunk/Build/source/texk/web2c/ctiedir/ChangeLog
trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch
trunk/Build/source/texk/web2c/tiedir/ChangeLog
trunk/Build/source/texk/web2c/tiedir/tie-w2c.ch
Modified: trunk/Build/source/texk/web2c/ctiedir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ctiedir/ChangeLog 2023-05-20 23:44:53 UTC (rev 67177)
+++ trunk/Build/source/texk/web2c/ctiedir/ChangeLog 2023-05-21 15:59:10 UTC (rev 67178)
@@ -1,3 +1,7 @@
+2023-05-21 Andreas Scherer <https://ascherer.github.io>
+
+ * ctie-k.ch: Handle deletion of last line in 'master' file.
+
2021-04-06 Andreas Scherer <https://ascherer.github.io>
* ctie-k.ch: Use 'putc' for single newline character.
Modified: trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch
===================================================================
--- trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch 2023-05-20 23:44:53 UTC (rev 67177)
+++ trunk/Build/source/texk/web2c/ctiedir/ctie-k.ch 2023-05-21 15:59:10 UTC (rev 67178)
@@ -567,6 +567,16 @@
e_of_ch_preamble (file_index i)
@z
+ at x l.1079
+if (out_mode==post) /* last line has been changed */
+ fprintf(out_file, "@@z\n");
+ at y
+if (out_mode==post) /* last line has been changed */
+ fprintf(out_file, "@@z\n");
+else if (out_mode==pre) /* last line has been deleted */
+ fprintf(out_file, "@@y\n@@z\n");
+ at z
+
@x l.1106
void usage_error()
{
Modified: trunk/Build/source/texk/web2c/tiedir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/tiedir/ChangeLog 2023-05-20 23:44:53 UTC (rev 67177)
+++ trunk/Build/source/texk/web2c/tiedir/ChangeLog 2023-05-21 15:59:10 UTC (rev 67178)
@@ -1,3 +1,7 @@
+2023-05-21 Andreas Scherer <https://ascherer.github.io>
+
+ * tie-w2c.ch: Handle deletion of last line in 'master' file.
+
2021-04-04 Andreas Scherer <https://ascherer.github.io>
* tie-w2c.ch: Delete dot in banner line.
Modified: trunk/Build/source/texk/web2c/tiedir/tie-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/tiedir/tie-w2c.ch 2023-05-20 23:44:53 UTC (rev 67177)
+++ trunk/Build/source/texk/web2c/tiedir/tie-w2c.ch 2023-05-21 15:59:10 UTC (rev 67178)
@@ -396,6 +396,26 @@
else
@z
+Section 53.
+
+ at x l.1133
+if (out_mode==post) { /* last line has been changed */
+ fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file);
+ new_line(out_file);
+ }
+ at y
+if (out_mode==post) { /* last line has been changed */
+ fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file);
+ new_line(out_file);
+ }
+else if (out_mode==pre) { /* last line has been deleted */
+ fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'y'),out_file);
+ new_line(out_file);
+ fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file);
+ new_line(out_file);
+ }
+ at z
+
Section 55
@x l.1158
More information about the tex-live-commits
mailing list.