diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-13 16:28:13 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-13 16:28:13 -0500 |
| commit | c3d23d3091c23978b12c140e6cfd964eff1d3986 (patch) | |
| tree | 3342a73aea427fa19d2b0936a98e37fbe479c85d /include/kpl/array.h | |
| parent | 75c8828d804f45cf8f44af73bfe87e0f3eaf9a9e (diff) | |
Diffstat (limited to 'include/kpl/array.h')
| -rw-r--r-- | include/kpl/array.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/kpl/array.h b/include/kpl/array.h deleted file mode 100644 index de3b0e8..0000000 --- a/include/kpl/array.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * KPL array methods - */ - -#pragma once - -/* - * Create new array - */ -kpl_object_array *kpl_object_array_create(kpl_thread *thread, kpl_value_bit_width value_bit_width, - int32_t value_size); - -/* - * Return array to gc before sweep - */ -inline void kpl_object_array_destroy(kpl_thread *thread, kpl_object_array *object_array) { - kpl_gc_delete(thread, (kpl_object*) object_array); -} - -typedef enum : int32_t { - KPL_ARRAY_RESULT_TAG_SUCCESS = 0, - KPL_ARRAY_RESULT_TAG_RESIZE_FAIL = 1, - KPL_ARRAY_RESULT_TAG_ARRAY_EMPTY = 2, - KPL_ARRAY_RESULT_TAG_INDEX_INVALID = 3 -} kpl_array_result_tag; - -// TODO PUSH - -// TODO POP - -// TODO INDEX |
