comparison dowa/dowa.h @ 59:e06bc03d9618

[Color Game] Making game with a friend.
author June Park <parkjune1995@gmail.com>
date Sat, 20 Dec 2025 10:53:13 -0800
parents 636eab07809d
children fff1b048dda6
comparison
equal deleted inserted replaced
58:ccb42d5bf8fd 59:e06bc03d9618
4 #include <stdio.h> 4 #include <stdio.h>
5 #include <string.h> // stdup 5 #include <string.h> // stdup
6 #include <stdlib.h> // only for malloc, free, stuff 6 #include <stdlib.h> // only for malloc, free, stuff
7 #include <assert.h> // mostly for TODO 7 #include <assert.h> // mostly for TODO
8 #include <dirent.h> // some functions loop through files 8 #include <dirent.h> // some functions loop through files
9 #include <math.h> // I am not re-writing stuff I guess...
9 10
10 #include <sys/stat.h> 11 #include <sys/stat.h>
11 #include <limits.h> 12 #include <limits.h>
12 13
13 #include "dowa_internal.h" 14 #include "dowa_internal.h"
68 DOWA_HASH_MAP_TYPE_STRING, // Null-terminated string 69 DOWA_HASH_MAP_TYPE_STRING, // Null-terminated string
69 DOWA_HASH_MAP_TYPE_HASHMAP, // Nested hashmap 70 DOWA_HASH_MAP_TYPE_HASHMAP, // Nested hashmap
70 DOWA_HASH_MAP_TYPE_INT // Integer value 71 DOWA_HASH_MAP_TYPE_INT // Integer value
71 } Dowa_HashMap_ValueType; 72 } Dowa_HashMap_ValueType;
72 73
73 typedef struct { 74 typedef struct Dowa_HashEntry {
74 char *key; 75 char *key;
75 void *buffer; 76 void *buffer;
76 size_t capacity; 77 size_t capacity;
77 Dowa_HashMap_ValueType type; 78 Dowa_HashMap_ValueType type;
78 struct Dowa_HashEntry *next; 79 struct Dowa_HashEntry *next;