Patch: stdcall support for libffi (X86_WIN32)

Ranjit Mathew rmathew@hotmail.com
Tue Nov 19 22:32:00 GMT 2002


Hi,

     Can someone please check this in if there's nothing
wrong with it? If there is, can you please tell me
about it so that I can try to fix it?

Thanks in advance,
Ranjit.

Ranjit Mathew wrote:
> 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.
> 
> 
> 
> 


-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/





More information about the Java-patches mailing list