pTAL Reference Manual (H06.08+)
Equivalenced Variables
HP pTAL Reference Manual—523746-006
11-18
Declaring Equivalenced Definition Structures
offset
is an INT constant that specifies a word offset. Specify offset only with indirect
variables. The offset is from the location of the pointer, not from the location of the
data pointed to.
structure-layout
is a BEGIN-END block that contains declarations. For more information about the
structure layout, See Section 9, Structures.
You must specify either referral or structure-layout but not both in an
equivalenced structure declaration.
You can specify a FIELDALIGN clause only if you specify structure-layout. You
cannot specify a FIELDALIGN clause for a referral structure.
Example 11-8. Declaring Equivalenced Structures
STRUCT a;
BEGIN
INT i;
INT j;
END;
STRUCT b = a;
BEGIN
INT(32) z;
END;
STRUCT c[0:3];
BEGIN
INT i;
INT j;
END;
STRUCT d[0:3] = c;
BEGIN
INT(32) z;
END;










