fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
ADD TO INPUT SEARCH PATH
ADD TO INPUT [SEARCH] PATH [:] <string>
The commands INPUT SEARCH PATH, PRIMARY INPUT SEARCH PATH and INCLUDE INPUT SEARCH PATH specify sequences of directories which are to be searched in turn for primary and for INCLUDE input files. The command ADD TO INPUT SEARCH PATH appends additional directories to the current paths for both primary and for INCLUDE files.
The search paths are used:
The directory specifications may be written as quoted strings, and this is recommended when the names are case sensitive or contain white space characters.
This command is position sensitive in the command line or specification file in which it is written. It applies to the files which follow it, and a list of Fortran files may contain several different search path specifications.
The search path is inherited by nested INCLUDE files. Thus, for example, in the specification (written in an FSP file):
%input path: "\john\aerosim\include" %add to input path: "\john\testlib" - "\john\ilib" aero gusts
if aero.for contains the INCLUDE statement:
and aerotab.inc in turn contains the statement:
then wind.inc and aerotab.inc will both be sought first in \john\aerosim\include, then in \john\testlib, and then, if no matching file is found, in \john\ilib.
Note, in the example above, that the list of directories may extend over two or more lines. The command continuation character must be used when this occurs.
The commands ADD TO PRIMARY INPUT SEARCH PATH and ADD TO INCLUDE INPUT SEARCH PATH append directories separately to the search paths for primary and for INCLUDE files.
Where to Use this Command
|Operating system command line||Yes|
|Configuration file, config.fsp||Yes|
|Specification (fsp) files, *.fsp||Yes|
|Interactively, to FPT> prompt||No|
|Interactive command files||No|
|Embedded in the Fortran code||No|
Files are sought in the current directory (Note that defaults may be changed in the configuration file).
! chequers.fsp %input search path: "/usr/people/john/work" % add to input search path: - "/usr/people/geoff/cheq" - "/usr/bin/graphlib/source" move.f crown.f timecount.f eval.f refute.f games.bda ! end chequers.fsp
In this example the primary and INCLUDE files will be sought first in /usr/people/john/work, then in /usr/people/geoff/cheq and then in /usr/bin/graphlib/source
ADD TO INCLUDE SEARCH PATH
ADD TO PRIMARY SEARCH PATH
IGNORE DIRECTORIES IN INCLUDE STATEMENTS
Copyright ©1995 to 2022 Software Validation Ltd. All rights reserved.