TAL Reference Manual

Structures
TAL Reference Manual526371-001
8-22
Referral Substructure Redefinition
Referral Substructure Redefinition
A referral substructure redefinition associates a new referral substructure with a
previous item at the same BEGIN-END level of a structure.
identifier
is the identifier of the new substructure.
referral
is the identifier of a structure that provides the structure layout. You can specify any
previously declared structure (except the encompassing structure) or structure
pointer. If the previous structure has an odd-byte size, the compiler rounds the size
of the new substructure up so it has an even-byte size.
lower-bound
is an INT constant expression (in the range -32,768 through 32,767) that specifies
the index (relative to the zeroth substructure occurrence) of the first substructure
occurrence you want allocated. Each occurrence is one copy of the substructure.
The default value is 0.
upper-bound
is an INT constant expression (in the range -32,768 through 32,767) that specifies
the index (relative to the zeroth substructure occurrence) of the last substructure
occurrence you want allocated. The default value is 0. To declare a single-
occurrence substructure, omit both bounds or specify the same value for both
bounds.
previous-identifier
is the identifier of a simple variable, array, substructure, or pointer previously
declared in the same structure. No index is allowed with this identifier.
Usage Considerations
If the previous item is a substructure and you omit the bounds or if either bound is 0,
the new substructure and the previous substructure occupy the same space and have
the same offset from the beginning of the structure.
VST0814.vsd
identifier
STRUCT
[ : ]
lower-
bound
upper-
bound
( )
referral
;
previous-
identifier
=