TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-82
Example of SECTION Directive
Example of SECTION Directive
1. This example gives a different section name, such as SORT_PROC and
NEXT_PROC, to each procedure in a source library:
!File ID APPLLIB
?SECTION sort_proc
PROC sort_on_key(key1, key2, key3, length);
INT .key1, .key2, .key3, length;
BEGIN
!Lots of code
END;
?SECTION next_proc
2. Another source file includes the previous file name and a section name in a
SOURCE directive:
?SOURCE appllib (sort_proc)
SETTOG Directive
SETTOG turns the specified toggles on for use in conditional compilations. The
SETTOG directive supports named toggles in addition to numeric toggles.
toggle-name
is a user-defined name that conforms to the TAL identifier format. You must specify
each toggle name you want turned on.
toggle-number
is an unsigned decimal constant in the range 1 through 15. Leading zeros are
ignored. SETTOG with no arguments turns on all numeric toggles but does not
affect named toggles.
VST1655.vsd
,
toggle-name
toggle-number
,
toggle-name
toggle-number
( )
SETTOG