comparison dowa/dowa.h @ 64:a30944e5719e

Added vibe coded markdown to html script since it is useful for me. Updated Dowa so that it can be compiled without dirnet for windows.
author June Park <parkjune1995@gmail.com>
date Tue, 23 Dec 2025 15:18:46 -0800
parents fff1b048dda6
children ecb6ee6a22c3
comparison
equal deleted inserted replaced
63:fff1b048dda6 64:a30944e5719e
9 #ifdef DIRECTORY 9 #ifdef DIRECTORY
10 // Only for linux and mac since window do not support. 10 // Only for linux and mac since window do not support.
11 // Maybe move this into seobeo file directly? 11 // Maybe move this into seobeo file directly?
12 #include <dirent.h> // some functions loop through files 12 #include <dirent.h> // some functions loop through files
13 #endif 13 #endif
14
14 #include <math.h> // I am not re-writing stuff I guess... 15 #include <math.h> // I am not re-writing stuff I guess...
15 16
16 #include <sys/stat.h> 17 #include <sys/stat.h>
17 #include <limits.h> 18 #include <limits.h>
18 19
117 char *Dowa_Int32ToString(uint32 value, char *buffer); /* Just use atoid lmao*/ 118 char *Dowa_Int32ToString(uint32 value, char *buffer); /* Just use atoid lmao*/
118 119
119 // --- Utility Functions --- // 120 // --- Utility Functions --- //
120 /* Prints all entries in the hashmap to stdout for debugging purposes. */ 121 /* Prints all entries in the hashmap to stdout for debugging purposes. */
121 extern void Dowa_HashMap_Print(Dowa_PHashMap map); 122 extern void Dowa_HashMap_Print(Dowa_PHashMap map);
123 #ifdef DIRECTORY
122 /* Loads all files from the specified folder into the hashmap. Uses file names as keys and file contents as values. Returns 0 on success, or -1 on failure. */ 124 /* Loads all files from the specified folder into the hashmap. Uses file names as keys and file contents as values. Returns 0 on success, or -1 on failure. */
123 extern int Dowa_HashMap_Cache_Folder(Dowa_PHashMap map, const char *folder_path); 125 extern int Dowa_HashMap_Cache_Folder(Dowa_PHashMap map, const char *folder_path);
126 #endif
124 127
125 128
126 #endif 129 #endif