HP 3000 Manuals

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


SPL to HP C/XL Migration Guide

Local DEFINE Declaration and Reference 

See "DEFINE Declaration and Reference" for further details.

          Table 8-21.  DEFINE Declaration and Reference 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                     SPL                     |             HP C/XL Equivalent              |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| define-declaration:                         | define-directive:                           |
|                                             |                                             |
|      DEFINE {define-id = text #} [,...] ;   |      #define define-id text                 |
|                                             |                                             |
|                                             |      ...                                    |
|                                             |                                             |
|                                             |      #undef define-id                       |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| The scope of a local DEFINE 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