aboutsummaryrefslogtreecommitdiff
path: root/libffi/include
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@hotmail.com>2002-12-06 01:16:45 +0000
committerAnthony Green <green@gcc.gnu.org>2002-12-06 01:16:45 +0000
commiteb3c46a17ebe3dfe1b374d40f8a8296a83e24751 (patch)
tree42b4b6f3ce932aab0dbf81a4fb15247efd28b464 /libffi/include
parent1fcfaf375c135079ebea8aa17e726c51c938cc61 (diff)
downloadgcc-eb3c46a17ebe3dfe1b374d40f8a8296a83e24751.zip
gcc-eb3c46a17ebe3dfe1b374d40f8a8296a83e24751.tar.gz
gcc-eb3c46a17ebe3dfe1b374d40f8a8296a83e24751.tar.bz2
ffi.h.in: Added FFI_STDCALL ffi_type enumeration for X86_WIN32.
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. From-SVN: r59878
Diffstat (limited to 'libffi/include')
-rw-r--r--libffi/include/ffi.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in
index 4f7667e..c660ede 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;