summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-09-19 14:56:17 -0400
committerAndrew Opalach <andrew@akon.city> 2024-09-19 14:56:17 -0400
commit395d423e6a6fda56e02d9551cadc93d229fe71c5 (patch)
tree3824245372a458dd4ce6d18c73c51880cdf75d5d /src
parent7f7566324b18833d2868ea45e2b28dcdc547d879 (diff)
downloadlibalabaster-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.c2
-rw-r--r--src/lib.c4
-rw-r--r--src/log.c2
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)
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