C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-15
CPATHEQ
The pragma default settings are:
Usage Guidelines
The COLUMNS pragma can be entered on the compiler RUN command line or in the
source text. If it is included in the source file, the COLUMNS pragma must appear
before any SECTION pragmas.
If you do not use the COLUMNS pragma, the compiler processes the full length of
each source line.
The COLUMNS pragma can be specified only once in each source file and it must
be the only text in the source line.
The COLUMNS pragma causes physical source lines after last-column to be
truncated before the C preprocessor begins the translation phase.
The COLUMNS pragma currently in effect depends on the context:
°
The main input file uses the last-column value specified in a COLUMNS
pragma. If no COLUMNS pragma is specified, the compiler processes the full
length of each source line.
°
At each #include directive, each included file initially assumes the
last-column value in effect when the #include directive appeared.
If a COLUMNS pragma is specified in the included file, the compiler uses the
last-column value specified.
°
After a #include directive completes execution (that is, after the end of file is
reached), the compiler restores the last-column value to what it was when
the #include directive appeared.
°
In all other cases, the last-column value is set by the most recently
processed COLUMNS pragma.
CPATHEQ
The CPATHEQ pragma specifies a file to be included before the compiler begins
compiling the source file. The CPATHEQ file is an EDIT file that typically contains
MAPINCLUDE pragmas to submit to the C or C++ compiler. The CPATHEQ file can also
be used to provide command-line options that exceed a single command line, such as
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set