Entry Points [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation
SPL to HP C/XL Migration Guide
Entry Points
Table 2-11. Entry Points
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Main programs and procedures may have | No equivalent. |
| multiple entry points. | |
| | |
---------------------------------------------------------------------------------------------
In main programs, you may recode existing SPL entry points by using the
argc, argv, parm, and info parameters of the HP C/XL main function, and
adding a switch statement to jump to the appropriate labels. In HP C/XL,
arguments are passed to these parameters with the "INFO=" and "PARM="
parameters of the MPE XL :RUN command.
In functions, you may add a parameter and use a switch statement to jump
to the "entry" labels.
MPE/iX 5.0 Documentation