TAL Reference Manual
Structures
TAL Reference Manual—526371-001
8-12
Example of Referral Substructure Declaration
upper-bound
is an INT constant expression (in the range –32,768 through 32,767) that specifies
the index (relative to the zeroth occurrence) of the last substructure occurrence
you want allocated. The default value is 0. For a single-occurrence substructure,
omit both bounds or specify the same value for both bounds.
Example of Referral Substructure Declaration
This example declares a referral substructure that uses a template structure layout:
STRUCT temp(*); !Declare template structure
BEGIN
STRING a[0:2]; !No space allocated for
INT b; ! this layout
STRING c;
END;
STRUCT .ind_struct; !Declare definition structure
BEGIN
INT header[0:1]; !Space allocated for this layout
STRING abyte;
STRUCT abc (temp) [0:1];!Declare referral substructure
END; !The size of IND_STRUCT.ABC[0]
! is eight bytes
Filler Declaration
A filler declaration allocates a byte or bit place holder in a structure.
FILLER
allocates the specified number of byte place holders.
BIT_FILLER
allocates the specified number of bit place holders.
constant-expression
is a positive integer constant value that specifies a number of filler units in one of
the following ranges:
FILLER 0 through 32,767 bytes
BIT_FILLER 0 through 255 bits
VST0808.vsd
;
BIT_FILTER
FILTER
constant-expression