From 730faa451fbc3e7ae37c8a3b32b9d4d99007c666 Mon Sep 17 00:00:00 2001 From: nodist Date: Sat, 11 Jul 2026 19:52:56 -0400 Subject: remove compressed pointers --- docs/application/type.md | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'docs/application/type.md') diff --git a/docs/application/type.md b/docs/application/type.md index bb9534b..25a5863 100644 --- a/docs/application/type.md +++ b/docs/application/type.md @@ -21,28 +21,21 @@ typedef union { // 64 Bytes Max } kpl_type_body; -typedef struct { +typedef struct _kpl_type { kpl_type_template template; uint8_t qualifiers; uint16_t modifiers; - uint16_t token_length, token_line; - uint32_t token_position; + union { + struct { + uint16_t length, line; + uint32_t position, module_id; + } token; + struct { + int32_t id, tree_weight; + } var; + } meta; _Atomic int32_t ref_count; - kpl_ptr self, prev, next; - kpl_namespace_module *module; + struct _kpl_type *prev, *next; kpl_type_body body; } kpl_type; - -uint16_t array_index, slab_count; - -typedef struct _kpl_type_slab { - struct _kpl_type_slab *next; - kpl_type array[UINT16_MAX]; -} kpl_type_slab; - -kpl_type_slab *type_slab; - -kpl_ptr type_pool; - -kpl_mutex type_mutex; ``` -- cgit v1.2.3