summaryrefslogtreecommitdiff
path: root/docs/application/type.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/application/type.md')
-rw-r--r--docs/application/type.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/application/type.md b/docs/application/type.md
index 1967386..735d752 100644
--- a/docs/application/type.md
+++ b/docs/application/type.md
@@ -15,15 +15,15 @@ typedef struct {
static const kpl_type_ptr kpl_type_ptr_null = { UINT16_MAX, UINT16_MAX };
-typedef enum : uint8_t {
+typedef enum : uint16_t {
// ...
} kpl_type_template;
-typedef enum : uint8_t {
+typedef enum : uint16_t {
CONST = 1 << 0
EMPTY = 1 << 1,
REF = 1 << 2,
- SHARED = 1 << 3,
+ GC = 1 << 3
} kpl_type_flags;
typedef union {
@@ -33,7 +33,7 @@ typedef union {
typedef struct {
kpl_type_template template;
kpl_type_flags flags;
- _Atomic unt16_t ref_count;
+ _Atomic int32_t ref_count;
kpl_type_ptr self, prev, next, parent;
kpl_type_body body;
} kpl_type;