pTAL Conversion Guide

Structures
pTAL Conversion Guide527302-002
11-13
Template Structure Syntax
Template Structure Syntax
identifier
is the identifier of the template structure.
(*)
is the symbol for a template structure.
STRUCTALIGN (MAXALIGN)
aligns every structure that uses this template on a 16-byte boundary.
Example 11-1. Indirect Definition Structures
STRUCT .inventory1[0:49]; ! Standard indirect structure
BEGIN
INT item;
FIXED(2) price;
INT quantity;
END;
STRUCT .EXT inventory2[0:9999]; ! Extended indirect structure
BEGIN
INT item;
FIXED(2) price;
INT quantity;
END;
Note. Use this clause only with the EpTAL compiler.
STRUCT
identifier
( * )
field-alignment
structure-layout ;
VST625.vsd
STRUCTALIGN (
)MAXALIGN