1 /* -----------------------------------------------------------------------
2 ffi_common.h - Copyright (c) 1996 Cygnus Solutions
4 $Id: ffi_common.h,v 1.1.1.1 1998/11/29 16:48:16 green Exp $
6 Common internal definitions and macros. Only necessary for building
8 ----------------------------------------------------------------------- */
17 /* Do not move this. Some versions of AIX are very picky about where
18 this is positioned. */
20 # define alloca __builtin_alloca
28 # ifndef alloca /* predefined by HP cc +Olibcalls */
35 /* Check for the existence of memcpy. */
40 # define memcpy(d, s, n) bcopy ((s), (d), (n))
53 /* bool is a keyword in C++ */
61 /* Debugging functions */
62 /*@exits@*/ int ffi_assert(/*@temp@*/ char *file
, int line
);
63 void ffi_stop_here(void);
64 bool ffi_type_test(/*@temp@*/ /*@out@*/ ffi_type
*a
);
66 #define FFI_ASSERT(x) ((x) ? 0 : ffi_assert(__FILE__,__LINE__))
74 /* Perform machine dependent cif processing */
75 ffi_status
ffi_prep_cif_machdep(ffi_cif
*cif
);
77 /* Extended cif, used in callback from assembly routine */
80 /*@dependent@*/ ffi_cif
*cif
;
81 /*@dependent@*/ void *rvalue
;
82 /*@dependent@*/ void **avalue
;