diff options
Diffstat (limited to 'docs/application')
| -rw-r--r-- | docs/application/error.md | 18 | ||||
| -rw-r--r-- | docs/application/namespace.md | 2 | ||||
| -rw-r--r-- | docs/application/thread.md | 2 | ||||
| -rw-r--r-- | docs/application/type.md | 12 |
4 files changed, 25 insertions, 9 deletions
diff --git a/docs/application/error.md b/docs/application/error.md index f0d844a..2e1e703 100644 --- a/docs/application/error.md +++ b/docs/application/error.md @@ -5,9 +5,23 @@ ## Object Definitions ```c +typedef union : uin16_t { + ERROR_C = 1 << 0, + ERROR_TOKEN = 1 << 1, + ERROR_TYPE = 1 << 2 +} kpl_error_flags; + typedef struct _kpl_error { - int32_t line; - char *file, *function; + uint16_t line, flags; + uin32_t class_options; + struct _kpl_error *stack; + union { + struct { + char *file, char *function; + } c; + kpl_token token; + kpl_type *type; + } source; kpl_class class; } kpl_error; ``` diff --git a/docs/application/namespace.md b/docs/application/namespace.md index f8653f7..e9842cd 100644 --- a/docs/application/namespace.md +++ b/docs/application/namespace.md @@ -32,7 +32,7 @@ typedef struct _kpl_namespace_module { static kpl_namespace_module *namespace_module_tree; -kpl_mutex namespace_modul_tree_mutex; +kpl_mutex namespace_module_tree_mutex; static kpl_namespace_module namespace_string; diff --git a/docs/application/thread.md b/docs/application/thread.md index e5b3981..c0ad199 100644 --- a/docs/application/thread.md +++ b/docs/application/thread.md @@ -35,7 +35,7 @@ typedef struct { typedef struct { kpl_task_queue queue; - _Atomic size_t priority; + _Atomic ssize_t priority; sem_t counter; pthread_t thread; } kpl_thread; diff --git a/docs/application/type.md b/docs/application/type.md index 793fb14..f028fba 100644 --- a/docs/application/type.md +++ b/docs/application/type.md @@ -21,21 +21,23 @@ typedef union { // 64 Bytes Max } kpl_type_body; +typedef struct { + uint16_t length, line; + int32_t position, module_id; +} kpl_token; + typedef struct _kpl_type { kpl_type_template template; uint8_t qualifiers; uint16_t modifiers; union { - struct { - uint16_t length, line; - uint32_t position, module_id; - } token; + kpl_token token; struct { int32_t id, tree_weight; } var; } meta; _Atomic ssize_t ref_count; - struct _kpl_type *prev, *next; + struct _kpl_type *prev, *next, *parent; kpl_type_body body; } kpl_type; ``` |
