mirror of
https://github.com/partic2/libffi
synced 2026-11-10 18:17:19 +00:00
Add David Gilbert's variadic function call support
This commit is contained in:
+8
-5
@@ -153,21 +153,24 @@ ffi_prep_args (char *stack, extended_cif * ecif)
|
||||
return (struct_count);
|
||||
}
|
||||
|
||||
ffi_status
|
||||
ffi_prep_cif (ffi_cif * cif,
|
||||
ffi_abi abi, unsigned int nargs,
|
||||
ffi_type * rtype, ffi_type ** atypes)
|
||||
ffi_status FFI_HIDDEN
|
||||
ffi_prep_cif_core (ffi_cif * cif,
|
||||
ffi_abi abi, unsigned int isvariadic,
|
||||
unsigned int nfixedargs, unsigned int ntotalargs,
|
||||
ffi_type * rtype, ffi_type ** atypes)
|
||||
{
|
||||
unsigned bytes = 0;
|
||||
unsigned int i;
|
||||
ffi_type **ptr;
|
||||
|
||||
FFI_ASSERT (cif != NULL);
|
||||
FFI_ASSERT((!isvariadic) || (nfixedargs >= 1));
|
||||
FFI_ASSERT(nfixedargs <= ntotalargs);
|
||||
FFI_ASSERT (abi > FFI_FIRST_ABI && abi < FFI_LAST_ABI);
|
||||
|
||||
cif->abi = abi;
|
||||
cif->arg_types = atypes;
|
||||
cif->nargs = nargs;
|
||||
cif->nargs = ntotalargs;
|
||||
cif->rtype = rtype;
|
||||
|
||||
cif->flags = 0;
|
||||
|
||||
Reference in New Issue
Block a user