Re: stdcall

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.ffi
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.