Skip to content
Browse files

Re-integrate trampoline table support

  • Loading branch information...
1 parent ef95389 commit dc3aa1fa3c2cde81ad756b42fc00f7ea5569bb41 @landonf committed Apr 12, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 include/ffi.h.in
View
15 include/ffi.h.in
@@ -274,7 +274,12 @@ size_t ffi_java_raw_size (ffi_cif *cif);
__declspec(align(8))
#endif
typedef struct {
+#if @FFI_EXEC_TRAMPOLINE_TABLE@
+ void *trampoline_table;
+ void *trampoline_table_entry;
+#else
char tramp[FFI_TRAMPOLINE_SIZE];
+#endif
ffi_cif *cif;
void (*fun)(ffi_cif*,void*,void**,void*);
void *user_data;
@@ -307,7 +312,12 @@ ffi_prep_closure_loc (ffi_closure*,
# pragma pack 8
#endif
typedef struct {
+#if @FFI_EXEC_TRAMPOLINE_TABLE@
+ void *trampoline_table;
+ void *trampoline_table_entry;
+#else
char tramp[FFI_TRAMPOLINE_SIZE];
+#endif
ffi_cif *cif;
@@ -328,7 +338,12 @@ typedef struct {
} ffi_raw_closure;
typedef struct {
+#if @FFI_EXEC_TRAMPOLINE_TABLE@
+ void *trampoline_table;
+ void *trampoline_table_entry;
+#else
char tramp[FFI_TRAMPOLINE_SIZE];
+#endif
ffi_cif *cif;

0 comments on commit dc3aa1f

Please sign in to comment.
Something went wrong with that request. Please try again.