Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-9
C
Default: home terminal
!
purges the contents of c-source-file before opening it, if it exists. If
c-source-file does not exist, the exclamation point has no effect.
Without the exclamation point, the DDL compiler appends the new C source code
statements to the end of c-source-file, and does not replace any existing
objects.
NOC
closes any open C source code file and stops translating DDL object definitions to
C source code statements.
For the data types that the DDL compiler generates for C source code, see Table C-1
on page C-1.
The compiler can translate DDL objects specified in an OUTPUT statement only if the
dictionary containing these objects is open.
Each DDL object translated to C source code is written to the C source code file in a
separate section that has the same name as the DDL object it contains. To suppress
the generation of individual section headings with the SETSECTION command.
With the exception of the TOKEN-MAP statement, the DDL compiler does not generate
C data definitions that allocate space. Instead, the DDL compiler generates C
typedefs for scalar types and structure templates for multiple-element DDL records.
The DDL compiler replaces any hyphen in a DDL name with an underscore (_) before
writing the name to the C source code file.
The DDL compiler appends the characters _def to the tag for all C typedefs and
structures generated by the DDL compiler; therefore, the maximum length for the name
of a DDL definition or record that is going to be translated to C is 27 ASCII characters,
not the standard DDL length of 30 characters.
All C identifiers generated by the DDL compiler are in lowercase letters, except #define
names, which are in uppercase letters by default. You can use the
NOCDEFINEUPPER command to specify lowercase letters for #define names.
The C source code for a definition or record compiled with EXPANDC contains the
fillers added by the DDL compiler as specified by the alignment algorithm in effect
when the definition or record was compiled.
The DDL compiler performs all of the syntax checks listed under the CCHECK
command before writing the C source output. If the DDL compiler finds a syntax error,
it does not write the source output for the object with the error; it does write source
output for an object if only a warning is issued.
All C arrays have a lower bound of 0.