FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


SHOW SUB-PROGRAMS

Syntax:

[DO NOT] SHOW SUB-PROGRAMS

[DO NOT] LIST SUB-PROGRAMS

Function:

The sub-programs 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 TERMINAL 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

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

Yes


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:

LIST TO FILE

LIST TO TERMINAL

SHOW SUB-PROGRAM INTERFACES


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