Add pseudo-refcounting to tree creation.
This commit is contained in:
@@ -67,8 +67,6 @@ enum libab_lexer_token_e {
|
||||
TOKEN_KW_ARROW,
|
||||
TOKEN_KW_FUN,
|
||||
TOKEN_KW_RETURN,
|
||||
TOKEN_KW_LET,
|
||||
TOKEN_KW_BE,
|
||||
TOKEN_LAST
|
||||
};
|
||||
|
||||
|
||||
@@ -119,5 +119,11 @@ int libab_tree_has_vector(libab_tree_variant var);
|
||||
* @param tree the tree to free.
|
||||
*/
|
||||
void libab_tree_free_recursive(libab_tree* tree);
|
||||
/**
|
||||
* Frees the tree, taking into account reference-counted
|
||||
* nodes.
|
||||
* @param tree the tree to free.
|
||||
*/
|
||||
void libab_tree_refcount_free(libab_tree* tree);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user