This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: stdcall support for libffi (X86_WIN32)
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 11 Nov 2002 10:19:11 +0530
- Subject: Re: Patch: stdcall support for libffi (X86_WIN32)
- References: <aqmeuj$75b$1@main.gmane.org>
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.