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/namespace.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'docs/application/namespace.md') diff --git a/docs/application/namespace.md b/docs/application/namespace.md index ac382de..f8653f7 100644 --- a/docs/application/namespace.md +++ b/docs/application/namespace.md @@ -6,13 +6,13 @@ ```c typedef struct _kpl_export { - size_t tree_weight; + int32_t tree_weight; struct _kpl_export *tree_left, *tree_right; - kpl_type_ptr type; + kpl_type *type; } kpl_export; typedef struct _kpl_namespace_native { - size_t tree_weight; + int32_t tree_weight; struct _kpl_namespace_native *tree_left, *tree_right; const char *name; kpl_export *export_tree; @@ -21,12 +21,13 @@ typedef struct _kpl_namespace_native { static kpl_namespace_native *namespace_native_tree; typedef struct _kpl_namespace_module { - size_t tree_weight; + uint32_t module_id; + int32_t tree_weight; struct _kpl_namespace_module *tree_left, *tree_right; kpl_buffer *module_string, *module_name; kpl_export *export_tree; kpl_mutex export_mutex; - kpl_type_ptr ast; + kpl_type *ast; } kpl_namespace_module; static kpl_namespace_module *namespace_module_tree; @@ -34,6 +35,8 @@ static kpl_namespace_module *namespace_module_tree; kpl_mutex namespace_modul_tree_mutex; static kpl_namespace_module namespace_string; + +static kpl_namespace_module *module_array[KPL_MODULE_SIZE]; // module_id refers to index ``` Each `NAMESPACE_IDENTIFIER` maps to `kpl_namespace_native*` or `kpl_namespace_module*` depending on flags -- cgit v1.2.3