Data Definition Language (DDL) Reference Manual
Definition Attributes
Data Definition Language (DDL) Reference Manual—529431-004
6-57
Specifying TYPE data-type
The DDL compiler generates:
•
Bit Maps for C on page 6-57
•
Bit Maps for COBOL on page 6-59
•
Bit Maps for FORTRAN on page 6-61
•
Bit Maps for Pascal (D-series Systems Only) on page 6-62
•
Bit Maps for TACL on page 6-64
•
Bit Maps for pTAL and TAL on page 6-66
Bit Maps for C
If bit-length is greater than 1, the output for field definition is SHORT or UNSIGNED
SHORT. Group definition output is short fieldname:bit-length or unsigned
fieldname:bit-length.
If bit-length is 1, the output for a bit map is unsigned short.
The DDL compiler does not generate C output for implicit bit fillers and therefore does
not generate any C code for an implicit byte filler at the end of the substructure.
The output for an explicit byte filler is a bit field whose name is of the form filler_n ; that
is, the output is the same as for other FILLER items. If any item at the same level as
the bit filler has the same generated filler name, then the filler name ends with the next
integer that does not cause the conflict. Do not try to access bit filler data items or
reference the name of a bit filler.
Avoid defining level-89 clauses with the same name in different items. In C, two
distinctive literals cannot have the same name, whether the literals are numeric
constants or are in an enumeration item. When generating output for C, the DDL
compiler does not check for level-89 clauses of the same name.
For a list of C data types that the TYPE data-type clause generates, see Table C- 1 ,
Sample DDL/C Data Translation Table, on page C-1.