diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-03 00:21:33 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-03 00:21:33 +0000 |
commit | c824772fc7372dd79e249a2f8092aff8a358c9d2 (patch) | |
tree | 912dd576b987523bb6480644ca2397f7c3805d32 /lib.h | |
parent | 4c179d745373952847a30e1958a84fac6f005017 (diff) | |
download | obf-c824772fc7372dd79e249a2f8092aff8a358c9d2.tar.gz obf-c824772fc7372dd79e249a2f8092aff8a358c9d2.tar.bz2 obf-c824772fc7372dd79e249a2f8092aff8a358c9d2.zip |
Introduce some nice typedefs in lib.h
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -5,7 +5,20 @@ #include <stdio.h> #include <stdlib.h> -#define MAX(a, b) (a > b ? a : b) +#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; + +#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); |