diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-10-07 16:44:38 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-10-07 16:44:38 -0400 |
| commit | cbf7d62712c44d2b3bbb066e6840041b89cfb6d9 (patch) | |
| tree | b45f9328250c8f0e1d5037a471f76ee938edbbc7 /include/kpl | |
| parent | 7bd050ccf74222e1b659f2fd6826a86e6afbcc94 (diff) | |
tree impl
Diffstat (limited to 'include/kpl')
| -rw-r--r-- | include/kpl/base.h | 2 | ||||
| -rw-r--r-- | include/kpl/tree.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/kpl/base.h b/include/kpl/base.h index 144fd51..9420a44 100644 --- a/include/kpl/base.h +++ b/include/kpl/base.h @@ -11,6 +11,7 @@ #include <stdbool.h> #include <string.h> #include <ctype.h> +#include <limits.h> #include <pthread.h> #include <semaphore.h> #include <fcntl.h> @@ -19,6 +20,7 @@ #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/uio.h> +#include <sys/param.h> #include <linux/fs.h> #include <linux/io_uring.h> // KPL includes diff --git a/include/kpl/tree.h b/include/kpl/tree.h index 8e52524..90de3a8 100644 --- a/include/kpl/tree.h +++ b/include/kpl/tree.h @@ -4,9 +4,9 @@ #pragma once -// tree_duplicate is a linked stack +// tree_duplicates is a linked stack #define KPL_TREE_HEADER(STRUCT_NAME) \ - struct STRUCT_NAME *tree_left, *tree_right, *tree_duplicate; \ + struct STRUCT_NAME *tree_left, *tree_right, *tree_duplicates; \ int32_t tree_height /* |
