1
.\" Copyright (c) 1988 Massachusetts Institute of Technology,
2
.\" Student Information Processing Board. All rights reserved.
4
.\" $Header: lib/et/SCCS/s.compile_et.1 1.15 00/12/04 23:49:07-00:00 tytso@mit.edu $
6
.TH COMPILE_ET 1 "30 Mar 1998" SIPB
8
compile_et \- error table compiler
14
converts a table listing error-code names and associated messages into
15
a C source file suitable for use with the
19
The source file name must end with a suffix of ``.et''; the file
20
consists of a declaration supplying the name (up to four characters
21
long) of the error-code table:
26
followed by up to 256 entries of the form:
38
to indicate the end of the table.
40
The name of the table is used to construct the name of a subroutine
41
.I initialize_XXXX_error_table
42
which must be called in order for the
44
library to recognize the error table.
46
The various error codes defined are assigned sequentially increasing
47
numbers (starting with a large number computed as a hash function of
48
the name of the table); thus for compatibility it is suggested that
49
new codes be added only to the end of an existing table, and that no
50
codes be removed from tables.
52
The names defined in the table are placed into a C header file with
53
preprocessor directives defining them as integer constants of up to
56
A C source file is also generated which should be compiled and linked
57
with the object files which reference these error codes; it contains
58
the text of the messages and the initialization subroutine. Both C
59
files have names derived from that of the original source file, with
60
the ``.et'' suffix replaced by ``.c'' and ``.h''.
62
A ``#'' in the source file is treated as a comment character, and all
63
remaining text to the end of the source line will be ignored.
69
uses a very simple parser based on
71
and this current version of
73
uses an awk/sed combination of scripts,
74
its error recovery leaves much to be desired.
76
.\" .IR for manual entries
77
.\" .PP for paragraph breaks
82
Ken Raeburn, "A Common Error Description Library for UNIX".