view 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
line wrap: on
line source

#ifndef DOWA
#define DOWA

#include <stdio.h>
#include <stdlib.h> // only for malloc, free, stuff
#include "dowa_internal.h"

typedef unsigned int uint32;
typedef int int32;
typedef unsigned short uint16;
typedef short int16;
typedef unsigned char uint8;
typedef char int8;
typedef char boolean;

// --- Misc --- //
char *Dowa_Int32ToString(uint32 int32, char *buffer);

// --- Arena --- //
typedef struct {
  char   *buffer;
  size_t offset;
  size_t capacity;
} Areana, *PArena;

void  Dowa_ArenaIntialize(PArena p_arena, size_t capacity);
void *Dowa_ArenaAllocate(PArena p_arena, size_t size);
void Dowa_ArenaFree(PArena p_arena);

#endif