fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
[NO] COLUMN FORMAT
The command [NO] COLUMN FORMAT is equivalent to the two commands [NO] COLUMN FORMAT CONDITIONALS and [NO] COLUMN FORMAT DECLARATIONS.
[NO] COLUMN FORMAT CONDITIONALS Specifies whether or not IF and ELSEIF statements with more than one logical sub-expression are reformatted in columns, with parentheses at the same nesting level aligned vertically. For example:
IF ( ( ( ch .GE. 'A' ) .AND. & ( ch .LE. 'Z' ) ) .OR. & ( ( ch .GE. 'a' ) .AND. & ( ch .LE. 'z' ) ) .OR. & ( ch .EQ. '_' ) .OR. & ( ch .EQ. '$' ) ) THEN
[NO] COLUMN FORMAT DECLARATIONS specifies whether or not declaration statements are to be reformatted with every object declared on a single line. This is convenient if the declarations are to be annotated with trailing comments. For example:
INTEGER 1 NVERT 1 , NITER 1 , MAXITER 1 , IPASS
Trailing comments associated with the declarations of objects in the original source code are transcribed to all declaration statements for those objects in the output code.
When code is examined interactively it is usually easier to turn column formatting off.
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|
NO COLUMN FORMAT
(Note that defaults for formatting are usually specified in the configuration file or in formatting .fsp files invoked from it.)
COLUMN FORMAT CONDITIONALS
COLUMN FORMAT DECLARATIONS
Copyright ©1995 to 2022 Software Validation Ltd. All rights reserved.