diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-07-14 21:12:37 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-07-14 21:12:37 +0200 |
commit | 30740ca4131d1f574718262451b4410207dc8d4e (patch) | |
tree | fc88b16a216079397ad85b9c6b1a1c1c5712a814 /kit/types.h | |
parent | 5e3c99bb1cf1d03ea006300121265571f5008fd2 (diff) | |
download | saw-30740ca4131d1f574718262451b4410207dc8d4e.zip |
Reworking the build system
Diffstat (limited to 'kit/types.h')
-rw-r--r-- | kit/types.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kit/types.h b/kit/types.h new file mode 100644 index 0000000..bbe8717 --- /dev/null +++ b/kit/types.h @@ -0,0 +1,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 char c8; +typedef int c32; + +typedef signed char b8; // 8-bit boolean +typedef signed int b32; // 32-bit boolean +typedef signed int s32; // 32-bit status + +#endif |