stdcall

Ross Paterson ross at soi.city.ac.uk
Tue Jul 22 07:52:26 EDT 2003


On Tue, Jul 22, 2003 at 12:15:44PM +0100, Simon Marlow wrote:
> [Windows uses both __cdecl and __stdcall]
> 
> So I'd say that specifying a "default" calling convention which maps to
> stdcall on Windows and ccall on Unix is probably a bad idea.  You've
> just got to know which one to use on Windows - this is the job for a
> tool which checks the FFI decls against the prototypes.

The proposal was to have this in addition to ccall.  This convention
is currently called CALLCONV in the network, GLUT and OpenGL packages,
with hacks to turn it into ccall or stdcall.  I think it makes sense to
regularize it as stdcall.



More information about the FFI mailing list