stdcall

John Meacham john at repetae.net
Tue Jul 22 10:12:51 EDT 2003


well, for one, you might actually want to link against some pascal
libraries on unix. and hence need stdcall. although, that would probably
require other FFI extensions anyway. Another case where it might be
useful is that it is not unheard of to link against windows DLLs on
unix. that is how mplayer is able to use windows codecs to play video
for instance.
        John

On Tue, Jul 22, 2003 at 02:02:18PM +0200, Marcin 'Qrczak' Kowalczyk wrote:
> Dnia wto 22. lipca 2003 13:52, Ross Paterson napisał:
> 
> > 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.
> 
> In gcc on Unix you can declare a function as "stdcall" and it will change the 
> calling convention accordingly. I don't know of any library that uses it, but 
> this shows that "stdcall" is used as a name of this particular calling 
> convention for ix86 even on Unix.
> 
> -- 
>    __("<         Marcin Kowalczyk
>    \__/       qrczak at knm.org.pl
>     ^^     http://qrnik.knm.org.pl/~qrczak/
> 
> _______________________________________________
> FFI mailing list
> FFI at haskell.org
> http://www.haskell.org/mailman/listinfo/ffi

-- 
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john at foo.net
---------------------------------------------------------------------------



More information about the FFI mailing list