diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2023-09-20 10:24:51 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2023-09-20 10:24:51 +0000 |
commit | 7908c999333330cd64e5632107f879070c9f3b68 (patch) | |
tree | f1b001bb950f34add7cd36f774557bde38a48687 /Build/source/texk/web2c/cwebdir/cweav-w2c.ch | |
parent | 706e07793932f1c3b036fe098fd29032f62fc6cf (diff) |
[CWEB] Factor out cwebacromac.tex.
Extract common macros from cwebmac.tex and the PDF variants of the
CTWILL macros. Update cwebman.tex accordingly.
Fixes in CWEB code:
- Consistent formatting of terminal output in cases of error
- Revert fputs back to printf
- Add curly braces for progress report (harmless glitch in CWEB 2.0)
git-svn-id: svn://tug.org/texlive/trunk@68327 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir/cweav-w2c.ch')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/cweav-w2c.ch | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Build/source/texk/web2c/cwebdir/cweav-w2c.ch b/Build/source/texk/web2c/cwebdir/cweav-w2c.ch index faf1b6ad8b7..4a1526462f4 100644 --- a/Build/source/texk/web2c/cwebdir/cweav-w2c.ch +++ b/Build/source/texk/web2c/cwebdir/cweav-w2c.ch @@ -96,9 +96,9 @@ @z @x - fputs("\n! String too long: ",stdout); + printf("%s","\n! String too long: "); @y - fputs(_("\n! String too long: "),stdout); + printf("%s",_("\n! String too long: ")); @z @x @@ -114,9 +114,9 @@ @z @x - fputs("\n! Section name too long: ",stdout); + printf("%s","\n! Section name too long: "); @y - fputs(_("\n! Section name too long: "),stdout); + printf("%s",_("\n! Section name too long: ")); @z @x @@ -174,18 +174,18 @@ if (loc>=limit) err_print(_("! Verbatim string didn't end")); @z @x - fputs("\n! Never defined: <",stdout); + printf("%s","\n! Never defined: <"); print_section_name(p); putchar('>'); mark_harmless(); @y - fputs(_("\n! Never defined: <"),stdout); + printf("%s",_("\n! Never defined: <")); print_section_name(p); putchar('>'); mark_harmless(); @z @x - fputs("\n! Never used: <",stdout); + printf("%s","\n! Never used: <"); print_section_name(p); putchar('>'); mark_harmless(); @y - fputs(_("\n! Never used: <"),stdout); + printf("%s",_("\n! Never used: <")); print_section_name(p); putchar('>'); mark_harmless(); @z @@ -441,15 +441,15 @@ else if (cat1==stmt) { @z @x - fputs("\n! Illegal control code in section name: <",stdout); + printf("%s","\n! Illegal control code in section name: <"); @y - fputs(_("\n! Illegal control code in section name: <"),stdout); + printf("%s",_("\n! Illegal control code in section name: <")); @z @x - fputs("\n! C text in section name didn't end: <",stdout); + printf("%s","\n! C text in section name didn't end: <"); @y - fputs(_("\n! C text in section name didn't end: <"),stdout); + printf("%s",_("\n! C text in section name didn't end: <")); @z @x @@ -465,9 +465,9 @@ else if (cat1==stmt) { @z @x -if (show_progress) fputs("\nWriting the output file...",stdout); +if (show_progress) printf("%s","\nWriting the output file..."); @y -if (show_progress) fputs(_("\nWriting the output file..."),stdout); +if (show_progress) printf("%s",_("\nWriting the output file...")); @z @x @@ -515,9 +515,9 @@ if (show_progress) fputs(_("\nWriting the output file..."),stdout); @z @x - if (show_progress) fputs("\nWriting the index...",stdout); + if (show_progress) printf("%s","\nWriting the index..."); @y - if (show_progress) fputs(_("\nWriting the index..."),stdout); + if (show_progress) printf("%s",_("\nWriting the index...")); @z @x @@ -540,9 +540,9 @@ if (check_for_change) @<Update the result when it has changed@>@; @z @x - fputs("Done.",stdout); + printf("%s","Done."); @y - fputs(_("Done."),stdout); + printf("%s",_("Done.")); @z @x |