gtpa2m11 | Application Programming |
An integral component of C language is the ability to include function prototypes, parameter definitions, preprocessor directives, and commonly used structures in what is known as a header or header file. The preprocessor #include directive is used to specify that the contents of a particular header file are to be included as part of the C source module.
The TPF system provides several header files that support the TPF API functions and map common TPF data structures and the IBM released globals (frequently used and commonly accessed symbols and values that reside in main storage). For example, header file c$eb0eb.h maps the ECB structure. In addition, TPF provides a subset of the C/370 header files for use when compiling C code for the TPF system.
Once ISO-C support has been added to your system, if a TARGET(TPF) program is to be compiled, the DEFINE(_TARGET_TPF) compiler option must be specified. DEFINE(_TARGET_TPF) can either be specified as a command line parameter to the compiler or it can be added to the source code as #DEFINE _TARGET_TPF 1. Header files and macros will produce ISO-C compatible code unless _TARGET_TPF is defined. For a list of these header files, see Customizing C/C++ Language Support.