FPT and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Reference Manual Home |
Syntax:
[ DO NOT ] FORMAT HEADER [ COMMENTS ] |
[ DO NOT ] REFORMAT HEADER [ COMMENTS ] |
Function:
Controls whether or not FPT reformats header comments in the same way as comments within the code body of a file. Header comments are considered to be all comments written before the first statement in a file which is not an OPTIONS, PROGRAM, BLOCK DATA SUBROUTINE, FUNCTION or MODULE statement.
By default, comments within the body of a file are indented to the same level as the code according to the following rules:
if, in fixed format code, the original comment starts before the end of the label field it is transcribed without modification;
if the original comment starts after the label field it is indented to the same level as the code. Thus, for example, if the code is indented by 10 spaces, 6 for the label field and 2 each for two levels of DO loop nesting, the comments are also indented by 10 spaces.
Indentation of all comments may be enabled or suppressed by the command INDENT COMMENTS
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:
DO NOT REFORMAT HEADER COMMENTS
(Note that defaults may be changed in the configuration file)
See also:
Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.