Support for calling functions with PASCAL and REGISTER calling conventions on x86 Windows/Linux.

Also changed indentation to be more consistent throughout the (adjusted) files.
This commit is contained in:
nielsAD
2014-08-24 14:29:38 +02:00
parent 1cee07be47
commit 098dca6b31
3 changed files with 611 additions and 598 deletions
+4
View File
@@ -82,6 +82,8 @@ typedef enum ffi_abi {
FFI_THISCALL,
FFI_FASTCALL,
FFI_MS_CDECL,
FFI_PASCAL,
FFI_REGISTER,
FFI_LAST_ABI,
#ifdef _MSC_VER
FFI_DEFAULT_ABI = FFI_MS_CDECL
@@ -101,6 +103,8 @@ typedef enum ffi_abi {
FFI_THISCALL,
FFI_FASTCALL,
FFI_STDCALL,
FFI_PASCAL,
FFI_REGISTER,
FFI_LAST_ABI,
#if defined(__i386__) || defined(__i386)
FFI_DEFAULT_ABI = FFI_SYSV