SQL/MX 3.2 Programming Manual for C and COBOL (H06.25+, J06.14+)

C/C++ Program Compilation
HP NonStop SQL/MX Release 3.2 Programming Manual for C and COBOL663854-002
15-11
Preprocessor Functions
If you specify the -I option, the preprocessor expands the nested #include files. The
-I option supports a maximum nesting limit of 200 levels. While processing nested
#include files, circular inclusion of include files is detected, and the preprocessor
issues warning 13089, and comments the #include line in the output source file.
By default, the preprocessor processes only the #include files on OSS, that have a
.mxh extension. Using the -h command-line option, the preprocessor processes the
#include files with any extension or no extension. The preprocessor also processes
the #include files specified within the pragma MXH and NOMXH directives. It supports
Guardian DEFINEs for the #include directive. If the -O option is specified, the OSS-
hosted SQL/MX preprocessor resolves the Guardian class MAP DEFINE with the
actual filename and processes it. The Windows-hosted SQL/MX preprocessor does not
support Guardian DEFINEs.
The preprocessor ignores:
Nested #include directives, if the -I option is not specified
System #include directives (for example, <time.h>)
The NOLIST option if it is part of the #include file command
Examples:
The contents of the mine3.mxh file are included in the output source file:
#include "mine3.mxh"
Only sect1, sect2,and sect6 are included, and NOLIST is ignored:
#include "mine4.mxh (sect1,sect2,sect6)" NOLIST
The contents of the mine.h and mine2 files are included if -h is specified, and
NOLIST is ignored:
#include "mine.h"
#include "../includes/mine2" NOLIST
The contents of the file mapped by DEFINE =cdef1 are included, if -h and -O
are specified:
#include "=cdef1"