summaryrefslogtreecommitdiff
path: root/docs/application/type.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-08 17:52:05 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-08 17:52:05 -0400
commit168e070965aa2d98326b297d10339c4ad131c560 (patch)
tree0203c6d2066898361c938d63d7909b9547938924 /docs/application/type.md
parentca458bfcd65c3a094fd0721cb5cd9f74dee5f845 (diff)
add gc and shared as a qualifier type
Diffstat (limited to 'docs/application/type.md')
-rw-r--r--docs/application/type.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/application/type.md b/docs/application/type.md
index 77c567d..a89302e 100644
--- a/docs/application/type.md
+++ b/docs/application/type.md
@@ -15,16 +15,26 @@ typedef struct {
static const kpl_type_ptr kpl_type_ptr_null = { UINT16_MAX, UINT16_MAX };
-typedef enum : uint16_t {
+typedef enum : uint8_t {
// ...
} kpl_type_template;
+typedef enum : uint8_t {
+ CONST = 1 << 0
+ EMPTY = 1 << 1,
+ REF = 1 << 2,
+ SHARED = 1 << 3,
+ COUTING = 1 << 4,
+ TRACING = 1 << 5
+} kpl_type_flags;
+
typedef union {
// ...
} kpl_type_body;
typedef struct {
kpl_type_template template;
+ kpl_type_flags flags;
_Atomic unt16_t ref_count;
kpl_type_ptr self, prev, next, parent;
kpl_type_body body;