Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

C main programs and user routines in the same program

&pagelevel(3)&pagelevel

The production of a main program which also makes user routines available is identical to the procedure described in section “Producing main programs in C”. The procedure specified there can be applied unchanged. However, the statement

//MODIFY-MODULE-PROPERTIES LOWER-CASE-NAMES=*YES,-

// SPECIAL-CHARACTERS=*KEEP

may be added to the procedure as described in section “Producing user routines in C” if the user routines are to be addressed under their original names (casesensitive).

If a C main program and user routines are present in the same program then it is essential for EDT to be initialized with the ILCS flag.
Before calling the user routine, EDT then switches to the C main program's
runtime system and calls the user routine in this. This switchover is not performed if the ILCS flag is not set, with the result that the user routine does not use the correct C globals and cannot work correctly with C library functions.