Fixed some C/C++ compiler errors due to stricter checks.
[rubinius.git] / machine / ffi_util.hpp
blobf57e31f6159f98e9dbda982938e1e338469884a6
1 #ifndef RBX_FFI_UTIL_H
2 #define RBX_FFI_UTIL_H
4 #define RBX_FFI_TYPE_CHAR 0
5 #define RBX_FFI_TYPE_UCHAR 1
6 #define RBX_FFI_TYPE_SHORT 2
7 #define RBX_FFI_TYPE_USHORT 3
8 #define RBX_FFI_TYPE_INT 4
9 #define RBX_FFI_TYPE_UINT 5
10 #define RBX_FFI_TYPE_LONG 6
11 #define RBX_FFI_TYPE_ULONG 7
12 #define RBX_FFI_TYPE_LONG_LONG 8
13 #define RBX_FFI_TYPE_ULONG_LONG 9
14 #define RBX_FFI_TYPE_FLOAT 10
15 #define RBX_FFI_TYPE_DOUBLE 11
16 #define RBX_FFI_TYPE_PTR 12
17 #define RBX_FFI_TYPE_VOID 13
18 #define RBX_FFI_TYPE_STRING 14
19 #define RBX_FFI_TYPE_STRPTR 15
20 #define RBX_FFI_TYPE_CHARARR 16
21 #define RBX_FFI_TYPE_CALLBACK 17
22 #define RBX_FFI_TYPE_BOOL 18
23 #define RBX_FFI_TYPE_ENUM 19
24 #define RBX_FFI_TYPE_VARARGS 20
26 #endif