]> www.git.momoyon.org Git - lang.git/commitdiff
[commonlib.h] Update
authormomoyon <momoyon@momoyon.org>
Thu, 15 May 2025 04:39:33 +0000 (09:39 +0500)
committermomoyon <momoyon@momoyon.org>
Thu, 15 May 2025 04:39:33 +0000 (09:39 +0500)
include/commonlib.h

index df94650702a9889ab816ce9cd375fb63f59f6295..9b3e4d7aeeecfa9f81ee1f2fd5678b22f8496c99 100644 (file)
@@ -150,7 +150,7 @@ typedef struct c_Arena c_Arena;
 \r
 // NOTE: To use c_da_append() the Dynamic-Array struct should be defined using\r
 // DEFINE_DYNAMIC_ARRAY or have the same members as below!\r
-// NOTE!!!: We actually don't want this since this makes the user want to \r
+// NOTE!!!: We actually don't want this since this makes the user want to\r
 // use this macro to define dynamic arrays. But the user might want extra fields\r
 // in the struct; So we recommend defining da structs manually like:\r
 // ```C\r
@@ -362,6 +362,7 @@ const char *c_read_file(const char* filename, int *file_size) {
     char* result = NULL;\r
 \r
     if (f == NULL){\r
+        // TODO: Replace every strerror with strerror_s\r
         c_log_error("'%s': %s", filename, strerror(errno));\r
         defer(NULL);\r
     }\r