diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-15 20:40:49 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-15 20:40:49 -0400 |
| commit | 224c245a875a6f28c01e93d037329c708ef81dd4 (patch) | |
| tree | 7a368ccb80743651d5eb2f4b30a788ef70dae0ee /docs/application/type.md | |
| parent | 4c008d258f6fd23fd64e2a6b059448748d7f7d24 (diff) | |
type var definitions
Diffstat (limited to 'docs/application/type.md')
| -rw-r--r-- | docs/application/type.md | 16 |
1 files changed, 15 insertions, 1 deletions
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; |
