HP 3000 Manuals

Intrinsic_file Pragma [ HP C/iX Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Reference Manual

Intrinsic_file Pragma 

The intrinsic_file pragma specifies the name of the file in which the
compiler can locate information about intrinsic functions.  It has the
following format:

       #pragma intrinsic_file "filename" 

where filename is the fully qualified filename of the file you want the
compiler to use to look up information about intrinsics declared using
the intrinsic pragma.  If you do not include the group and account name
of the file, the compiler looks in the group and account of the current
user.

If you do not use this pragma, the compiler looks in a file called
SYSINTR.PUB.SYS by default.  The file SYSINTR.PUB.SYS contains
descriptions of all MPE/iX intrinsics.  You only need to use the
intrinsic_file pragma if you are building your own intrinsic files using
the HP Pascal/iX compiler and you must specify a file other than the
default.  Refer to the HP Pascal Programmer's Guide for information about
building your own intrinsic files.

The compiler refers to the specified file until another intrinsic_file
pragma is encountered.  To return the search to SYSINTR.PUB.SYS, specify
the intrinsic_file pragma with a null string:

     #pragma intrinsic_file ""

Some examples of intrinsic_file and intrinsic pragmas follow.

     #pragma intrinsic FOPEN, FCLOSE, FREAD /* SYSINTR.PUB.SYS used */
     #pragma intrinsic_file "MYINTR"
     #pragma intrinsic mytest1, mytest2 /* MYINTR.MYGROUP.MYACCT used */
     #pragma intrinsic_file ""
     #pragma intrinsic FCHECK, FGETINFO /* SYSINTR.PUB.SYS used */

In the first pragma, the compiler searches the default file for
information about the FOPEN, FCLOSE, and FREAD pragmas.  The second
pragma specifies a different file for the compiler to search, MYINTR. The
third pragma declares two intrinsics, mytest1 and mytest2, that must be
described in MYINTR. The fourth pragma returns the search to SYSINTR,
where FCHECK and FGETINFO descriptions are found.



MPE/iX 5.0 Documentation