Added basic typedefs
This commit is contained in:
parent
a855bc06f7
commit
0e36b43793
|
@ -0,0 +1,36 @@
|
||||||
|
|
||||||
|
#ifndef RR_UTILITY_H
|
||||||
|
#define RR_UTILITY_H
|
||||||
|
|
||||||
|
typedef signed char i8_t;
|
||||||
|
typedef signed short i16_t;
|
||||||
|
typedef signed int i32_t;
|
||||||
|
typedef signed long i64_t;
|
||||||
|
|
||||||
|
typedef unsigned char u8_t;
|
||||||
|
typedef unsigned short u16_t;
|
||||||
|
typedef unsigned int u32_t;
|
||||||
|
typedef unsigned long u64_t;
|
||||||
|
|
||||||
|
typedef float f32_t;
|
||||||
|
typedef double f64_t;
|
||||||
|
|
||||||
|
typedef u32_t rune_t;
|
||||||
|
typedef u8_t bool_t;
|
||||||
|
|
||||||
|
#ifdef __RR_32_BIT__
|
||||||
|
typedef u32_t usz_t;
|
||||||
|
typedef i32_t isz_t;
|
||||||
|
#else
|
||||||
|
typedef u64_t usz_t;
|
||||||
|
typedef i64_t isz_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define TRUE (1)
|
||||||
|
#define FALSE (0)
|
||||||
|
|
||||||
|
#define NULL ((void *) 0)
|
||||||
|
#define ZERO ((rune_t) 0)
|
||||||
|
|
||||||
|
#endif // RR_UTILITY_H
|
Loading…
Reference in New Issue