fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
CHANGE DICTIONARY TO INCLUDE
[DO NOT] CHANGE DICTIONARY TO INCLUDE
This command is used when migrating code from VMS.
DICTIONARY statements are supported under VMS. The Common Data Dictionary utility is used to access a data structure which contains a language independent specification of structures. The same structure may then be accessed in Fortran, C and other languages, and is guaranteed to have the same layout in memory.
fpt processes DICTIONARY statements as if they were INCLUDE statements. The structures specified in DICTIONARY statements do not have file name extensions, and fpt adds the current include input file name extension when searching for the files. These files must exist in the include file search path, and usually need to be created from compilation listings.
The command CHANGE DICTIONARY TO INCLUDE instructs fpt to replace the DICTIONARY keyword by INCLUDE. The code may then be migrated to non-VMS systems.
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|
DICTIONARY statements are not changed to INCLUDE statements by default.
The DICTIONARY specifications:
DICTIONARY 'pilotrec' DICTIONARY 'simulator.staff.sortie_director'
are converted to:
INCLUDE 'pilotrec.fpi' INCLUDE 'simulator.staff.sortie_director.fpi'
Note that CDD DICTIONARY specifications may be structured, with dot-separated fields. The INCLUDE files may therefore contain the dots, and may not be valid on all systems.
The file name extensions are the current include output file name extensions, and may be changed by the INCLUDE OUTPUT FILE NAME EXTENSION command.
INCLUDE OUTPUT FILE NAME EXTENSION
Copyright ©1995 to 2018 Software Validation Ltd. All rights reserved.