Use explicit stack for assigning trees' parent pointers

This commit is contained in:
Max Brunsfeld 2016-09-14 09:46:41 -07:00
parent 00528e50ce
commit fcf9293d35
4 changed files with 24 additions and 19 deletions

View file

@ -67,7 +67,7 @@ int ts_tree_compare(const TSTree *tree1, const TSTree *tree2);
size_t ts_tree_start_column(const TSTree *self);
size_t ts_tree_end_column(const TSTree *self);
void ts_tree_set_children(TSTree *, size_t, TSTree **);
void ts_tree_assign_parents(TSTree *);
bool ts_tree_assign_parents(TSTree *, TreeArray *);
void ts_tree_edit(TSTree *, const TSInputEdit *edit);
char *ts_tree_string(const TSTree *, const TSLanguage *, bool include_all);
void ts_tree_print_dot_graph(const TSTree *, const TSLanguage *, FILE *);