Technical data

2
Working with the Target Language
2-28
Input File Control
The input file control directives are:
%include string
%addincludepath string
The %include directive searches the path for the target file specified by string
and includes the contents of the file inline at the point where the
%include
statement appears.
The
%addincludepath directive adds an additional include path to be searched
when the Target Language Compiler references
%include or block target files.
The syntax is:
%addincludepath string
The string can be an absolute path or an explicit relative path. For example,
to specify an absolute path, use:
%addincludepath "C:\directory1\directory2" (PC)
%addincludepath "/directory1/directory2" (UNIX)
%addincludepath "directory1:directory2" (Macintosh)
To specify a relative path, the path must explicitly start with “
.” on the PC or
UNIX, or “
: on the Macintosh. For example:
%addincludepath ".\directory2" (PC)
%addincludepath "./directory2" (UNIX)
%addincludepath ":directory2" (Macintosh)
When an explicit relative path is specified, the directory that is added to the
Target Language Compiler search path is created by concatenating the
location of the target file that contains the
%addincludepath directive and the
explicit relative path.
The Target Language Compiler searches the directories in the following order
for target or include files:
1
The current directory
2
Any %addincludepath directives
3
Any include paths specified at the command line via –I