HP Pascal/iX Programmer's Guide (31502-90023)

10-: 15
3. Declare any new intrinsic routines (see the third instruction for
building an intrinsic file). If a new routine has the same name
as one that is already in the file, the new one replaces the old
one; otherwise, the new one is added to the file.
4. Leave the outer block of the compilation unit empty.
Example 2
This program changes the intrinsic file that the preceding example built,
replacing the procedure proc1 and adding the function func1.
$BUILDINT 'myintr'$
$STANDARD_LEVEL 'EXT_MODCAL'$
PROGRAM change_intrinsic_file;
PROCEDURE proc1 ( i : shortint;
VAR b : shortint;
VAR c : integer;
);
EXTERNAL;
FUNCTION func1 (p : integer) : shortint; EXTERNAL;
BEGIN
{empty body}
END.
To list an intrinsic file that you have built, use the compiler option
LISTINTR (for information on compiler options, refer to the
HP Pascal/iX
Reference Manual
or the
HP Pascal/HP-UX Reference Manual
, depending on
your implementation.