diff options
Diffstat (limited to 'docs/application')
| -rw-r--r-- | docs/application/index.md | 1 | ||||
| -rw-r--r-- | docs/application/name.md | 35 | ||||
| -rw-r--r-- | docs/application/namespace.md | 12 |
3 files changed, 3 insertions, 45 deletions
diff --git a/docs/application/index.md b/docs/application/index.md index e31ecff..f8fe293 100644 --- a/docs/application/index.md +++ b/docs/application/index.md @@ -15,7 +15,6 @@ * ##### [Mutex](./mutex.md) * ##### [Memory](./memory.md) * ##### [Io](./io.md) -* ##### [Name](./name.md) * ##### [Shared](./shared.md) * ##### [Type](./type.md) * ##### [Group](./group.md) diff --git a/docs/application/name.md b/docs/application/name.md deleted file mode 100644 index d605b81..0000000 --- a/docs/application/name.md +++ /dev/null @@ -1,35 +0,0 @@ -# Name - ---- - -Each word representing a var, symbol or type gets an `NAME_IDENTIFIER` -> `kpl_name*` associated with it - -## Object Definitions - -```c -#define KPL_LETTER_COUNT 26 - -#define KPL_NAME_COUNT 43 - -#define KPL_NAME_SIZE 44 - -typedef struct { - kpl_ptr underscore, lowercase[KPL_LETTER_COUNT], uppercase[KPL_LETTER_COUNT]; - char name[KPL_NAME_SIZE]; -} kpl_name_node; - -typedef strcut { - kpl_name_node array[UINT16_MAX]; -} kpl_name_array; - -typedef strcut { - uint16_t slab_index, array_index; - kpl_mutex mutex; - kpl_ptr root; - kpl_name_array *slab[UINT16_MAX]; -} kpl_name; -``` - -## Usage - -The only operation into the trie is a findsert with a pointer to a string and its length, returning a pointer to the found or inserted node 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 |
