.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" %sccs.include.redist.roff%
.\" @(#)mkstr.1 6.6 (Berkeley) %G%
.Nd create an error message file by massaging C source
creates files containing error messages extracted from C source,
and restructures the same C source, to utilize the created error message
was to reduce the size of large programs and
processes each of the specified
placing a restructured version of the input in a file whose name
consists of the specified
.Bd -literal -offset indent
This command causes all the error messages from the C source
files in the current directory to be placed in the file
and restructured copies of the sources to be placed in
files whose names are prefixed with
Error messages are placed at the end of the specified
message file for recompiling part of a large
finds error messages in the source by
Each time it occurs, the C string starting at the
in the message file followed by a null character and a new-line character;
The new source is restructured with
pointers into the error message file for retrieval.
.Bd -literal -offset indent
char efilname = "/usr/lib/pi_strings";
efil = open(efilname, 0);
if (lseek(efil, (long) a1, 0) \ read(efil, buf, 256) <= 0)
was intended for the limited architecture of the PDP 11 family.
Very few programs actually use it. The pascal interpreter,
are two programs that are built this way.
It is not an efficient method, the error messages
should be stored in the program text.