nonbinary-tree(TM) now works in a very minimal instance

This commit is contained in:
Emile Clark-Boman 2025-09-16 16:48:02 +10:00
parent 330755591b
commit b16590fd5a
15 changed files with 132 additions and 216 deletions

View file

@ -6,7 +6,7 @@
/*
*/
static inline struct ct_node *__root_node(void) {
return new_node(termdims(), bounds_none(), NULL);
return __node(termdims(), bounds_none(), NULL);
}
int init_tree(struct ct_tree **const tree) {
@ -16,7 +16,7 @@ int init_tree(struct ct_tree **const tree) {
}
void destroy_tree(struct ct_tree *const tree) {
destroy_node(tree->root);
__destroy_node(tree->root);
end_ncurses();
free(tree);
}