HP Pascal/iX Reference Manual (31502-90022)

12- 37
Example 1
This example applies only to HP-UX.
PROGRAM show_include;
VAR
$INCLUDE '/users/pascal/prog1/global'$
BEGIN
i := 3;
j := 1.55;
END.
If the file /users/pascal/prog1/global is:
i : INTEGER;
j : REAL;
Then the preceding program is equivalent to:
PROGRAM show_include;
VAR
i : INTEGER;
j : REAL;
BEGIN
i := 3;
j := 1.55;
END.
Example 2
This example applies only to MPE/iX.
PROGRAM show_include;
VAR
$INCLUDE 'global.prog1.pascal'$
BEGIN
i := 3;
j := 1.55;
END.
If the file global.prog1.pascal is:
i : INTEGER;
j : REAL;
Then the preceding program is equivalent to:
PROGRAM show_include;
VAR
i : INTEGER;
j : REAL;
BEGIN
i := 3;
j := 1.55;
END.
INCLUDE_SEARCH
INCLUDE_SEARCH is a System-Dependent MPE/iX and HP-UX Option.
You can use the INCLUDE_SEARCH compiler option to set or modify the
search path used by the compiler. This search path specifies the order
of directories a compiler searches to find files specified in the INCLUDE
directive. The search stops on t he first successful attempt to open a
file. Files specified in the INCLUDE directive are called
included