From 7b9204a8680539bc4795a14f3d9a34e47981d0c3 Mon Sep 17 00:00:00 2001 From: nodist Date: Thu, 5 Nov 2026 15:22:02 -0500 Subject: more objects and special slab for gc --- source/array.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 source/array.c (limited to 'source/array.c') diff --git a/source/array.c b/source/array.c new file mode 100644 index 0000000..4366ec5 --- /dev/null +++ b/source/array.c @@ -0,0 +1,21 @@ + +#include "kpl.h" + +// TODO ARRAY INTERFACE + +kpl_object_array *kpl_object_array_create(kpl_thread *thread, kpl_value_bit_width value_bit_width, + int32_t value_size) { + if (value_size < 1 || value_size > KPL_ARRAY_MAX_VALUE_SIZE) + return NULL; + kpl_object_array *object_array = NULL; + switch (value_bit_width) { + // TODO + default: + return NULL; + } + (void) thread; + // TODO + return object_array; +} + +extern inline void kpl_object_array_destroy(kpl_thread *thread, kpl_object_array *object_array); -- cgit v1.2.3