最初コミット

This commit is contained in:
2025-12-15 03:58:27 +09:00
commit ecf79fcf20

72
exstdtype.h Normal file
View File

@@ -0,0 +1,72 @@
#ifndef __EXSTDTYPE_H
#define __EXSTDTYPE_H
#include <stdint.h>
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