Add function for popping all nodes from the stack

This commit is contained in:
Max Brunsfeld 2016-04-04 11:44:45 -07:00
parent 267092940d
commit 2f3e92c9be
3 changed files with 18 additions and 26 deletions

View file

@ -94,6 +94,8 @@ StackPopResult ts_stack_pop_until(Stack *, int head_index, StackIterateCallback,
StackPopResult ts_stack_pop_pending(Stack *, int head_index);
TreeArray ts_stack_pop_all(Stack *, int head_index);
/*
* Remove the given number of entries from the given head of the stack.
*/