fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CALL STRUCTURE LISTING DEPTH

Syntax:

CALL STRUCTURE [LISTING] DEPTH [:] <integer>

Function:

This command controls the maximum nesting depth displayed in a program or sub-program call tree. Call trees are listed by the LIST CALL STRUCTURE, SHOW CALL STRUCTURE and SHOW CALL TREE commands. An example section of a call tree is shown below:

Call Tree: FSWRIT ================= 0 FSWRIT 1 ! TRACE 2 ! ! WRSKIP 3 ! ! ! PAGE 2 ! ! WRITEL 3 ! ! ! PAGE 1 ! OUTFSP 1 ! FSHEAD 2 ! ! FILOPN 3 ! ! ! WRITEL 4 ! ! ! ! PAGE 2 ! ! WRITEL 3 ! ! ! PAGE 2 ! ! INPFSP 2 ! ! WRSTAT 3 ! ! ! STARTS 4 ! ! ! ! GETPRC 5 ! ! ! ! ! FATERR ... 4 ! ! ! ! FATERR 5 ! ! ! ! ! FPTDMP 5 ! ! ! ! ! RESRPT ... 5 ! ! ! ! ! EXISUB ...

The call nesting level is displayed at the left margin. fpt stops expanding the listing at the criterion level of nesting specified by the CALL STRUCTURE LISTING DEPTH command. Sub-programs with calls beyond this level are marked by elipses, ..., as are FATERR, RESRPT and EXISUB in the listing above. Please note that increasing the depth increases the length as well as the width of the listing, as the calls by all occurrences of all routines are displayed.

A long interactive listing may be terminated by the command STOP CALL STRUCTURE LISTING.

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

CALL STRUCTURE LISTING DEPTH: 5

(Note that defaults may be changed in the configuration file)

See Also

CALL STRUCTURE LISTING

SHOW CALL TREE

STOP

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