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

...
} else if (cc == CCG) {
...
}
/* D40 method */
if (_status_lt(cc)) {
...
} else if (_status_gt(cc)) {
...
}
Type Qualifier
The _cspace type qualifier is an HP extension. The _cspace type qualifier is applicable only in
the TNS Guardian environment. _cspace is unnecessary in the native environment; however the
native compilers recognize the _cspace keyword to provide source-level compatibility with the
TNS compiler. Source-level compatibility involves only accepting syntactically correct TNS programs,
not diagnosing semantic violations with _cspace usage.
type-qualifier
const | _cspace | volatile
const
is described in the ISO/ANSI C standard.
_cspace
indicates that the specified constant is stored in the current code space (only for TNS C and
C++). The _cspace type qualifier must be accompanied by the const type qualifier. For
more details on the use of the _cspace type qualifier, see Chapter 9: System-Level
Programming.
volatile
In the ISO/ANSI C standard, if a variable is declared with the volatile type qualifier, the
variable can be modified by an agent external to the program. The architecture of HP NonStop
systems does not support external modifications to variables by agents external to the program.
For compatibility with the ISO/ANSI C standard, HP defines volatile to mean:
For the TNS C compiler and the TNS C++ preprocessor, the volatile type qualifier is
accepted and ignored.
For the native C and C++ compilers, if a variable is qualified with the volatile type
qualifier, this means that loads and stores of this variable must access memory, not a
register.
For TNS C++, you cannot use volatile to distinguish specific instances of overloaded member
functions.
Attribute Specifier
The attribute specifier is an HP extension. It is used for writing system-level C and C++ functions
and for declaring external routines written in other languages.
NOTE: The attribute specifier is an outdated syntax for mixed-language programming and is
maintained only for compatibility. To declare external routines written in another language, you
should use the FUNCTION pragma syntax as described in FUNCTION (page 195).
The attribute specifier is applicable only in the Guardian environment.
attribute-specifier:
[ language-specifier ] [ attribute [ attribute ]... ]
Declarations 55