Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

X 8.2.1 CALLINTERFACE




X The CALLINTERFACE directive specifies the interface convention for
X CALL...USING statements. The convention specified stays in effect until
X another CALLINTERFACE specification is made in the source program.


X >_Host_> Under OS/390 and VM, the CALLINTERFACE directive is not
X supported. <_Host_<


 X  ___ Format _____________________________________________________________ 
 X |                                                                        |
 X | >>__ _>>CALLINTERFACE_ __ __________ __ ______________ _____________>< |
 X |     |_>>CALLINT_______|  |_SYSTEM___|  |_DESC_________|                |
 X |                          |_OPTLINK__|  |_DESCRIPTOR___|                |
 X |                          |_FAR16____|  |_NODESC_______|                |
 X |                          |_PASCAL16_|  |_NODESCRIPTOR_|                |
 X |                          |_CDECL____|                                  |
   |                                                                        |
   |________________________________________________________________________|

________________________________________________________________________
X | Table 54. CALLINTERFACE Options supported by Platform | |_______________________ ________________________ _______________________|
X | AIX | OS/2 | Windows | |_______________________|________________________|_______________________|
X | SYSTEM | SYSTEM | SYSTEM |
X | | OPTLINK | OPTLINK |
X | | FAR16 | CDECL |
X | | PASCAL16 | | |_______________________|________________________|_______________________|
X | DESC | DESC | DESC |
X | NODESC | NODESC | NODESC | |_______________________|________________________|_______________________|



X Note: If you specify a suboption that is not applicable to the platform,
X the entire CALLINTERFACE directive is ignored for that platform.
X For example, if you specify >>CALLINT CDECL for an OS/2 program, it
X is ignored.


X For more information on which suboptions are in effect for multiple
X directive and compiler option specifications, see "Precedence of
X Sub Options" in topic 8.2.1.2.1.


X SYSTEM
X Specifies that the system linkage convention of the platform is used
X as the call interface convention.


X OPTLINK
X Specifies that the _Optlink calling convention as defined by C Set++
X is used as the call interface convention.


X FAR16
X Specifies that the _FAR16_CDecl calling convention as defined by C
X Set++ is used as the call interface convention.


X PASCAL16
X Specifies that the _FAR16_Pascal calling convention as defined by C
X Set++ is used as the call interface convention.


X CDECL
X Specifies that the CDECL calling convention as defined by Microsoft
X Visual C++ is used as the call interface convention.


X DESC, DESCRIPTOR
X Indicates that an argument descriptor is passed for each argument on a
X CALL statement.


X NODESC, NODESCRIPTOR
X Indicates that no argument descriptors are passed for any arguments on
X a CALL statement. NODESC/NODESCRIPTOR is the default.


X Specify CALLINTERFACE only in the Procedure Division.


X The positions of CALL statements relative to the >>CALLINTERFACE directive
X are recognized following any processing of COPY and REPLACE statements.
X For example, CALL statements and >>CALLINTERFACE statements in COPY text
X are processed by the rules specified for the directive.

Subtopics:



Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.