pTAL Reference Manual (H06.03+)

Procedures, Subprocedures, and Procedure
Pointers
HP pTAL Reference Manual523746-005
14-29
Declaring PROCPTR Variables
referral
is the name of a previously declared structure or structure pointer. You must
include referral if the formal parameter identifier is the name of a
structure.
Topics:
Declaring PROCPTR Variables on page 14-29
Declaring PROCPTR in Structures on page 14-30
Declaring PROCPTRs as Formal Parameters on page 14-32
Assignments to PROCPTRs on page 14-33
Dynamically Selected Procedure Calls on page 14-35
Declaring PROCPTR Variables
procptr
is a pointer identifier.
prev-identifier
is the identifier of a previously declared variable. On TNS architecture, prev-
identifier must be 16 bits. On TNS/R and TNS/E architecture, prev-
identifier must be 32 bits or more.
procaddr
is a constant or dynamic expression of type PROCADDR. procaddr must be the
name of a procedure, procedure pointer, or PROCADDR variable. If procaddr is
a procedure or procedure pointer, the parameters of procptr and procaddr
must match and the following procedure attributes must match: EXTENSIBLE,
VARIABLE, RETURNSCC, MAIN, and INTERRUPT; the following procedure
attributes do not have to match: OVERFLOW_TRAPS, CALLABLE, PRIV, and
RESIDENT.
You can declare a PROCPTR anywhere a data declaration is valid. For purposes of
declarations, PROCPTRs are treated as data, not as procedures.
The address type of a PROCPTR is PROCADDR.
The address type of a PROCADDR variable is WADDR.
;
VST714.vsd
=
:=
prev-identifier
procaddr
procptr