blob: 74b6303d7ca77e6dc43ab9221f9b8aa399c00802 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef BASE_H
#define BASE_H
#include <stddef.h>
#include <stdint.h>
#define OK 0
#define ERR_IO 1
#define ERR_PARSE 2
#define ERR_PERM 3
#define ERR_INVALID 4
enum {
BUFFER_SIZE_SMALL = 128,
BUFFER_SIZE_DEFAULT = 256,
BUFFER_SIZE_LARGE = 512,
PATH_MAX_LEN = 4096
};
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef float f32;
typedef double f64;
typedef i32 b32;
typedef i16 b16;
typedef u8 b8;
#define TRUE 1
#define FALSE 0
#endif
|