change ct_term internal interface

This commit is contained in:
do butterflies cry? 2025-09-28 00:06:40 +10:00
parent 17d763c597
commit 866fd14b51
3 changed files with 50 additions and 34 deletions

8
src/ct_alloc.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef CURSETREE_ALLOC_H
#define CURSETREE_ALLOC_H
#include <stdlib.h>
#define CT_ALLOC(type, count) ((type *)malloc(sizeof(type) * count))
#endif /* CURSETREE_ALLOC_H */