pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-4
Directive Stacks
Directive Stacks
Each of these directives has a compile-time directive stack onto which you can push,
and from which you can pop, directive settings:
CHECKSHIFTCOUNT on page 17-23
DEFEXPAND on page 17-26
DO_TNS_SYNTAX on page 17-28
GP_OK on page 17-38
INNERLIST on page 17-42
LIST on page 17-44
MAP on page 17-45
OVERFLOW_TRAPS on page 17-49
REFALIGNED on page 17-53
Each directive stack is 31 levels deep.
Topics:
Pushing Directive Settings on page 17-4
Popping Directive Settings on page 17-4
Example on page 17-5
Pushing Directive Settings
When you push the current directive setting onto a directive stack, the current directive
setting of the source file remains unchanged until you specify a new directive setting.
To push a directive setting onto a directive stack, specify the directive name prefixed by
PUSH. For example, to push the current setting of the LIST directive onto the LIST
directive stack, specify PUSHLIST. The other values in the directive stack move down
one level. If a value is pushed off the bottom of the directive stack, that value is lost. No
diagnostic message is issued if too many items are pushed onto the stack.
Popping Directive Settings
To restore the top value from a directive stack as the current setting from the source
file, specify the directive name prefixed by POP. For example, to restore the top value
off the LIST directive stack, specify POPLIST. The remaining values in the directive
stack move up one level, and the vacated level at the bottom of the stack is set to the
off state. No diagnostic message is issued if too many items are popped from the
stack.