Mercurial
comparison dowa/dowa.h @ 1:adcfad6e86fb
Updated naming and separated out some logic within seobeo.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 24 Sep 2025 09:11:20 -0700 |
| parents | |
| children | 8a43dedbe530 |
comparison
equal
deleted
inserted
replaced
| 0:5695ef413be0 | 1:adcfad6e86fb |
|---|---|
| 1 #ifndef DOWA | |
| 2 #define DOWA | |
| 3 | |
| 4 #include <stdio.h> | |
| 5 #include <stdlib.h> // only for malloc, free, stuff | |
| 6 #include "dowa_internal.h" | |
| 7 | |
| 8 typedef unsigned int uint32; | |
| 9 typedef int int32; | |
| 10 typedef unsigned short uint16; | |
| 11 typedef short int16; | |
| 12 typedef unsigned char uint8; | |
| 13 typedef char int8; | |
| 14 typedef char boolean; | |
| 15 | |
| 16 // --- Misc --- // | |
| 17 char *Dowa_Int32ToString(uint32 int32, char *buffer); | |
| 18 | |
| 19 // --- Arena --- // | |
| 20 typedef struct { | |
| 21 char *buffer; | |
| 22 size_t offset; | |
| 23 size_t capacity; | |
| 24 } Areana, *PArena; | |
| 25 | |
| 26 void Dowa_ArenaIntialize(PArena p_arena, size_t capacity); | |
| 27 void *Dowa_ArenaAllocate(PArena p_arena, size_t size); | |
| 28 void Dowa_ArenaFree(PArena p_arena); | |
| 29 | |
| 30 #endif |