Handle allocation failures when copying tree arrays

This commit is contained in:
Max Brunsfeld 2016-06-14 14:46:49 -07:00
parent f77c08eff5
commit 2109f0ed74
4 changed files with 22 additions and 18 deletions

View file

@ -46,7 +46,7 @@ typedef struct TSTree {
} TSTree;
typedef Array(TSTree *) TreeArray;
TreeArray ts_tree_array_copy(TreeArray *);
bool ts_tree_array_copy(TreeArray, TreeArray *);
void ts_tree_array_delete(TreeArray *);
size_t ts_tree_array_essential_count(const TreeArray *);