fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
SET SYMBOL FILTER
Syntax:
SET SYMBOL FILTER [:] COMMON [:] <common_name> | // | * SET SYMBOL FILTER [:] SUB-PROGRAM [:] <sub-program_name> | * SET SYMBOL FILTER [:] USAGE [:] <usage> where <usage> is one of: LOCAL | COMMON BLOCK | SUB-PROGRAM | PROGRAM | BLOCK DATA | SUBROUTINE | FUNCTION | MODULE | STATEMENT FUNCTION | STATEMENT FUNCTION ARGUMENT | PARAMETER | ARGUMENT | CRAY POINTEE | STRUCTURE | FIELD | DERIVED TYPE | TYPE COMPONENT | NAMELIST | * SET SYMBOL FILTER [:] [DATA] TYPE [:] <data_type> where <data_type> is one of: LOGICAL | BIT | INTEGER | REAL | COMPLEX | CHARACTER | BYTE | DOUBLE [PRECISION] | DOUBLE COMPLEX | RECORD | DERIVED TYPE | * SET SYMBOL FILTER [:] [DATA] SIZE [:] <integer>
Function:
The command SHOW SYMBOLS displays the names and attributes of all user-defined symbols.
The command SHOW SYMBOLS MATCHING FILTERS displays the sub-set of the symbol table which matches the current symbol filters.
The command SET SYMBOL FILTER sets the filters. The command CLEAR SYMBOL FILTERS clears the filters. When these commands are made fpt displays the current state of the filters as shown in the example below.
The filter settings may be used in combination. Thus, for example the sequence of commands:
FPT> set symbol filter: type: integer Symbol Report Filters ===================== USAGE: Don't care COMMON: Don't care SUB-PROGRAM: Don't care DATA TYPE: INTEGER DATA SIZE: Don't care FPT> set symbol filter: size: 8 Symbol Report Filters ===================== USAGE: Don't care COMMON: Don't care SUB-PROGRAM: Don't care DATA TYPE: INTEGER DATA SIZE: 8 FPT> set symbol filter: common: * Symbol Report Filters ===================== USAGE: Don't care COMMON: In any COMMON SUB-PROGRAM: Don't care DATA TYPE: INTEGER DATA SIZE: 8 FPT>
sets the filters to select only 8-byte integers in any COMMON block. Note the use of the wild-card character "*" to specify any COMMON.
The attributes of an individual symbol are displayed by the SHOW SYMBOL command.
These commands are usually made interactively. The output to the user's screen and to the listing (FPL) file is controlled by the settings of the commands LIST TO SCREEN and LIST TO FILE.
The interactive displays may be stopped by the command STOP, which is made to the Page> prompt.
Where to use these commands:
| Operating system command line | No |
| Configuration file, config.fsp | No |
| Specification (fsp) files, *.fsp | No |
| Interactively, to FPT> prompt | Yes |
| Interactive command files | Yes |
| Embedded in the Fortran code | No |
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.