40 printf (
"%u %u %u %u %u %u %u %u %u\n", s1.
a, s1.
b, l.
a, l.
b, l.
c, l.
d, l.
e,
53 ffi_type* arg_types[5];
56 ffi_type *s_type_elements[3];
59 ffi_type *l_type_elements[6];
70 s_type.type = FFI_TYPE_STRUCT;
71 s_type.elements = s_type_elements;
75 s_type_elements[2] =
NULL;
79 l_type.type = FFI_TYPE_STRUCT;
80 l_type.elements = l_type_elements;
82 l_type_elements[0] = &ffi_type_uint;
83 l_type_elements[1] = &ffi_type_uint;
84 l_type_elements[2] = &ffi_type_uint;
85 l_type_elements[3] = &ffi_type_uint;
86 l_type_elements[4] = &ffi_type_uint;
87 l_type_elements[5] =
NULL;
89 arg_types[0] = &ffi_type_sint;
90 arg_types[1] = &s_type;
91 arg_types[2] = &l_type;
92 arg_types[3] = &s_type;
119 printf(
"res: %d %d\n", res.
a, res.
b);
ffi_status ffi_prep_cif_var(ffi_cif *cif, ffi_abi abi, unsigned int nfixedargs, unsigned int ntotalargs, ffi_type *rtype, ffi_type **atypes)
static struct small_tag test_fn(int n,...)
void ffi_call(ffi_cif *cif, void(*fn)(void), void *rvalue, void **avalue)