rename crs_* types to ct_*

This commit is contained in:
Emile Clark-Boman 2025-09-13 11:21:34 +10:00
parent 2d76f8221e
commit 1dd5dd79c8
6 changed files with 75 additions and 75 deletions

View file

@ -5,26 +5,26 @@
/*
*/
static struct crs_node *init_root_node(void) {
static struct ct_node *init_root_node(void) {
WINDOW *rootwin;
rootwin = root_window();
return init_window_node(rootwin);
}
int init_tree(struct crs_tree **const tree) {
*tree = (struct crs_tree *)malloc(sizeof(struct crs_tree));
int init_tree(struct ct_tree **const tree) {
*tree = (struct ct_tree *)malloc(sizeof(struct ct_tree));
(*tree)->root = init_root_node();
return EXIT_SUCCESS;
}
void destroy_tree(struct crs_tree *const tree) {
void destroy_tree(struct ct_tree *const tree) {
destroy_node(tree->root);
endwin();
free(tree);
}
void resize_tree(struct crs_tree *const tree, struct crs_nodedims *const dims) {
void resize_tree(struct ct_tree *const tree, struct ct_dims *const dims) {
resize_node(tree->root, dims);
}