From 224c245a875a6f28c01e93d037329c708ef81dd4 Mon Sep 17 00:00:00 2001 From: nodist Date: Wed, 15 Jul 2026 20:40:49 -0400 Subject: type var definitions --- docs/application/type.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'docs/application/type.md') diff --git a/docs/application/type.md b/docs/application/type.md index f028fba..3a831b2 100644 --- a/docs/application/type.md +++ b/docs/application/type.md @@ -26,6 +26,17 @@ typedef struct { int32_t position, module_id; } kpl_token; +typedef enum { + NONE, + GENERAL_REGISTER, + XMM_REGISTER, + STACK +} kpl_native_storage; + +typedef struct { + uint8_t storage : 2, id : 6; +} kpl_native_id; + typedef struct _kpl_type { kpl_type_template template; uint8_t qualifiers; @@ -33,7 +44,10 @@ typedef struct _kpl_type { union { kpl_token token; struct { - int32_t id, tree_weight; + kpl_native_id native_id; + int8_t process_state_id; // -1 not used + uint16_t tree_weight; + struct _kpl_type *function; } var; } meta; _Atomic ssize_t ref_count; -- cgit v1.2.3