summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-04-09 22:55:04 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-04-09 22:55:37 +0100
commitc93d358b6a0244a2fadc6cb979b5ca457ef3f1b5 (patch)
tree7f962de14d78cd9970f2a083824000ce7db3e68e
parent4218fa3a2c305b97d8be3d4448f1be1c41cc1143 (diff)
downloadprick-master.tar.gz
prick-master.tar.bz2
prick-master.zip
Add types.h for useful type aliasesHEADmaster
So simple it's not got any functions.
-rw-r--r--types.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/types.h b/types.h
new file mode 100644
index 0000000..126bb77
--- /dev/null
+++ b/types.h
@@ -0,0 +1,30 @@
+/* Copyright (C) 2025 Aryadev Chavali
+
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the Unlicense for details.
+
+ * You may distribute and modify this code under the terms of the Unlicense,
+ * which you should have received a copy of along with this program. If not,
+ * please go to <https://unlicense.org/>.
+
+ * Created: 2025-04-09
+ * Description: Some basic type definitions to make life easier.
+ */
+
+#ifndef TYPES_H
+#define TYPES_H
+
+#include <stdint.h>
+
+typedef uint8_t u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
+typedef uint64_t u64;
+
+typedef int8_t i8;
+typedef int16_t i16;
+typedef int32_t i32;
+typedef int64_t i64;
+
+#endif