Guardian Application Conversion Guide

Converting Basic Elements of a Pascal Program
Converting Pascal Applications
096047 Tandem Computers Incorporated 6–3
Importing the PEXTDECS
and PASEXT Declarations
The PEXTDECS file contains declarations for Guardian procedures. The PASEXT file
contains declarations for Tandem routines. Your existing program should use the
SOURCE or CSOURCE compiler directive to import the declarations you need from
these files. For example, these SOURCE directives import C-series procedures and
routines:
IMPORT BEGIN
?SOURCE $SYSTEM.SYSTEM.PEXTDECS (TYPES,
? Guardian_OPEN,
? Guardian_READ,
? Guardian_WRITE,
? Guardian_CLOSE)
END; { IMPORT }
IMPORT BEGIN
?SOURCE $SYSTEM.SYSTEM.PASEXT (SYSTEM)
END; { IMPORT }
Convert your SOURCE or CSOURCE directive to specify declarations from D-series
PEXTDECS or PASEXT files. Use the new procedure names for any D-series
procedures. Specify only the D-series PEXTDECS file; the C-series declarations are
also available in this file. For example:
IMPORT BEGIN
?SOURCE $SYSTEM.SYSTEM.PEXTDECS (TYPES,
? FILE_OPEN_,
? Guardian_READ,
? Guardian_WRITE,
? FILE_CLOSE_)
END; { IMPORT }
IMPORT BEGIN
?SOURCE $SYSTEM.SYSTEM.PASEXT (SYSTEM)
END; { IMPORT }