summaryrefslogtreecommitdiff
path: root/kit/types.h
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-07-14 21:12:37 +0200
committerMitya Selivanov <automainint@guattari.tech>2024-07-14 21:12:37 +0200
commit30740ca4131d1f574718262451b4410207dc8d4e (patch)
treefc88b16a216079397ad85b9c6b1a1c1c5712a814 /kit/types.h
parent5e3c99bb1cf1d03ea006300121265571f5008fd2 (diff)
downloadsaw-30740ca4131d1f574718262451b4410207dc8d4e.zip
Reworking the build system
Diffstat (limited to 'kit/types.h')
-rw-r--r--kit/types.h36
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