move ffi_prep_cif_core to ffi_common.h

This commit is contained in:
Tom Tromey
2015-11-19 16:38:35 -07:00
committed by Richard Henderson
parent 1cea273758
commit 2fbc0369b8
2 changed files with 10 additions and 9 deletions

View File

@@ -229,15 +229,6 @@ typedef struct {
#endif #endif
} ffi_cif; } ffi_cif;
/* Used internally, but overridden by some architectures */
ffi_status 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);
/* ---- Definitions for the raw API -------------------------------------- */ /* ---- Definitions for the raw API -------------------------------------- */
#ifndef FFI_SIZEOF_ARG #ifndef FFI_SIZEOF_ARG

View File

@@ -82,11 +82,21 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif);
ffi_status ffi_prep_cif_machdep_var(ffi_cif *cif, ffi_status ffi_prep_cif_machdep_var(ffi_cif *cif,
unsigned int nfixedargs, unsigned int ntotalargs); unsigned int nfixedargs, unsigned int ntotalargs);
#if HAVE_LONG_DOUBLE_VARIANT #if HAVE_LONG_DOUBLE_VARIANT
/* Used to adjust size/alignment of ffi types. */ /* Used to adjust size/alignment of ffi types. */
void ffi_prep_types (ffi_abi abi); void ffi_prep_types (ffi_abi abi);
#endif #endif
/* Used internally, but overridden by some architectures */
ffi_status 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);
/* Extended cif, used in callback from assembly routine */ /* Extended cif, used in callback from assembly routine */
typedef struct typedef struct
{ {