SPL to HP C/XL Migration Guide (30231-90001)

8-: 1
Chapter 8 Procedures, Intrinsics and Subroutines
This chapter discusses conversion issues that correspond to sections in
Chapter 7 of the
Systems Programming Language Reference Manual
.
Subprogram Units
Table 8-1. Subprogram Units
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Procedure | Function |
| | |
---------------------------------------------------------------------------------------------
| | |
| Intrinsic | Intrinsic |
| | |
---------------------------------------------------------------------------------------------
| | |
| Subroutine, global | static function or #define directive. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Subroutine, local (in procedure) | No equivalent. |
| | |
| | Convert to inline code, #define directive, |
| | or separate static function. |
| | |
---------------------------------------------------------------------------------------------
Much of the information about declarations has been discussed in detail
in Chapter 4. This chapter will focus primarily on the special
requirements of procedures. For more on subroutines, see "SUBROUTINE
Declaration" below.
In the following sections, the SPL and HP C/XL
type
syntax elements
refer to the following simple variable types:
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| INTEGER | short int |
| | |
---------------------------------------------------------------------------------------------
| | |
| DOUBLE | long int |
| | |
---------------------------------------------------------------------------------------------
| | |