HP 3000 Manuals

Subprogram Units [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation


SPL to HP C/XL Migration Guide

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                                    |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| LOGICAL                                     | unsigned short int                          |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| BYTE                                        | unsigned char OR unsigned short int         |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| REAL                                        | float                                       |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| LONG                                        | double                                      |
|                                             |                                             |
---------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation