fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
SHOW SUB-PROGRAMS
Syntax:
[DO NOT] SHOW SUB-PROGRAMS [DO NOT] LIST SUB-PROGRAMS
Function:
The sub-programs, including the programs themselves, are listed in alphabetical order.
The declaration statement is printed for each sub-program, followed by its data type if it is a function, followed by a list of the arguments (if any) and their attributes.
When the command is made interactively, the list is directed to the user's screen, and may be re-directed by the LIST TO FILE and LIST TO SCREEN commands. When fpt is run non-interactively, the list is written to the listing (.fpl) file only.
Where to Use this Command
| Operating system command line | Yes |
| Configuration file, config.fsp | No |
| Specification (fsp) files, *.fsp | Yes |
| Interactively, to FPT> prompt | Yes |
| Interactive command files | Yes |
| Embedded in the Fortran code | No |
Example:
FPT> show sub-programs Sub-program Listing =================== Subroutine Line 1, File: j:\fpt\fpttests\closap.f SUBROUTINE CLOSAP(I,P1,P2,CRITA,CRITH,*,MINT) Arguments I CLOSAP Formal Input Argument INTEGER *4 df P1 CLOSAP Formal Input Argument REAL *4 df P2 CLOSAP Formal Input Argument REAL *4 df CRITA CLOSAP Formal Input Argument REAL *4 df CRITH CLOSAP Formal Input Argument REAL *4 df * - Alternate return label MINT CLOSAP Formal Input-Output Argument REAL *4 df ------------------------------------------------------------------------------ Function Line: 1 File: j:\fpt\fpttests\deviat.f FUNCTION DEVIAT(SD) REAL*4 DEVIAT Arguments SD DEVIAT Formal Input Argument REAL *4 df ------------------------------------------------------------------------------
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.