From dc0f921d287d2c9c1ee270bf633a67543b829d91 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 16 Sep 2020 16:02:00 -0400 Subject: progress on darray.c, inlining calls to ArrayNth and ArrayRemoveAt --- include/darray.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/darray.h') diff --git a/include/darray.h b/include/darray.h index ff592ce..43e093d 100644 --- a/include/darray.h +++ b/include/darray.h @@ -9,13 +9,14 @@ extern "C" { typedef int (*SortFunction)(const void *, const void *); typedef BOOL (*MapFunction)(const void *, s32); +typedef void (*DtorFunction)(void *); typedef struct DArray { s32 size; s32 capacity; - u32 elementSz; + u32 elemSz; s32 growAmount; - s32 unk10; // TODO destructor callback? + DtorFunction elemDtor; char *buf; } DArray; -- cgit v1.2.3