Operating System - OpenVMS
1752372 Members
6036 Online
108787 Solutions
New Discussion

Header files for definitions for utility routines and system services

 
SOLVED
Go to solution
John Gillings
Honored Contributor

Re: Header files for definitions for utility routines and system services

Malleka,

>It just happens to be a multi-platform
>application and the code may have to be
>maintained by someone who has not worked
>with OpenVMS.
>It will be much easier if they had only
>C modules to look at.

I'm not sure I understand this. LBR$ routines are OpenVMS specific. Anyone working on that section of the code (must be #ifdef'ed for OpenVMS only?) will need to know some OpenVMS basics.

If you want C modules, it's a fairly trivial matter to transform $LBRDEF into a .h file. It's not much more than extracting the MACRO:

$ LIBRARY/EXTRACT=$LBRDEF/OUT=file SYS$SHARE:STARLET/MACRO

stripping off the top and bottom lines, then substituting "#define" for "$EQU". Someone may even be clever enough to figure out a way to do it directly with the C preprocessor.
A crucible of informative mistakes