summaryrefslogtreecommitdiff
path: root/source/kit/types.h
blob: cbb9a7131294617c8c45f89a04b5efdbf6b58322 (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
#ifndef KIT_TYPES_H
#define KIT_TYPES_H

#ifndef _GNU_SOURCE
#  define _GNU_SOURCE
#endif

//  signed integers
//
typedef signed char      i8;
typedef signed short     i16;
typedef signed int       i32;
typedef signed long long i64;

//  unsigned integers
//
typedef unsigned char      u8;
typedef unsigned short     u16;
typedef unsigned int       u32;
typedef unsigned long long u64;

//  floats
//
typedef float  f32;
typedef double f64;

//  chars
//
typedef signed char c8;
typedef signed int  c32;

typedef signed char b8;  // 8-bit boolean
typedef signed int  b32; // 32-bit boolean
typedef signed int  s32; // 32-bit status

#endif