FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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 output files themselves 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.

FPT Versions

Implemented in version 3.4-a and later.

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).

Example:

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 2014 Software Validation Ltd. All rights reserved.