diff options
Diffstat (limited to 'ext/ffi_c/libffi/src/cris/ffi.c')
-rw-r--r-- | ext/ffi_c/libffi/src/cris/ffi.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ext/ffi_c/libffi/src/cris/ffi.c b/ext/ffi_c/libffi/src/cris/ffi.c index f25d7b4..aaca5b1 100644 --- a/ext/ffi_c/libffi/src/cris/ffi.c +++ b/ext/ffi_c/libffi/src/cris/ffi.c @@ -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; |