From 395d423e6a6fda56e02d9551cadc93d229fe71c5 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 19 Sep 2024 14:56:17 -0400 Subject: Update - Remove queue and liblfds - Add some helpers - Improve wstr compatibility Signed-off-by: Andrew Opalach --- src/array.c | 2 +- src/lib.c | 4 +--- src/log.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/array.c b/src/array.c index 6af0f40..5175d6f 100644 --- a/src/array.c +++ b/src/array.c @@ -8,7 +8,7 @@ struct { \ u32 size; \ u32 alloc; \ - type *data; \ + type *__al_sized_by(alloc) data; \ } #define al_array_init(arr) ((arr).size = 0, (arr).alloc = 0, (arr).data = NULL) diff --git a/src/lib.c b/src/lib.c index 8838495..063da23 100644 --- a/src/lib.c +++ b/src/lib.c @@ -1,5 +1,3 @@ -// Testing allocation tracking stuff. (Very scuffed, not thread-safe!) - #include "../include/al/lib.h" #if AL_USE_STDLIB @@ -11,8 +9,8 @@ static void (*_al_free)(void *) = free; s32 (*_al_posix_memalign)(void **, size_t, size_t) = posix_memalign; #endif +// Testing allocation tracking stuff (Very scuffed, not thread-safe!). #define MEMORY_TRACKING 0 - #if MEMORY_TRACKING struct alloc_t { void *ptr; diff --git a/src/log.c b/src/log.c index 370df07..409e94d 100644 --- a/src/log.c +++ b/src/log.c @@ -1,6 +1,6 @@ #include "../include/al/log.h" -#define AL_LOG_SKIP +//#define AL_LOG_SKIP #define AL_LOG_MESSAGE_SIZE 511 #define AL_LOG_USE_SECTION #ifdef AL_LOG_USE_SECTION -- cgit v1.2.3-101-g0448