[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ANN: Alien 0.3.1
- From: "Fabio Mascarenhas" <mascarenhas@...>
- Date: Wed, 13 Feb 2008 12:33:24 -0200
Yeah, libffi supports stdcall, including stdcall callbacks, I will
definitely add this when I do proper Windows support. Windows makes a
mess of this (as usual), the Windows API is stdcall, but DLLs you
compile with VC default do cdecl...
On Feb 13, 2008 1:30 PM, Ignacio Burgueño <firstname.lastname@example.org> wrote:
> Ignacio Burgueño wrote:
> > Fabio Mascarenhas wrote:
> >> Well, guess I spoke too soon about libffi! The documentation is pretty
> >> sketchy, but I dug around in the source of the CVS version of libffi
> >> and found how to do callbacks. So after some hours of late night
> >> hacking I ripped out ffcall and put libffi in its place. The Alien API
> >> remains the same, so I am calling this version 0.3.1.
> > I can't install it under Windows. I have luarocks 0.4.2
> Ejem... I've missed the part in the docs that reads "Alien should work
> in any Unix-based system, and it will work on Windows shortly."
> Anyway... Will Alien be able to call functions with calling conventions
> other than cdecl ? Mostly stdcall, I don't really need the others 
> Ignacio Burgueño
>  http://en.wikipedia.org/wiki/X86_calling_conventions