fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
ACCEPT COMMANDS IN THE CODE
ACCEPT COMMANDS [EMBEDDED] IN [THE] CODE ACCEPT DIRECTIVES [EMBEDDED] IN [THE] CODE IGNORE COMMANDS [EMBEDDED] IN [THE] CODE IGNORE DIRECTIVES [EMBEDDED] IN [THE] CODE
Commands to fpt may be written within comments in the Fortran code. They are introduced by a comment delimiter in column 1 immediately followed by the character % in column 2. For example:
! Expand call to CHSORT in-line !% INLINE CALL CHSORT(NAMLIS,STAB,IE) IF (IE .NE. 0) GOTO 9010
The command ACCEPT COMMANDS IN THE CODE instructs fpt to process these commands. The command IGNORE COMMANDS IN THE CODE instructs fpt to ignore them. They are then transcribed as if they were ordinary comments and may be processed by fpt on subsequent passes.
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|
%ACCEPT COMMANDS IN THE CODE
(Note that defaults may be changed in the configuration file)
On the command line: inline expansion and loop unwinding are suppressed because fpt is invoked on this occasion only to check the usage of names.
$ fpt "%ignore commands in the code" aero.fsp "%check names"
Copyright ©1995 to 2018 Software Validation Ltd. All rights reserved.