diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-04 17:22:25 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-04 17:22:25 -0400 |
| commit | 1d5f5dd3cd5cc07352379fe33930770e3d203f3a (patch) | |
| tree | 9a92bdf7a34b99065d8f67f296b86743d34b2b84 /docs/application/namespace.md | |
| parent | a8810a00d95678cceee2a063df9c094fa6f6037d (diff) | |
use await and more application definitions
Diffstat (limited to 'docs/application/namespace.md')
| -rw-r--r-- | docs/application/namespace.md | 60 |
1 files changed, 56 insertions, 4 deletions
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` |
