From 51d055dc7e1a6edbaedb7ea80b1e678eff924fe0 Mon Sep 17 00:00:00 2001 From: nodist Date: Wed, 10 Jun 2026 13:34:38 -0400 Subject: specify type representation --- docs/application/type.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/application/type.md') diff --git a/docs/application/type.md b/docs/application/type.md index 735d752..03cc055 100644 --- a/docs/application/type.md +++ b/docs/application/type.md @@ -15,16 +15,17 @@ 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 : uint16_t { - CONST = 1 << 0 +typedef enum : uint8_t { + CONST = 1 << 0, EMPTY = 1 << 1, REF = 1 << 2, - GC = 1 << 3 -} kpl_type_flags; + SHARED = 1 << 3, + LOCK = 1 << 4 +} kpl_type_qualifiers; typedef union { // ... @@ -32,7 +33,8 @@ typedef union { typedef struct { kpl_type_template template; - kpl_type_flags flags; + kpl_type_qualifiers qualifiers; + uint16_t modifiers; _Atomic int32_t ref_count; kpl_type_ptr self, prev, next, parent; kpl_type_body body; -- cgit v1.2.3