Commit 8e5fde87 by Andreas Tobler Committed by Andreas Tobler

ffi_common.h: Remove lint directives.

2006-08-15  Andreas Tobler  <a.tobler@schweiz.ch>

	* include/ffi_common.h: Remove lint directives.
	* include/ffi.h.in: Likewise.

From-SVN: r116152
parent 64c23908
2006-08-15 Andreas Tobler <a.tobler@schweiz.ch>
* include/ffi_common.h: Remove lint directives.
* include/ffi.h.in: Likewise.
2006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de> 2006-07-25 Torsten Schoenfeld <kaffeetisch@gmx.de>
* include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly * include/ffi.h.in (ffi_type_ulong, ffi_type_slong): Define correctly
......
...@@ -138,7 +138,7 @@ typedef struct _ffi_type ...@@ -138,7 +138,7 @@ typedef struct _ffi_type
size_t size; size_t size;
unsigned short alignment; unsigned short alignment;
unsigned short type; unsigned short type;
/*@null@*/ struct _ffi_type **elements; struct _ffi_type **elements;
} ffi_type; } ffi_type;
/* These are defined in types.c */ /* These are defined in types.c */
...@@ -160,7 +160,7 @@ extern ffi_type ffi_type_pointer; ...@@ -160,7 +160,7 @@ extern ffi_type ffi_type_pointer;
typedef enum { typedef enum {
FFI_OK = 0, FFI_OK = 0,
FFI_BAD_TYPEDEF, FFI_BAD_TYPEDEF,
FFI_BAD_ABI FFI_BAD_ABI
} ffi_status; } ffi_status;
typedef unsigned FFI_TYPE; typedef unsigned FFI_TYPE;
...@@ -168,8 +168,8 @@ typedef unsigned FFI_TYPE; ...@@ -168,8 +168,8 @@ typedef unsigned FFI_TYPE;
typedef struct { typedef struct {
ffi_abi abi; ffi_abi abi;
unsigned nargs; unsigned nargs;
/*@dependent@*/ ffi_type **arg_types; ffi_type **arg_types;
/*@dependent@*/ ffi_type *rtype; ffi_type *rtype;
unsigned bytes; unsigned bytes;
unsigned flags; unsigned flags;
#ifdef FFI_EXTRA_CIF_FIELDS #ifdef FFI_EXTRA_CIF_FIELDS
...@@ -195,10 +195,10 @@ typedef union { ...@@ -195,10 +195,10 @@ typedef union {
void* ptr; void* ptr;
} ffi_raw; } ffi_raw;
void ffi_raw_call (/*@dependent@*/ ffi_cif *cif, void ffi_raw_call (ffi_cif *cif,
void (*fn)(), void (*fn)(),
/*@out@*/ void *rvalue, void *rvalue,
/*@dependent@*/ ffi_raw *avalue); ffi_raw *avalue);
void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw);
void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args);
...@@ -208,10 +208,10 @@ size_t ffi_raw_size (ffi_cif *cif); ...@@ -208,10 +208,10 @@ size_t ffi_raw_size (ffi_cif *cif);
/* packing, even on 64-bit machines. I.e. on 64-bit machines */ /* packing, even on 64-bit machines. I.e. on 64-bit machines */
/* longs and doubles are followed by an empty 64-bit word. */ /* longs and doubles are followed by an empty 64-bit word. */
void ffi_java_raw_call (/*@dependent@*/ ffi_cif *cif, void ffi_java_raw_call (ffi_cif *cif,
void (*fn)(), void (*fn)(),
/*@out@*/ void *rvalue, void *rvalue,
/*@dependent@*/ ffi_raw *avalue); ffi_raw *avalue);
void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw);
void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args);
...@@ -271,16 +271,16 @@ ffi_prep_java_raw_closure (ffi_raw_closure*, ...@@ -271,16 +271,16 @@ ffi_prep_java_raw_closure (ffi_raw_closure*,
/* ---- Public interface definition -------------------------------------- */ /* ---- Public interface definition -------------------------------------- */
ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif, ffi_status ffi_prep_cif(ffi_cif *cif,
ffi_abi abi, ffi_abi abi,
unsigned int nargs, unsigned int nargs,
/*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type *rtype, ffi_type *rtype,
/*@dependent@*/ ffi_type **atypes); ffi_type **atypes);
void ffi_call(/*@dependent@*/ ffi_cif *cif, void ffi_call(ffi_cif *cif,
void (*fn)(), void (*fn)(),
/*@out@*/ void *rvalue, void *rvalue,
/*@dependent@*/ void **avalue); void **avalue);
/* Useful for eliminating compiler warnings */ /* Useful for eliminating compiler warnings */
#define FFI_FN(f) ((void (*)())f) #define FFI_FN(f) ((void (*)())f)
......
...@@ -41,20 +41,20 @@ char *alloca (); ...@@ -41,20 +41,20 @@ char *alloca ();
# endif # endif
#endif #endif
#if defined(FFI_DEBUG) #if defined(FFI_DEBUG)
#include <stdio.h> #include <stdio.h>
#endif #endif
#ifdef FFI_DEBUG #ifdef FFI_DEBUG
/*@exits@*/ void ffi_assert(/*@temp@*/ char *expr, /*@temp@*/ char *file, int line); void ffi_assert(char *expr, char *file, int line);
void ffi_stop_here(void); void ffi_stop_here(void);
void ffi_type_test(/*@temp@*/ /*@out@*/ ffi_type *a, /*@temp@*/ char *file, int line); void ffi_type_test(ffi_type *a, char *file, int line);
#define FFI_ASSERT(x) ((x) ? (void)0 : ffi_assert(#x, __FILE__,__LINE__)) #define FFI_ASSERT(x) ((x) ? (void)0 : ffi_assert(#x, __FILE__,__LINE__))
#define FFI_ASSERT_AT(x, f, l) ((x) ? 0 : ffi_assert(#x, (f), (l))) #define FFI_ASSERT_AT(x, f, l) ((x) ? 0 : ffi_assert(#x, (f), (l)))
#define FFI_ASSERT_VALID_TYPE(x) ffi_type_test (x, __FILE__, __LINE__) #define FFI_ASSERT_VALID_TYPE(x) ffi_type_test (x, __FILE__, __LINE__)
#else #else
#define FFI_ASSERT(x) #define FFI_ASSERT(x)
#define FFI_ASSERT_AT(x, f, l) #define FFI_ASSERT_AT(x, f, l)
#define FFI_ASSERT_VALID_TYPE(x) #define FFI_ASSERT_VALID_TYPE(x)
#endif #endif
...@@ -68,9 +68,9 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif); ...@@ -68,9 +68,9 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif);
/* Extended cif, used in callback from assembly routine */ /* Extended cif, used in callback from assembly routine */
typedef struct typedef struct
{ {
/*@dependent@*/ ffi_cif *cif; ffi_cif *cif;
/*@dependent@*/ void *rvalue; void *rvalue;
/*@dependent@*/ void **avalue; void **avalue __attribute__((aligned));
} extended_cif; } extended_cif;
/* Terse sized type definitions. */ /* Terse sized type definitions. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment