diff options
| author | 2024-09-19 14:56:17 -0400 | |
|---|---|---|
| committer | 2024-09-19 14:56:17 -0400 | |
| commit | 395d423e6a6fda56e02d9551cadc93d229fe71c5 (patch) | |
| tree | 3824245372a458dd4ce6d18c73c51880cdf75d5d /src | |
| parent | 7f7566324b18833d2868ea45e2b28dcdc547d879 (diff) | |
| download | libalabaster-395d423e6a6fda56e02d9551cadc93d229fe71c5.tar.gz libalabaster-395d423e6a6fda56e02d9551cadc93d229fe71c5.tar.bz2 libalabaster-395d423e6a6fda56e02d9551cadc93d229fe71c5.zip | |
Update
- Remove queue and liblfds
- Add some helpers
- Improve wstr compatibility
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src')
| -rw-r--r-- | src/array.c | 2 | ||||
| -rw-r--r-- | src/lib.c | 4 | ||||
| -rw-r--r-- | src/log.c | 2 |
3 files changed, 3 insertions, 5 deletions
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) @@ -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; @@ -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 |