4.7 Host-Associated Variables

Local variables to a host procedure are placed in a structure, and a variable of that structure type is placed in the host procedure.

A COMMON block with a pointer to that structure type is created, and references to host-associated variables in internal procedures are changed to references to the pointed-to structure. On entry to the host procedure, the old value in the COMMON block pointer is saved to a local variable, and the COMMON pointer is pointed to the local structure in the procedure. On procedure exit, the old value of the pointer is restored.

Saved local variables are just placed in the same COMMON block that contains the pointer to the automatic local data.


Previous Page | Next Page | Contents | Index |
Command-Line Qualifiers

Copyright © Digital Equipment Corporation. 1999. All Rights Reserved.