diff options
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/PROJECTS | 28 | ||||
-rw-r--r-- | Build/source/texk/web2c/README | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/usage.c | 46 |
5 files changed, 52 insertions, 38 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog index e0fbb789ab1..7a0364dfe58 100644 --- a/Build/source/texk/web2c/ChangeLog +++ b/Build/source/texk/web2c/ChangeLog @@ -1,3 +1,8 @@ +2021-05-18 Karl Berry <karl@freefriends.org> + + * README, + * PROJECTS: updates. + 2021-05-07 Karl Berry <karl@freefriends.org> * tex.ch (sup_save_size): increase to 30000000 diff --git a/Build/source/texk/web2c/PROJECTS b/Build/source/texk/web2c/PROJECTS index 15fa996c873..2da40735284 100644 --- a/Build/source/texk/web2c/PROJECTS +++ b/Build/source/texk/web2c/PROJECTS @@ -1,41 +1,28 @@ -Here are some things left to do. If you would like to contribute, send -mail to me (olaf@infovore.xs4all.nl) first. +$Id$ +This file is public domain. -* Use binary mode for all files (but do obey end-of-line conventions for - the specific platforms. +Here are some things left to do. If you would like to contribute, send +mail to tex-k@tug.org (https://lists.tug.org/tex-k). -* Give TeX more options: - output filename:lineno: msg on error - change prompt from `\n*' (for simpler cut-and-paste) +* TeX/MF: change prompt from `\n*' (for simpler cut-and-paste). * Have bibtex -verbose print full pathnames. -* Make TeX--XeT a configure-time or runtime option? - -* Deal with the configure tests that prevent cross-compilation: - - Remove use of schar (in dvicopy, mf, pktogf, and tangle). - - Learn endianness at runtime, include both Big and LittleEndian - versions in code, call appropriate one. - - Figure out what to do about the sizeof long test. - * Reallocate memory arrays as needed instead of just allocating once at the beginning. -* Possibly use spiff when doing the triptrap comparisons, so acceptable - differences can be eliminated. - * Make web2c handle fields correctly, i.e., to put the field identifier in the symbol table of the type, instead of the global symbol table. This would simplify the GFtoDVI change file a fair amount. * Make web2c handle variant records. This would make the TeX, Metafont, - and GFtoDVI change files all simpler. + and GFtoDVI change files simpler. * Implement overflow checking for adding and subtracting dimensions. According to Knuth "a few dozen checks" would be needed (section 104). Knuth calls the chances of it occuring unlikely, but unfortunately you will get a bad DVI file when it does. The following source demonstrates - the problem. + the problem. (Reported many times.) % \newcount \loopcount \newcount \limit @@ -60,4 +47,3 @@ mail to me (olaf@infovore.xs4all.nl) first. \iftrue \repeat \end -% diff --git a/Build/source/texk/web2c/README b/Build/source/texk/web2c/README index c4c1c1a4716..cf7c87df0a6 100644 --- a/Build/source/texk/web2c/README +++ b/Build/source/texk/web2c/README @@ -9,9 +9,9 @@ or WEB-to-C translator. Web2c no longer exists as a separate distribution. It is maintained as part of TeX Live (http://tug.org/texlive). -See `NEWS' for changes by release, `ChangeLog` for all changes. -See `INSTALL' for installation instructions. -See `PROJECTS' for future improvements you might like to work on. +See `NEWS' for changes by release, +`ChangeLog` for all changes. +`PROJECTS' for some old rainy-day ideas. If present, see *dir/README for more details on each package. diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index 1f82cfdb9ee..96c5d0cd99f 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,3 +1,8 @@ +2021-05-18 Karl Berry <karl@freefriends.org> + + * usage.c (usagehelp): if bug_email arg ends in "@tug.org" + also output the url for the mailing list. + 2021-04-28 Marcel Fabian Krueger <tex@2krueger.de> Hironori KITAGAWA <h_kitagawa2001@yahoo.co.jp> Karl Berry <karl@freefriends.org> diff --git a/Build/source/texk/web2c/lib/usage.c b/Build/source/texk/web2c/lib/usage.c index 4c6bc5bbe0a..bec11054615 100644 --- a/Build/source/texk/web2c/lib/usage.c +++ b/Build/source/texk/web2c/lib/usage.c @@ -5,8 +5,8 @@ #include <w2c/config.h> -/* Call usage if the program exits with an "usage error". STR is supposed - to be the program name. */ +/* Print a message about trying --help with program name STR and exit + with bad status. */ void usage (const_string str) @@ -15,21 +15,39 @@ usage (const_string str) uexit (1); } -/* Call usage if the program exits by printing the help message. - MESSAGE is a NULL-terminated array of strings which make up the - help message. Each string is printed on a separate line. - We use arrays instead of a single string to work around compiler - limitations (sigh). -*/ + +/* Print MESSAGE, a NULL-terminated array of strings which make up the + help message, and exit successfully. Each string is printed on a + separate line. We use arrays instead of a single string to work + around compiler limitations (sigh). Then print a line about sending + bug reports to BUG_EMAIL, which defaults to tex-k@tug.org if passed + NULL. If BUG_EMAIL is @tug.org, also output a url to the mailing list. */ + void usagehelp (const_string *message, const_string bug_email) { - if (!bug_email) - bug_email = "tex-k@tug.org"; + if (!bug_email) { + bug_email = "tex-k@tug.org"; + } + while (*message) { - printf("%s\n", *message); - ++message; + printf ("%s\n", *message); + ++message; + } + + printf ("\nEmail bug reports to %s", bug_email); + if (strlen (bug_email) > 9) { + const_string domain = strchr (bug_email, '@'); + if (domain && strcmp (domain, "@tug.org") == 0) { + const_string ptr; + + printf (" (https://lists.tug.org/"); + for (ptr = bug_email; ptr < domain; ptr++) { + putchar (*ptr); + } + printf (")"); + } } - printf("\nEmail bug reports to %s.\n", bug_email); - uexit(0); + puts ("."); + uexit (0); } |