fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

EDIT FILE NAMES IN INCLUDE STATEMENTS

Syntax:

EDIT FILE NAMES IN INCLUDE [STATEMENTS][:] REPLACE <string> BY <string>

Function:

The specified change is made in the file names written in INCLUDE statements in the output code. The corresponding output files are NOT renamed.

The string to be replaced is case insensitive. The replacement string is case sensitive.

The names of the files written to the output directories may be edited by the command EDIT OUTPUT FILE NAMES. This command also changes the names written in INCLUDE statements.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code Yes

Default

No change is made by default (Note that defaults may be changed in the configuration file).

Examples

fpt is run under Windows, preparing files for migration to MPX. The commands:

% upper case file names % reverse file names % write directories in include statements % edit file names in INCLUDE statements: - replace 'd:\fptout\datapool\' by '^(DATAPOOL) % edit file names in INCLUDE statements: - replace 'd:\fptout\inc\' by '^(INC)'

result in INCLUDE statements of the form:

INCLUDE '^(DATAPOOL)FPI.INIT_FLG' INCLUDE '^(INC)FPI.VPUCOM'

This is the format required by the MPX operating system. The output file names themselves are not changed.

See Also

LOWER CASE FILE NAMES

UPPER CASE FILE NAMES

EDIT OUTPUT FILE NAMES

Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.