Espresso 0.0.2c
This commit is contained in:
@ -5,6 +5,11 @@
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define ARG64_LO(x) ((uint32_t)(x))
|
||||
#define ARG64_HI(x) ((uint32_t)((x) >> 32))
|
||||
|
||||
#define TOGGLE_BIT(x, bit) ((x) ^= (1U << (bit)))
|
||||
|
||||
typedef unsigned char uchar;
|
||||
|
||||
typedef uint8_t u8;
|
||||
@ -12,4 +17,19 @@ typedef uint16_t u16;
|
||||
typedef uint32_t u32;
|
||||
typedef uint64_t u64;
|
||||
|
||||
typedef int8_t i8;
|
||||
typedef int16_t i16;
|
||||
typedef int32_t i32;
|
||||
typedef int64_t i64;
|
||||
|
||||
/* this might not be POSIX compatable. */
|
||||
typedef uint32_t size_t;
|
||||
typedef int32_t ssize_t;
|
||||
|
||||
#if 0
|
||||
#if sizeof(size_t) != sizeof(ssize_t)
|
||||
#error "size_t is a different size than ssize_t"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user