FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


COLUMN FORMAT

Syntax:

[NO] COLUMN FORMAT

Function:

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. 1 ( ch .LE. 'Z' ) ) .OR. 1 ( ( ch .GE. 'a' ) .AND. 1 ( ch .LE. 'z' ) ) .OR. 1 ( ch .EQ. '_' ) .OR. 1 ( 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


Default:

NO COLUMN FORMAT

(Note that defaults for formatting are usually specified in the configuration file or in formatting .FSP files invoked from it.)

Examples:

%column format ( FSP file )

FPT> no column form ( Interactive )

See also:

COLUMN FORMAT CONDITIONALS

COLUMN FORMAT DECLARATIONS


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