FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


CHANGE NAMES OF DUPLICATE SUB-PROGRAMS

Syntax:

[DO NOT] CHANGE NAMES OF DUPLICATE SUB-PROGRAMS

Function:

This command controls the behaviour of FPT when it encounters a duplicate program or sub-program.

If CHANGE NAMES OF DUPLICATE SUB-PROGRAMS is set, FPT renames the second occurrence of the sub-program by attaching the suffix _2 to the name, the third by attaching _3 and so on. This is useful when comparing different versions of the same sub-program with the COMPARE VERSIONS command.

If DO NOT CHANGE NAMES OF DUPLICATE SUB-PROGRAMS is set, the names are unchanged. This is useful when multiple programs are processed together, and different files are known to contain variants of the same sub-program which will be linked separately.

In either case, the duplicate names are marked by diagnostics. These may be suppressed by the command NO WARNINGS FOR DUPLICATE SUB-PROGRAMS

Modification of the sub-program names may generate name clashes with the names of other objects, and may generate names which are too long for the system in use. Name clashes are resolved by skipping the sequence numbers of the duplicate names until an unused name is found. Long names are shortened before addition of the suffix.

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

Yes


Default:

Duplicate names are changed by default.

See also:

COMPARE VERSIONS

NO WARNINGS FOR DUPLICATE SUB-PROGRAMS


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