Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 57
TYPE Clause
•
The output for a bit map declared in a group structure is FILLER. Both
named bit fields and filler bit fields have the same number of words as the
bit map.
•
For Pascal, DDL generates bit maps as follows:
•
The output for a bit map declared as a field definition is INT (
bit-length
)
or UNSIGNED (
bit-length
). The Pascal compiler allocates the whole
16-bit word for the bit fields and treats the unused leading bits as bit fillers.
•
The output for a bit map declared in a group definition or record is
INT (
bit-length
) or UNSIGNED (
bit-length
) inside a packed record.
•
The output for a bit 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. You
should not try to access bit filler data items or reference the name of a bit
filler.
°
For TACL, DDL generates bit maps as follows:
•
The output for a bit map declared as a field definition is INT or UINT. DDL
ignores
bit-length
.
•
The output for a bit map declared in a group structure is FILLER. Both
named bit fields and filler bit fields have the same number of words as the
bit map.
°
For pTAL or TAL, DDL generates bit maps as follows:
•
The output for a bit map declared as a field definition is INT. DDL ignores
bit-length.
•
The output for a bit map declared in a group definition or a record is
UNSIGNED (
bit-length
) in a STRUCT template.
•
The output for a bit filler is BIT_FILLER
bit-length
in a STRUCT
template.
°
For C, Pascal, pTAL, and TAL, avoid defining level 89 clauses with the same
name in different items. In these languages, two distinctive literals cannot have
the same name, whether the literals are numeric constants or are in an
enumeration item. When generating output for these languages, DDL does not
check for level 89 clauses of the same name.
•
Appendix C, DDL Data Translation
, provides tables listing the C, COBOL,
FORTRAN, Pascal, pTAL, TACL, and TAL data types generated by the TYPE
data-type
clause.
Referring to a Definition of a Different Name. The following points are guidelines for
using the TYPE
def-name
clause: