File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -49,47 +49,49 @@ typedef struct {
4949typedef struct {
5050#define SUBTREE_3_BYTES \
5151 uint8_t symbol; \
52- uint8_t padding_bytes; \
53- uint8_t size_bytes; \
52+ uint16_t parse_state;
5453
55- #define SUBTREE_6_BITS \
54+ #define SUBTREE_BITS \
5655 bool visible : 1; \
5756 bool named : 1; \
5857 bool extra : 1; \
5958 bool has_changes : 1; \
6059 bool is_missing : 1; \
6160 bool is_keyword : 1;
6261
63- #define SUBTREE_4_BYTES \
62+ #define SUBTREE_SIZE \
6463 uint8_t padding_columns; \
6564 uint8_t padding_rows : 4; \
6665 uint8_t lookahead_bytes : 4; \
67- uint16_t parse_state;
66+ uint8_t padding_bytes; \
67+ uint8_t size_bytes;
6868
6969#if TS_BIG_ENDIAN
7070#if TS_PTR_SIZE == 32
71- SUBTREE_3_BYTES
72- SUBTREE_6_BITS
71+ uint16_t parse_state ;
72+ uint8_t symbol ;
73+ SUBTREE_BITS
7374 bool unused : 1 ;
7475 bool is_inline : 1 ;
75- SUBTREE_4_BYTES
76+ SUBTREE_SIZE
7677#else
77- SUBTREE_4_BYTES
78- SUBTREE_3_BYTES
79- SUBTREE_6_BITS
78+ SUBTREE_SIZE
79+ uint16_t parse_state ;
80+ uint8_t symbol ;
81+ SUBTREE_BITS
8082 bool unused : 1 ;
8183 bool is_inline : 1 ;
8284#endif
8385#else
8486 bool is_inline : 1 ;
85- SUBTREE_6_BITS
86- SUBTREE_3_BYTES
87- SUBTREE_4_BYTES
87+ SUBTREE_BITS
88+ uint8_t symbol ;
89+ uint16_t parse_state ;
90+ SUBTREE_SIZE
8891#endif
8992
90- #undef SUBTREE_3_BYTES
91- #undef SUBTREE_6_BITS
92- #undef SUBTREE_4_BYTES
93+ #undef SUBTREE_BITS
94+ #undef SUBTREE_SIZE
9395} SubtreeInlineData ;
9496
9597// A heap-allocated representation of a subtree.
You can’t perform that action at this time.
0 commit comments