diff 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
line wrap: on
line diff
--- a/dowa/dowa.h	Tue Dec 23 14:00:37 2025 -0800
+++ b/dowa/dowa.h	Tue Dec 23 15:18:46 2025 -0800
@@ -11,6 +11,7 @@
 // Maybe move this into seobeo file directly?
 #include <dirent.h> // some functions loop through files
 #endif
+
 #include <math.h> // I am not re-writing stuff I guess...
 
 #include <sys/stat.h>
@@ -119,8 +120,10 @@
 // --- Utility Functions --- //
 /* Prints all entries in the hashmap to stdout for debugging purposes. */
 extern void          Dowa_HashMap_Print(Dowa_PHashMap map);
+#ifdef DIRECTORY
 /* 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. */
 extern int           Dowa_HashMap_Cache_Folder(Dowa_PHashMap map, const char *folder_path);
+#endif
 
 
 #endif