[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4. The error-table compiler

The error table compiler is named compile_et. It takes one argument, the pathname of a file (ending in ‘.et’, e.g., ‘dsc_err.et’) containing an error table source file. It parses the error table, and generates two output files – a C header file (‘discuss_err.h’) which contains definitions of the numerical values of the error codes defined in the error table, and a C source file which should be compiled and linked with the executable. The header file must be included in the source of a module which wishes to reference the error codes defined; the object module generated from the C code may be linked in to a program which wishes to use the printed forms of the error codes.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Build Daemon user on March 17, 2011 using texi2html 1.82.