diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-11 19:52:56 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-11 19:52:56 -0400 |
| commit | 730faa451fbc3e7ae37c8a3b32b9d4d99007c666 (patch) | |
| tree | 52bf7f4941b3d51bba67adf3b96e24753edb6ed9 /docs/application/type.md | |
| parent | 20106935981d50971da0a7708a5bfdbec256049c (diff) | |
remove compressed pointers
Diffstat (limited to 'docs/application/type.md')
| -rw-r--r-- | docs/application/type.md | 29 |
1 files changed, 11 insertions, 18 deletions
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; ``` |
