SPL to HP C/XL Migration Guide (30231-90001)
8- 6
| Prevents the procedure from being called | The static storage class provides similar |
| from another segment. Generally used to | functionality. A static function-id will |
| keep the procedure-id local. | not be exported to the linker, and |
| | therefore will be unknown to other |
| | compilation units. |
| | |
---------------------------------------------------------------------------------------------
| | |
| INTERRUPT | No equivalent. |
| | |
| Specifies an external interrupt procedure. | |
| The purpose is highly hardware-dependent. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| PRIVILEGED | No equivalent. |
| | |
| Allows the procedure to execute in | |
| privileged mode. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| SPLIT | No equivalent. |
| | |
| Aids privileged users running in | |
| split-stack mode. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| UNCALLABLE | No equivalent. |
| | |
| Prevents the procedure from being called by | |
| code not executing in privileged mode. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| VARIABLE | No direct equivalent. |
| | |
| Lets the procedure be called with a varying | The HP C/XL library header file varargs.h |
| number of actual parameters. The mechanism | contains macros that allow you to write |
| for determining how many actual parameters | functions with varying actual parameters. |
| are passed uses Q-register addressing. | Insert the file in your program with the |
| | directive: |
| | |
| | #include <varargs.h> |
| | |
| | See the
HP C/XL Library Reference Manual
|
| | for details. |
| | |
---------------------------------------------------------------------------------------------
Local Declarations
Table 8-6. Local Declarations
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| All variables declared within a procedure | Same as SPL. |
| are "local" to that procedure; they may not | |
| be referenced outside of the scope of the | |
| procedure. | |
| | |
---------------------------------------------------------------------------------------------
Table 8-7 lists the three types of local variables in SPL, along with
their HP C/XL equivalents.
Table 8-7. Local Variable Storage Classes