From 9a61168aec3373be702bdbf252043ce3605f2b5b Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 1 Nov 2026 10:07:03 -0500 Subject: add basic gc test --- include/kpl/storage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/kpl/storage.h') diff --git a/include/kpl/storage.h b/include/kpl/storage.h index d78f80b..8758624 100644 --- a/include/kpl/storage.h +++ b/include/kpl/storage.h @@ -11,13 +11,17 @@ typedef struct _kpl_storgae_object { KPL_TREE_HEADER(_kpl_storgae_object); kpl_type_base *type; - kpl_class class; + union { + kpl_class class; + kpl_function function; + }; kpl_identifier identifier; } kpl_stoage_object; // c_string_ptr used for tree search comparisons #define KPL_STORAGE_HEADER(STRUCT_NAME) \ KPL_TREE_HEADER(STRUCT_NAME); \ + bool import_ready; \ kpl_tree object_tree; \ const char *c_string_ptr; @@ -37,6 +41,7 @@ typedef kpl_stoage_namespace kpl_stoage_search; /* * Modules make a copy of absolute file path * The c_string_ptr is pointed to this file path copy string + * This tree can only be accessed through a mutex */ typedef struct _kpl_storage_module { KPL_TREE_HEADER(_kpl_storage_module); -- cgit v1.2.3