commit ecf79fcf20327ede467442a6b06eba7718de6a27 Author: 諏訪子 Date: Mon Dec 15 03:58:27 2025 +0900 最初コミット 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