CALLINT
Use
CALLINT to indicate the call interface convention applicable to calls
made with the CALL statement, and to indicate whether argument
descriptors are to be generated.
| CALLINT option syntax |
 .-SYSTEM--.
>>-CALLINT(-+-OPTLINK-+-+--------------------+-)---------------><
'-CDECL---' | .-NODESC-------. |
'-,-+-DESC---------+-'
+-DESCRIPTOR---+
'-NODESCRIPTOR-'
|
Default is: CALLINT(SYSTEM,NODESC)
Abbreviations are: None
You can override this option for specific CALL statements by using
the compiler directive >>CALLINT.
(Use ENTRYINT for the selection of the call
interface convention for the program entry point or entry points.)
CALLINT
has two sets of suboptions:
- Selecting a call interface convention:
- 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 Windows-based system
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.
- 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.
- Specifying whether the argument descriptors are to be generated:
- DESC
- The DESC suboption specifies that an argument descriptor is
passed for each argument on a CALL statement. For more
information about argument descriptors, see the related references
below.
Attention: Do not specify the DESC
suboption in object-oriented programs.
- DESCRIPTOR
- The DESCRIPTOR suboption is synonymous with the DESC
suboption.
- NODESC
- The NODESC suboption specifies that no argument descriptors
are passed for any arguments in a CALL statement.
- NODESCRIPTOR
- The NODESCRIPTOR suboption is synonymous with the NODESC
suboption.
related tasks
Setting linkage conventions for COBOL and C/C++
Coding multiple entry points
related references
Compiler-directing statements
Call interface conventions
|