Ctokenmap_Asdefine Command - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

DDL Compiler Commands

CTOKENMAP_ASDEFINE Command

The CTOKENMAP_ASDEFINE compiler command controls whether the DDL compiler
generates the C output of a TOKEN-MAP as a #define or as a static int array.
[ NO ] CTOKENMAP_ASDEFINE
CTOKENMAP_ASDEFINE
directs the DDL compiler to generate the C output of a TOKEN-MAP as a
#define. (By default, DDL generates the C output of a TOKEN-MAP as a static
int array.) When the compiler command CTOKENMAP_ASDEFINE is specified,
all subsequent TOKEN-MAPs are generated in C output as #defines.
NOCTOKENMAP_ASDEFINE
directs the DDL compiler to generate the C output of a TOKEN-MAP as a static
int array. This command allows the user to revert to generation of C output as
static int arrays when the CTOKENMAP_ASDEFINE command is in effect.
The NOCTOKENMAP_ASDEFINE command is the default command.
CTOKENMAP_ASDEFINE Command Guidelines
The following points are guidelines for using the CTOKENMAP_ASDEFINE and
NOCTOKENMAP_ASDEFINE commands:
If the C output of a TOKEN-MAP as a #define exceeds one line, a continuation
character "\" is appended to the end of all lines except the last one as required by
the C syntax for a #define.
The rules governing CDEFINEUPPER and NOCDEFINEUPPER also apply to the
C output of a TOKEN-MAP as a #define.
The CTOKENMAP_ASDEFINE and NOCTOKENMAP_ASDEFINE directives only
affect the C output of a TOKEN-MAP. The output in any other language is
unaffected. The generation of TOKEN-CODE and TOKEN-TYPE remain
unchanged in all languages.
CTOKENMAP_ASDEFINE Command Example
$ADE101 JYOTI1 51> DDL
DDL Compiler T9100ABQ - (15NOV99)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1978, 1979, 1981, 1982, 1986-1999
!?DICT
Audited dictionary created on subvol $ADE101.JYOTI1.
Dictionary opened on subvol $ADE101.JYOTI1 for update access.
!?C
/* SCHEMA PRODUCED DATE - TIME : 8/02/2000 - 15:03:17 */
Output source for C is opened on $ZTN1.#PTPJHZ4
!?CTOKENMAP_ASDEFINE
!DEF EMP.
Data Definition Language (DDL) Reference Manual—426798-002
CTOKENMAP_ASDEFINE Command
SYSTEM \BOMBAY
9- 31

Advertisement

Table of Contents
loading

Table of Contents