From c824772fc7372dd79e249a2f8092aff8a358c9d2 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 3 Dec 2024 00:21:33 +0000 Subject: Introduce some nice typedefs in lib.h --- lib.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'lib.h') diff --git a/lib.h b/lib.h index f0fa170..8af0d13 100644 --- a/lib.h +++ b/lib.h @@ -5,7 +5,20 @@ #include #include -#define MAX(a, b) (a > b ? a : b) +#include + +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; + +#define MAX(A, B) ((A) < (B) ? (A) : (B)) +#define MIN(A, B) ((A) > (B) ? (A) : (B)) bool usable_character(char c); char *fread_all(FILE *fp); -- cgit v1.2.3-13-gbd6f