pTAL Reference Manual (H06.03+)

Compiler Directives
HP pTAL Reference Manual523746-005
17-61
Including System Procedure Declarations
NOLIST
You can precede SOURCE with NOLIST to suppress the listings of procedures to be
read in. Place NOLIST and SOURCE on the same line, because the line containing
NOLIST is not suppressed:
?PUSHLIST, NOLIST, SOURCE $src.current.routines
! Suppress listings, read in external declarations of routines
?POPLIST
USEGLOBALS and BEGINCOMPILATION (pTAL Compiler
Only)
If USEGLOBALS is active, the compiler ignores all SOURCE directives until it
encounters BEGINCOMPILATION. For more information about how these directives
interact, see Saving and Using Global Data Declarations on page 17-8.
Including System Procedure Declarations
You can use SOURCE directives to read in external declarations of system procedures
from the EXTDECS files. In these files, the procedure name and the corresponding
section name are the same. EXTDECS0 contains the current RVU of system
procedures.
In Example 17-31 on page 17-61, a SOURCE directive specifies the current version of
system procedures. A NOLIST directive suppresses the listings for the system
procedures. Place NOLIST and SOURCE on the same line, because the line
containing the NOLIST directive is not suppressed.
A procedure in the same source file can then call the procedures listed in the
preceding SOURCE directive, as in Example 17-32 on page 17-62.
Example 17-31. SOURCE Directive Specifying System Procedure Declarations
?PUSHLIST, NOLIST, SOURCE $SYSTEM.SYSTEM.EXTDECS0 (
? PROCESS_DEBUG_, PROCESS_STOP_)
! Suppress listings
! Read external declarations of current system procedures
?POPLIST