diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-27 17:17:56 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-27 17:17:56 -0400 |
| commit | bb912b081ed339e4a5419bd3d2ffd7465f2f72d3 (patch) | |
| tree | 7f34b3af1a72672de1d12c8e23dda419c398dce3 /docs/application/interface.md | |
| parent | 003119b9f285e5610f56186bce845441409265ae (diff) | |
bottom up redesign
Diffstat (limited to 'docs/application/interface.md')
| -rw-r--r-- | docs/application/interface.md | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/docs/application/interface.md b/docs/application/interface.md deleted file mode 100644 index de9eebe..0000000 --- a/docs/application/interface.md +++ /dev/null @@ -1,56 +0,0 @@ -# Interface - ---- - -General definitions used throughout the code - -## Object Definitions - -```c -typedef union { - bool b; - uint8_t u8; - uint16_t u16; - uint32_t u32; - uint64_t u64; - int8_t i8; - int16_t i16; - int32_t i32; - int64_t i64; - float f32; - double f64; - void *ptr; -} kpl_any; - -typedef void kpl_interface_free(kpl_any a); - -typedef struct { - // TODO -} kpl_interface; - -typedef struct { - kpl_any *any; - kpl_interface *interface; -} kpl_class; - -typedef enum : uint8_t { - KPL_STATUS_ERROR, - KPL_STATUS_NULL, - KPL_STATUS_VALUE -} kpl_result_status; - -typedef struct { - any value; - kpl_result_status status; -} kpl_result; - -kpl_result kpl_result_error(error *er); - -kpl_result kpl_result_null(void); - -kpl_result kpl_result_value(any value); -``` - -## `kpl_interface` - -See [Operators](../language/operators.md) |
