From: ahmedsamyh Date: Thu, 15 May 2025 04:38:39 +0000 (+0500) Subject: [commonlib.h] Add TODO. X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=3b3b6b73e954c612438a73b2eee2761ddc81147d;p=commonlib.git [commonlib.h] Add TODO. --- diff --git a/commonlib.h b/commonlib.h index df94650..9b3e4d7 100644 --- a/commonlib.h +++ b/commonlib.h @@ -150,7 +150,7 @@ typedef struct c_Arena c_Arena; // NOTE: To use c_da_append() the Dynamic-Array struct should be defined using // DEFINE_DYNAMIC_ARRAY or have the same members as below! -// NOTE!!!: We actually don't want this since this makes the user want to +// NOTE!!!: We actually don't want this since this makes the user want to // use this macro to define dynamic arrays. But the user might want extra fields // in the struct; So we recommend defining da structs manually like: // ```C @@ -362,6 +362,7 @@ const char *c_read_file(const char* filename, int *file_size) { char* result = NULL; if (f == NULL){ + // TODO: Replace every strerror with strerror_s c_log_error("'%s': %s", filename, strerror(errno)); defer(NULL); }