[TUHS] Building the two-pass Portable C Compiler
Jeremy C. Reed via TUHS
tuhs at tuhs.org
Thu Sep 18 00:06:39 AEST 2025
> Neither Makefile nor Makefile.twopass define STRINGFILE, so I am
> at a loss. The code seems to use this file for error reporting:
Also look at ucb/mkstr.c and man/man1/mkstr.1 in the 2.11BSD.
* Program to create a string error message file
* from a group of C programs. Arguments are the name
* of the file where the strings are to be placed, the
* prefix of the new files where the processed source text
* is to be placed, and the files to be processed.
*
* The program looks for 'error("' in the source stream.
So you may be able to use mkstr to generate it.
Some examples in 2.11BSD also include kermit, sendmail, and news.
I believe that the code uses mkstr to build a single file of all the
error strings and builds replacement code that excludes the error
strings but uses offset number instead.
More information about the TUHS
mailing list