Replace stack_merge_new function with two simpler functions

- merge(version1, version2)
- split(version)
This commit is contained in:
Max Brunsfeld 2016-05-28 21:22:10 -07:00
parent e686478ad2
commit 6535704870
4 changed files with 42 additions and 42 deletions

View file

@ -127,7 +127,7 @@ describe("Stack", [&]() {
// ↑
// └───2─── C*
ts_stack_push(stack, 0, trees[0], false, stateA);
ts_stack_pop_count(stack, 0, 0);
ts_stack_split(stack, 0);
ts_stack_push(stack, 0, trees[1], false, stateB);
ts_stack_push(stack, 1, trees[2], false, stateC);
});