Patch: stdcall support for libffi (X86_WIN32)

Ranjit Mathew rmathew@hotmail.com
Sun Nov 10 20:48:00 GMT 2002


Oops! I'm sorry, I forgot to attach a ChangeLog with
the proposed patch.

Here's the proposed ChangeLog for the proposed patch:

2002-11-10  Ranjit Mathew <rmathew@hotmail.com>

     * include/ffi.h.in: Added FFI_STDCALL ffi_type
       enumeration for X86_WIN32.

     * src/x86/win32.S: Added ffi_call_STDCALL function
       definition.

     * src/x86/ffi.c (ffi_call/ffi_raw_call): Added
       switch cases for recognising FFI_STDCALL and
       calling ffi_call_STDCALL if target is X86_WIN32.

     * src/ffitest.c (my_stdcall_strlen/stdcall_many):
       stdcall versions of the "my_strlen" and "many"
       test functions (for X86_WIN32).
       Added test cases to test stdcall invocation using
       these functions.

In addition to these, I've put in reminder comments
about adding fastcall support in the future, aligning
the call stack to 128-bits and fixed a, IMO, typo in
ffi.h.in that claimed that the ffi_type_xxx variables
were defined in ffi.c (they're defined in types.c).

Ranjit.





More information about the Java-patches mailing list