Clean up tree array assertions in stack spec

This commit is contained in:
Max Brunsfeld 2016-02-22 09:23:25 -08:00
parent b113dc8b0f
commit f444a715fd
5 changed files with 29 additions and 46 deletions

View file

@ -7,6 +7,7 @@ extern "C" {
#include "tree_sitter/parser.h"
#include "runtime/array.h"
#include "runtime/tree.h"
typedef struct Stack Stack;
@ -16,8 +17,6 @@ typedef struct {
TSLength position;
} StackEntry;
typedef Array(TSTree *) TreeArray;
typedef struct {
TreeArray trees;
int head_index;