![]() Writing the extsub.c Module |
![]() Virtual Machine |
![]() |
The extsub.c module determines the subroutine to be called from the Name Table, and calls the appropriate routine.
If you are supplying your own extsub.c module, it is recommended that you use the extsub.c module provided and modify it to suit your purpose.
The following rules must be followed for extsub to link and run with PROIV:
-
The name table for the logical subroutine name must follow the same format as that supplied in extsub.c.
-
The variable nsubs must be declared in the extsub.c module. It should be initialized to the number of subroutines in the table.
-
A function extsub( ) must exist and take parameters of the type defined in the extsub.c module provided.
Topic ID: 720280