From: Landon Fuller Date: Sun, 19 Sep 2010 21:21:37 +0000 (-0700) Subject: Modify the ffi_closure structures to hold table/table entry pointers instead of a... X-Git-Tag: v3.0.10~8^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da2773e02ab26cc11a7fe87e985599f35cdf0649;p=platform%2Fupstream%2Flibffi.git Modify the ffi_closure structures to hold table/table entry pointers instead of a code buffer. --- diff --git a/include/ffi.h.in b/include/ffi.h.in index 92e38c4..501f16e 100644 --- a/include/ffi.h.in +++ b/include/ffi.h.in @@ -257,7 +257,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; @@ -284,7 +289,12 @@ ffi_prep_closure_loc (ffi_closure*, void*codeloc); typedef struct { +#if FFI_EXEC_TRAMPOLINE_TABLE + void *trampoline_table; + void *trampoline_table_entry; +#else char tramp[FFI_TRAMPOLINE_SIZE]; +#endif ffi_cif *cif; @@ -305,7 +315,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;