HP Pascal/iX Reference Manual (31502-90022)

12- 67
The object files a.o, b.o, and c.o must be specified to the linker for
the example program to be successfully linked.
SET
SET is an HP Pascal Option.
The SET compiler option assigns a Boolean value (TRUE or FALSE) to each
of one or more identifiers that appear in subsequent IF options.
Syntax
$SET
identifier
=
Boolean
[{,}
identifier
=
Boolean
]'$
[{;} ]
Parameters
identifier
Appears in an IF option later in the program. The
identifier
cannot be AND, OR, or NOT.
Boolean
The value TRUE or FALSE (the compiler is not
case-sensitive).
Default Not applicable.
Location Anywhere.
Example
The following two program fragments are equivalent:
{Fragment 1}
$SET 'group1=true, group2=false'$
.
.
.
$IF 'group1 AND (NOT group2)'$
[
source_line
]
[ . ]
[ . ]
[ . ]
$ENDIF$
{Fragment 2}
$SET 'group1 = true'$
$SET 'group2 = false'$
.
.
.
$IF 'group1'$
$IF 'NOT group2'$
[
source_line
]
[ . ]
[ . ]
[ . ]
$ENDIF$
$ENDIF$
SHLIB_CODE
SHLIB_CODE is a System_Dependent HP-UX Option.
The compiler option SHLIB_CODE causes the compiler to generate position
independent code (PIC) for use in shared libraries.
The command line options +Z and +z also specify this option.