/* * Copyright (C) 2024 dwlr * * BSD 3-Clause License (BSD-3-Clause) * See LICENSE for details */ #pragma once #pragma GCC diagnostic ignored "-Wlong-long" typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; /* XXX: GCC extension */ typedef signed char s8; typedef signed short s16; typedef signed int s32; typedef signed long long s64; /* XXX: GCC extension */ typedef s8 bool; typedef u64 usize; typedef s64 ssize; #define true 1 #define false 0 #define packed __attribute__((packed))