HP 3000 Manuals

Local ENTRY Declaration [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation


SPL to HP C/XL Migration Guide

Local ENTRY Declaration 

          Table 8-20.  Local ENTRY Declaration 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                     SPL                     |             HP C/XL Equivalent              |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| entry-declaration:                          | No direct equivalent.                       |
|                                             |                                             |
|      ENTRY label-id [,...] ;                |                                             |
|                                             |                                             |
---------------------------------------------------------------------------------------------

You may emulate multiple entry points into an SPL procedure by adding a
parameter to the HP C/XL function, and coding a switch statement in the
function to goto the appropriate labels based on the value of the
parameter.  See "Local SWITCH Declarations" above for the format.

Entry point identifiers used in calling routines must be changed to the
procedure identifier.  Alternatively, global #define directives could be
used to equate the entry point identifiers with the procedure identifier.

You might also create #define macro directives with different names, each
of which calls the original function with the index parameter supplied as
a constant.

Or you might rewrite the procedure as several HP C/XL functions named by
the entry point identifiers.



MPE/iX 5.0 Documentation