gtpp2m0i | Programming Standards |
The following table describes how to name the C/C++ item that is in a C or C++ source file; these are the actual contents, not the external source file name. These conventions are in place to avoid clashing with namespaces of customers:
Table 2. Naming Conventions for C/C++ Source Code (Contents of File)
Item in C/C++ Source File | Standard and Ported C/C++ Code | TPF - Interface Protected (Interface Guaranteed) | TPF - Implementation Specific (Interface Not Guaranteed) | BAL Equivalent Exists |
---|---|---|---|---|
identifiers
macro (#define) typedef enumeration
tags5
exported
| As is2 | One of the following3:
| Anything | One of the following:4
|
names coded with the #pragma map directive or assembler
external symbols
| @@xxxxxx, where x is any alphanumeric character.
| @@xxxxxx, where x is any alphanumeric character.
| @@xxxxxx, where x is any alphanumeric character.
| @@xxxxxx, where x is any alphanumeric character.
|
Table Notes:
Name in Header File ------------------- pragma maps library tpf_sort() --------> @@SORT to pragma maps DLM tpf_cima_sort() --------> CIMA to
See "Mapping Library Names and LONGNAME Support" for information about LONGNAME support.
standpkg_portedfunc /* Part of the package and ported as is */ standpkg_newfunc_tpf /* Part of the package but written by TPF */
The following assembler system equates #SYSEQ EQU 12 maximum number of jobs allowed in system WIGITCNT EQU 42 number of wigits supported become, in C #define _SYSEQ 12 /* maximum number of jobs allowed in system */ #define WIGITCNT 42 /* number of wigits supported */