From ecf79fcf20327ede467442a6b06eba7718de6a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Mon, 15 Dec 2025 03:58:27 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=88=9D=E3=82=B3=E3=83=9F=E3=83=83?= =?UTF-8?q?=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exstdtype.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 exstdtype.h diff --git a/exstdtype.h b/exstdtype.h new file mode 100644 index 0000000..2495f80 --- /dev/null +++ b/exstdtype.h @@ -0,0 +1,72 @@ +#ifndef __EXSTDTYPE_H +#define __EXSTDTYPE_H + +#include + +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; + +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +typedef float f32; +typedef double f64; + +typedef struct { + i8 *items; + i8 length; + i8 capacity; +} ArrayI8; + +typedef struct { + i16 *items; + i16 length; + i16 capacity; +} ArrayI16; + +typedef struct { + i32 *items; + i32 length; + i32 capacity; +} ArrayI32; + +typedef struct { + i64 *items; + i64 length; + i64 capacity; +} ArrayI64; + +typedef struct { + u8 *items; + u8 length; + u8 capacity; +} ArrayU8; + +typedef struct { + u16 *items; + u16 length; + u16 capacity; +} ArrayU16; + +typedef struct { + u32 *items; + u32 length; + u32 capacity; +} ArrayU32; + +typedef struct { + u64 *items; + u64 length; + u64 capacity; +} ArrayU64; + +typedef struct { + char *chars; + i32 length; +} String; + +#endif // __EXSTDTYPE_H