Hi,

On Tue, May 29, 2012 at 10:15 AM, Antonio Cuni <[email protected]> wrote:
>> A wild guess: Sleep is a WINAPI function, with a calling convention 
>> different than
>> the default C convention. Maybe this makes a difference with the ffi module?

Yes, exactly.  I don't see anything related to that in module/_ffi
too, which means it's broken in this respect (or just doesn't support
WINAPI functions, which is probably not intended).

> but IIRC Armin fixed it during the last gothenburg sprint,
> although I can't find the relevant checkin.

See how _rawffi/interp_rawffi.py takes a 'flags' argument from
app-level and passes it to clibffi in the call to RawFuncPtr().


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to