blob: f70b22fb5297594c58f1e25521bd01ec6f8f573c [file] [log] [blame]
swissChilid8137922021-02-17 15:34:07 -08001#pragma once
2
3typedef unsigned char uchar;
4typedef unsigned short ushort;
5typedef unsigned int uint;
6typedef unsigned long ulong;
7
swissChili825d46b2021-02-21 10:14:16 -08008typedef unsigned long size_t;
swissChili0b35bf22021-02-18 12:49:40 -08009
swissChilie4f01992021-02-25 15:38:12 -080010typedef _Bool bool;
swissChili0b35bf22021-02-18 12:49:40 -080011
12enum
13{
14 false = 0,
15 true,
16};
swissChili825d46b2021-02-21 10:14:16 -080017
swissChili19ef4182021-02-21 17:45:51 -080018#define NULL 0
swissChilic2e62ed2021-03-10 17:04:18 -080019#define MIN(a, b) ((a)>(b)?(b):(a))
20#define MAX(a, b) ((a)>(b)?(a):(b))
swissChilie20b79b2021-03-17 21:20:13 -070021
22// Coerce into 1 or 0
23#define BOOL(a) (!(!(a)))