Remove unnecessary named TSTreeOptions struct

This commit is contained in:
Max Brunsfeld 2015-09-09 13:00:07 -07:00
parent a2d817f0f0
commit f5f24a708e

View file

@ -8,13 +8,6 @@ extern "C" {
#include <stdbool.h>
#include "tree_sitter/parser.h"
typedef struct {
TSNodeType type : 4;
bool extra : 1;
bool fragile_left : 1;
bool fragile_right : 1;
} TSTreeOptions;
struct TSTree {
struct {
struct TSTree *parent;
@ -31,7 +24,12 @@ struct TSTree {
TSLength padding;
TSLength size;
TSSymbol symbol;
TSTreeOptions options;
struct {
TSNodeType type : 2;
bool extra : 1;
bool fragile_left : 1;
bool fragile_right : 1;
} options;
unsigned short int ref_count;
};