From 1d5f5dd3cd5cc07352379fe33930770e3d203f3a Mon Sep 17 00:00:00 2001 From: nodist Date: Thu, 4 Jun 2026 17:22:25 -0400 Subject: use await and more application definitions --- docs/application/namespace.md | 60 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 4 deletions(-) (limited to 'docs/application/namespace.md') diff --git a/docs/application/namespace.md b/docs/application/namespace.md index 47f6105..f49ebf1 100644 --- a/docs/application/namespace.md +++ b/docs/application/namespace.md @@ -4,10 +4,62 @@ ## Object Definitions -# Native Registering +```c +typedef struct _kpl_native_namespace { + POOL_HEADER(_kpl_native_namespace); + kpl_buffer *name; + kpl_map *exports; + pthread_mutex_t mutex; +} kpl_native_namespace; +``` -# File Registering +```c +typedef struct _kpl_file_namespace { + POOL_HEADER(_kpl_file_namespace); + __Atomic int16_t children; + uint16_t flags; + kpl_buffer *file_name, *file_string; + kpl_map *parents, *exports; + // TODO AST + kpl_interface *interface; + kpl_task *task; + pthread_mutex_t mutex; +} kpl_file_namespace; +``` -## Import +```c +typedef struct _kpl_string_namespace { + kpl_buffer *string; + // TODO AST + kpl_interface *interface; + kpl_task *task; +} kpl_string_namespace; +``` -## Export +# Registering + +## Native + +## File + +### Main + +### ``import` + +## String/REPL + +# Updating + +## File + +### ``export` + +# Using + +## Native + +### ``use` + +## File + +### ``import` -- cgit v1.2.3