HP Pascal/iX Reference Manual (31502-90022)

11- 30
is implementation dependent.
Description
Addtopointer returns a pointer value that points
delta
bytes away from
where the argument
pointer
pointed. The type of the pointer returned by
addtopointer is the same as the type of the parameter
pointer
.
The results of an overflow are implementation dependent.
Example
TYPE
intptr = ^integer;
VAR
ptr1: intptr;
ptr2: intptr;
i: integer;
BEGIN
ptr2 := addtopointer (ptr1, i);
ptr1 := addtopointer (ptr1, sizeof(integer));
END
Buildpointer.
The predefined function buildpointer allows the user to construct pointer
values.
Usage
buildpointer
(space,offset)
Parameters
space
A space identifier whose range restriction and
semantics are implementation dependent.
offset
A bit32 expression whose range restriction is
implementation dependent.
Description
buildpointer returns a pointer of type globalanyptr whose value is the
address
offset
bytes into
space
.
Example
CONST
Global_Known_Space = 4916;
VAR
Ptr1 : GlobalAnyPtr;
Ptr2 : GlobalAnyPtr;
SID : Integer;
Off : Integer;
BEGIN
Ptr1 := BuildPointer (Global_Known_Space, 0);
off := 4;
Ptr2 := BuildPointer (SID, Off);
END.
In the above example, the constant Global_Known_Space represents the
value of a known space.
The first use of buildpointer creates a pointer to the location with an