From f5f24a708ee1d99738d88b3950ca1bbea3394591 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 9 Sep 2015 13:00:07 -0700 Subject: [PATCH] Remove unnecessary named TSTreeOptions struct --- src/runtime/tree.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/runtime/tree.h b/src/runtime/tree.h index 8e304592..65c45324 100644 --- a/src/runtime/tree.h +++ b/src/runtime/tree.h @@ -8,13 +8,6 @@ extern "C" { #include #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; };