aboutsummaryrefslogtreecommitdiff
path: root/lptree.h
diff options
context:
space:
mode:
authorSérgio Queiroz <sqmedeiros@gmail.com>2017-12-19 15:03:25 -0300
committerSérgio Queiroz <sqmedeiros@gmail.com>2017-12-19 15:03:25 -0300
commit4cd22aa26a5256009d258e81aa10419199decb39 (patch)
tree746e63cabde72c2e8fd50becb5f023f46e38ddd1 /lptree.h
parent44d16477a2c412ce9d010e2f793558902ffb737f (diff)
downloadlpeglabel-4cd22aa26a5256009d258e81aa10419199decb39.tar.gz
lpeglabel-4cd22aa26a5256009d258e81aa10419199decb39.tar.bz2
lpeglabel-4cd22aa26a5256009d258e81aa10419199decb39.zip
Updating lpprint and removing label related fields from structs
Diffstat (limited to '')
-rw-r--r--lptree.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lptree.h b/lptree.h
index 27aa476..24a9ac7 100644
--- a/lptree.h
+++ b/lptree.h
@@ -51,11 +51,7 @@ typedef struct TTree {
51 unsigned short key; /* key in ktable for Lua data (0 if no key) */ 51 unsigned short key; /* key in ktable for Lua data (0 if no key) */
52 union { 52 union {
53 int n; /* occasional counter */ 53 int n; /* occasional counter */
54 int label; /* labeled failure */ 54 int ps; /* occasional second child */
55 struct { /* labeled failure */
56 int ps; /* occasional second child */
57 int plab; /* occasional label set */
58 } s; /* labeled failure */
59 } u; 55 } u;
60} TTree; 56} TTree;
61 57
@@ -76,7 +72,7 @@ extern const byte numsiblings[];
76 72
77/* access to children */ 73/* access to children */
78#define sib1(t) ((t) + 1) 74#define sib1(t) ((t) + 1)
79#define sib2(t) ((t) + (t)->u.s.ps) 75#define sib2(t) ((t) + (t)->u.ps)
80 76
81 77
82 78