SPL to HP C/XL Migration Guide (30231-90001)
8- 18
| | |
| | #undef
equate-id
|
| | |
---------------------------------------------------------------------------------------------
| | |
| The scope of a local EQUATE declaration is | The scope of a #define directive is not |
| the procedure. | local. It is known to all following source |
| | code. To turn it off, insert the #undef |
| | directive at the end of the function. |
| | |
---------------------------------------------------------------------------------------------
Procedure Body
See syntax for
procedure-body
and
function-body
in Table 8-2.
Table 8-23. Procedure Body
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Contains the local declarations and | Same as SPL. |
| statements of the procedure. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| The end of the body generates an exit | Same as SPL. |
| instruction. Additional exit points may be | |
| specified with the RETURN statement. | Additional exit points may be specified |
| | with the return statement. |
| | |
---------------------------------------------------------------------------------------------
See also "RETURN Statement" and "Data Type" above.
INTRINSIC Declarations
Table 8-24. INTRINSIC Declarations
---------------------------------------------------------------------------------------------
|||
| SPL | HP C/XL Equivalent |
|||
---------------------------------------------------------------------------------------------
|||
|
intrinsic-declaration
:|
pragma-directive
:|
|||
| INTRINSIC [(
file
)]
intrinsic-id
[,...] | 1. #pragma intrinsic |
|||
||{
intrinsic-id
[
user-id
]} [,...] |
|||
| | 2. #pragma intrinsic_file "
file
"|
|||
| | 3. #pragma intrinsic_file "" |
|||
---------------------------------------------------------------------------------------------
|||
| Without
file
, the
intrinsic-id
is sought in | Similar to SPL. |
| the system intrinsic file. | |
| | The intrinsic_file pragma establishes the |
|If
file
is given, the
intrinsic-id
is | intrinsic file where all subsequent |
| sought in the user-defined file
file
. | intrinsic pragmas will search. |
|||
| | If intrinsic_file is not given, or if form |
| | 3 is used, intrinsic definitions are sought |
| | in the file SYSINTR.PUB.SYS. |
|||