ENTRYINT
Use ENTRYINT to indicate the call interface convention
applicable to the program entry points in the USING phrase of either
the PROCEDURE DIVISION or ENTRY statement.
| ENTRYINT option syntax |
 .-SYSTEM--.
>>-ENTRYINT(-+-OPTLINK-+-)-------------------------------------><
'-CDECL---'
|
Default
is: ENTRYINT(SYSTEM)
Abbreviations are: None
(Use
CALLINT to select the call interface convention for calls.)
- SYSTEM
- The SYSTEM suboption specifies that the call convention is that
of the standard system linkage convention of the platform. This is STDCALL,
the linkage used by the system Windows-based APIs.
Attention: This convention cannot be used in all cases
when the called program has multiple entry points.
- OPTLINK
- The OPTLINK suboption specifies that the call interface
convention is OPTLINK, which provides a faster alternative to the SYSTEM
convention. OPTLINK is used by existing IBM C and C++ functions and COBOL
and PL/I programs.
The linkage that is generated for nested
programs is always OPTLINK.
- CDECL
- The CDECL suboption specifies that the call interface
convention is CDECL, which is used to interface with Microsoft Visual
C/C++ for Windows functions. CDECL is the default convention for
Microsoft C and C/C++ functions.
related tasks
Setting linkage conventions for COBOL and C/C++
Coding multiple entry points
related references
Call interface conventions
|