| Liboil Reference Manual | ||||
|---|---|---|---|---|
enum OilType; int oil_type_sizeof (OilType type); #define oil_type_is_floating_point (type) const char* oil_type_name (OilType type); enum OilArgType; const char* oil_arg_type_name (OilArgType type); #define oil_type_s8 #define oil_type_u8 #define oil_type_s16 #define oil_type_u16 #define oil_type_s32 #define oil_type_u32 #define oil_type_s64 #define oil_type_u64 #define oil_type_f32 #define oil_type_f64 #define oil_type_min_s8 #define oil_type_min_u8 #define oil_type_min_s16 #define oil_type_min_u16 #define oil_type_min_s32 #define oil_type_min_u32 #define oil_type_max_s8 #define oil_type_max_u8 #define oil_type_max_s16 #define oil_type_max_u16 #define oil_type_max_s32 #define oil_type_max_u32
typedef enum {
OIL_TYPE_UNKNOWN = 0,
OIL_TYPE_INT,
OIL_TYPE_s8,
OIL_TYPE_u8,
OIL_TYPE_s16,
OIL_TYPE_u16,
OIL_TYPE_s32,
OIL_TYPE_u32,
OIL_TYPE_s64,
OIL_TYPE_u64,
OIL_TYPE_f32,
OIL_TYPE_f64,
OIL_TYPE_s8p,
OIL_TYPE_u8p,
OIL_TYPE_s16p,
OIL_TYPE_u16p,
OIL_TYPE_s32p,
OIL_TYPE_u32p,
OIL_TYPE_s64p,
OIL_TYPE_u64p,
OIL_TYPE_f32p,
OIL_TYPE_f64p,
} OilType;
Enumeration containing the data types understood by Liboil.
int oil_type_sizeof (OilType type);
Looks up the size of the OilType represented by type.
type : |
the OilType |
| Returns : | the size of type
|
const char* oil_type_name (OilType type);
Looks up the name of the OilType given by type.
type : |
an OilType |
| Returns : | a string containing the name of the OilType type.
|
typedef enum {
OIL_ARG_UNKNOWN = 0,
OIL_ARG_N,
OIL_ARG_M,
OIL_ARG_DEST1,
OIL_ARG_DSTR1,
OIL_ARG_DEST2,
OIL_ARG_DSTR2,
OIL_ARG_SRC1,
OIL_ARG_SSTR1,
OIL_ARG_SRC2,
OIL_ARG_SSTR2,
OIL_ARG_SRC3,
OIL_ARG_SSTR3,
OIL_ARG_SRC4,
OIL_ARG_SSTR4,
OIL_ARG_SRC5,
OIL_ARG_SSTR5,
OIL_ARG_INPLACE1,
OIL_ARG_ISTR1,
OIL_ARG_INPLACE2,
OIL_ARG_ISTR2,
OIL_ARG_LAST
} OilArgType;
Enumeration containing the types of parameter types understood by Liboil.
const char* oil_arg_type_name (OilArgType type);
Looks up the name of the OilArgType specified by type.
type : |
an OilArgType |
| Returns : | a string containing the name |
#define oil_type_min_s16 (-32768)
Useful for autogenerated code. Do not use otherwise.
#define oil_type_min_s32 (-2147483647 - 1)
Useful for autogenerated code. Do not use otherwise.
#define oil_type_max_s16 (32767)
Useful for autogenerated code. Do not use otherwise.
#define oil_type_max_u16 (65535)
Useful for autogenerated code. Do not use otherwise.
#define oil_type_max_s32 (2147483647)
Useful for autogenerated code. Do not use otherwise.