diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-05 15:22:02 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-05 15:22:02 -0500 |
| commit | 7b9204a8680539bc4795a14f3d9a34e47981d0c3 (patch) | |
| tree | 7aa69bba0c9cbee0cafb638fd49af64958dbb228 /source/array.c | |
| parent | faa937cb09cd01f4ea94f5d7722a20e9c1246df0 (diff) | |
more objects and special slab for gc
Diffstat (limited to 'source/array.c')
| -rw-r--r-- | source/array.c | 21 |
1 files changed, 21 insertions, 0 deletions
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); |
