fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

COMMENT-OUT

Syntax:

[DO NOT] COMMENT-OUT ASSEMBLER
[DO NOT] COMMENT-OUT DELETE
[DO NOT] COMMENT-OUT OPEN [OF] [THE] TERMINAL
[DO NOT] COMMENT-OUT OPTIONS
[DO NOT] COMMENT-OUT PAGE
[DO NOT] COMMENT-OUT UNLOCK

Function:

Comments-out code constructs which may not be supported in the target environment.

COMMENT-OUT ASSEMBLER comments out the statements CODE and EDOC (Salford/Silverfrost) and INLINE and ENDI (Gould-SEL), and all of the assembler code between them. The commented-out code is marked by diagnostics, and it is the responsibility of the user to re-program it (In the case of Gould-SEL assembler, SimCon have tools to assist in this process).

COMMENT-OUT DELETE comments out DELETE statements which delete records from files.

COMMENT-OUT OPEN OF THE TERMINAL comments out OPEN statements for the current terminal units. By default these are 5 and 6, but may be changed by the commands TERMINAL INPUT LOGICAL UNIT and TERMINAL OUTPUT LOGICAL UNIT.

COMMENT-OUT OPTIONS comments out OPTIONS and Gould-SEL (Encore) OPTION statements.

COMMENT-OUT PAGE comments out the Gould-SEL PAGE directive, which is written as if it were a Fortran statement. The directive outputs a form-feed to the listing file and has no effect on the Fortran code.

COMMENT-OUT UNLOCK comments out UNLOCK statements. These are not supported by a number of compilers, notably by Absoft. Systems which do not support this command usually do not support record locking, so the command may be removed with reasonable safety. However, the user should check that there are no side effects.

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

Code is not commented-out by default.

Examples

The following OPTIONS statement contains options, and is in a format, which are not accepted by many hosts. It is commented-out. The comment delimiter for fixed format is C FPT, where the leading C may be changed by the CHANGE COMMENT DELIMITER command.

C FPT OPTIONS (INTL,NO_LIST)

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