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 | |
| parent | 7bd050ccf74222e1b659f2fd6826a86e6afbcc94 (diff) | |
tree impl
Diffstat (limited to 'include')
| -rw-r--r-- | include/kpl/base.h | 2 | ||||
| -rw-r--r-- | include/kpl/tree.h | 4 | ||||
| -rw-r--r-- | include/kpl_test.h | 2 |
3 files changed, 5 insertions, 3 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 /* diff --git a/include/kpl_test.h b/include/kpl_test.h index a656761..70a99b2 100644 --- a/include/kpl_test.h +++ b/include/kpl_test.h @@ -38,7 +38,7 @@ void _kpl_test_add(kpl_test *_test); // do not call outside KPL_TEST macro #define KPL_TEST(NAME) _KPL_TEST_FN_DEFINITION(NAME); \ static void __attribute__((constructor)) _ ## NAME(void) { \ static kpl_test _test = { \ - .tree_left = NULL, .tree_right = NULL, .tree_duplicate = NULL, \ + .tree_left = NULL, .tree_right = NULL, .tree_duplicates = NULL, \ .tree_height = KPL_TREE_TREE_HEIGHT_INIT, \ .error_line_number = KPL_TEST_ERROR_LINE_NUMBER_INIT, \ .list_next = NULL, \ |
