summaryrefslogtreecommitdiff
path: root/docs/application/namespace.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-26 11:46:36 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-26 11:46:36 -0400
commit6f507405ac3b0a128c63134997849203e3493a91 (patch)
tree2804d44834ee4f9bb452f5458a871eb04ebb1910 /docs/application/namespace.md
parent88646efb1c2615e6d8ff0a2eae047a5ed2a31dd4 (diff)
remove global name tree
Diffstat (limited to 'docs/application/namespace.md')
-rw-r--r--docs/application/namespace.md12
1 files changed, 3 insertions, 9 deletions
diff --git a/docs/application/namespace.md b/docs/application/namespace.md
index 7cb6a3c..3f34f61 100644
--- a/docs/application/namespace.md
+++ b/docs/application/namespace.md
@@ -25,7 +25,7 @@ typedef enum : uint8_t {
typedef struct _kpl_namespace_module {
KPL_SLAB_TREE_HEADER(struct _kpl_namespace_module);
kpl_type_ptr ast;
- kpl_buffer *module_name, *module_string;
+ kpl_buffer *module_string, *module_name;
kpl_task *_Atomic task;
kpl_export *export_tree;
kpl_mutex export_mutex;
@@ -33,15 +33,9 @@ typedef struct _kpl_namespace_module {
static kpl_namespace_module *namespace_module_tree;
-kpl_mutex namespace_module_mutex;
+kpl_mutex namespace_modul_tree_mutex;
-typedef struct _kpl_namespace_string {
- kpl_type_ptr ast;
- kpl_buffer *string;
- kpl_task *_Atomic task;
-} kpl_namespace_string;
-
-static kpl_namespace_string namespace_string
+static kpl_namespace_module namespace_string;
```
Each `NAMESPACE_IDENTIFIER` maps to `kpl_namespace_native*` or `kpl_namespace_module*` depending on flags