diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-06 01:16:45 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-06 01:16:45 +0000 |
commit | acdc3fc389635aa1cd0b457ed0e3fefb229dab6a (patch) | |
tree | 42b4b6f3ce932aab0dbf81a4fb15247efd28b464 /libffi/include | |
parent | 40e6305ae1d5a9082adcafd92b54abcf9dc558da (diff) | |
download | gcc-acdc3fc389635aa1cd0b457ed0e3fefb229dab6a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/include')
-rw-r--r-- | libffi/include/ffi.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in index 4f7667e6d4d..c660ede75af 100644 --- a/libffi/include/ffi.h.in +++ b/libffi/include/ffi.h.in @@ -198,6 +198,8 @@ typedef enum ffi_abi { /* ---- Intel x86 Win32 ---------- */ #ifdef X86_WIN32 FFI_SYSV, + FFI_STDCALL, + /* TODO: Add fastcall support for the sake of completeness */ FFI_DEFAULT_ABI = FFI_SYSV, #endif @@ -287,7 +289,7 @@ typedef struct _ffi_type /*@null@*/ struct _ffi_type **elements; } ffi_type; -/* These are defined in ffi.c */ +/* These are defined in types.c */ extern ffi_type ffi_type_void; extern ffi_type ffi_type_uint8; extern ffi_type ffi_type_sint8; |