Back to index

python3.2  3.2.2
Defines | Functions | Variables
types.c File Reference
#include <ffi.h>
#include <ffi_common.h>

Go to the source code of this file.

Defines

#define LIBFFI_HIDE_BASIC_TYPES
#define FFI_TYPEDEF(name, type, id)

Functions

 FFI_TYPEDEF (uint8, UINT8, FFI_TYPE_UINT8)
 FFI_TYPEDEF (sint8, SINT8, FFI_TYPE_SINT8)
 FFI_TYPEDEF (uint16, UINT16, FFI_TYPE_UINT16)
 FFI_TYPEDEF (sint16, SINT16, FFI_TYPE_SINT16)
 FFI_TYPEDEF (uint32, UINT32, FFI_TYPE_UINT32)
 FFI_TYPEDEF (sint32, SINT32, FFI_TYPE_SINT32)
 FFI_TYPEDEF (uint64, UINT64, FFI_TYPE_UINT64)
 FFI_TYPEDEF (sint64, SINT64, FFI_TYPE_SINT64)
 FFI_TYPEDEF (pointer, void *, FFI_TYPE_POINTER)
 FFI_TYPEDEF (float, float, FFI_TYPE_FLOAT)
 FFI_TYPEDEF (double, double, FFI_TYPE_DOUBLE)

Variables

const ffi_type ffi_type_void

Define Documentation

#define FFI_TYPEDEF (   name,
  type,
  id 
)
Value:
struct struct_align_##name {                     \
  char c;                                 \
  type x;                                 \
};                                        \
const ffi_type ffi_type_##name = {        \
  sizeof(type),                                  \
  offsetof(struct struct_align_##name, x),       \
  id, NULL                                \
}

Definition at line 36 of file types.c.

Definition at line 29 of file types.c.


Function Documentation

FFI_TYPEDEF ( uint8  ,
UINT8  ,
FFI_TYPE_UINT8   
)
FFI_TYPEDEF ( sint8  ,
SINT8  ,
FFI_TYPE_SINT8   
)
FFI_TYPEDEF ( uint16  ,
UINT16  ,
FFI_TYPE_UINT16   
)
FFI_TYPEDEF ( sint16  ,
SINT16  ,
FFI_TYPE_SINT16   
)
FFI_TYPEDEF ( uint32  ,
UINT32  ,
FFI_TYPE_UINT32   
)
FFI_TYPEDEF ( sint32  ,
SINT32  ,
FFI_TYPE_SINT32   
)
FFI_TYPEDEF ( uint64  ,
UINT64  ,
FFI_TYPE_UINT64   
)
FFI_TYPEDEF ( sint64  ,
SINT64  ,
FFI_TYPE_SINT64   
)
FFI_TYPEDEF ( float  ,
float  ,
FFI_TYPE_FLOAT   
)
FFI_TYPEDEF ( double  ,
double  ,
FFI_TYPE_DOUBLE   
)

Variable Documentation

Initial value:
 {
  1, 1, FFI_TYPE_VOID, NULL
}

Definition at line 48 of file types.c.