Local EQUATE Declaration and Reference [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation
SPL to HP C/XL Migration Guide
Local EQUATE Declaration and Reference
See "EQUATE Declaration and Reference" for further details.
Table 8-22. Local EQUATE Declaration and Reference
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| equate-declaration: | define-directive: |
| | |
| EQUATE {equateid=equate-expr}[,...]; | #define equateid equate-expr |
| | |
| | ... |
| | |
| | #undef equate-id |
| | |
---------------------------------------------------------------------------------------------
| | |
| The scope of a local EQUATE declaration is | The scope of a #define directive is not |
| the procedure. | local. It is known to all following source |
| | code. To turn it off, insert the #undef |
| | directive at the end of the function. |
| | |
---------------------------------------------------------------------------------------------
MPE/iX 5.0 Documentation