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

int I;
int foo (void) {return I;} // Member function -
// neither exported nor imported
export$ static int J; // Exported static data member
};
int C3a::J = 1; //Definition for exported static data member
class C3b {
public :
int I;
int foo (void) {return I;} // Member function -
// neither exported nor imported
import$ static int J; // Imported static data member
};
// Error to selectively export/import members of an exported/imported class
class export$ C4 {
public :
int I;
import$ int foo (void) {return I;} // Error
export$ static int J; // Error
};
int C4::J = 1; //Definition for exported static data member.
//Error to export & import members from a class in a single compilation unit
class C5 {
public :
int I;
export$ int foo (void) {return I;} // Exported member function
import$ static int J; // Error
};
Type Specifier
For the TNS compilers, the _cc_status type specifier is a HP extension. For the native compilers,
_cc_status is a typedef in the tal.h header file, and you must include this header file to use
_cc_status.
NOTE: Do not write C functions or TAL procedures that set a condition code and use _cc_status
because that is an outdated programming practice. Guardian system procedures retain this interface
for reasons of compatibility only.
type-specifier
void | char | short | int | long | float | double|
signed | unsigned | bool | _cc_status |
struct-or-union-specifier | enum-specifier | typedef-name
void, char, short, int, long, float, double, signed, unsigned, and bool
are as described in the ISO/ANSI C standard. Additional information concerning these
predefined data types is given later in this section and in Appendix A: HP C
Declarations 53