types.h (505B) download
1#pragma once
2
3#include "common.h"
4
5#include <limits.h>
6
7#if __SIZEOF_INT__ != 4
8# error "int" is not 4 bytes wide
9#endif
10
11#if __SIZEOF_LONG_LONG__ != 8
12# error "long long" is not 8 bytes wide
13#endif
14
15typedef char i8;
16typedef unsigned char u8;
17typedef short i16;
18typedef unsigned short u16;
19typedef int i32;
20typedef unsigned int u32;
21typedef long long i64;
22typedef unsigned long long u64;
23
24typedef struct {
25 int read;
26 int write;
27} pipe_t;