aboutsummaryrefslogtreecommitdiff
path: root/lptypes.h
diff options
context:
space:
mode:
authorSérgio Queiroz <sqmedeiros@gmail.com>2017-12-28 15:45:29 -0300
committerSérgio Queiroz <sqmedeiros@gmail.com>2017-12-28 15:45:29 -0300
commit261e41117c2ec8d50b9aff1ecaaa701d2af5c211 (patch)
tree834bdb33f8bad3692c392d96daca15218420dd0d /lptypes.h
parent59da25ff241a83d8139e41199ef7a23f6e17fa65 (diff)
downloadlpeglabel-261e41117c2ec8d50b9aff1ecaaa701d2af5c211.tar.gz
lpeglabel-261e41117c2ec8d50b9aff1ecaaa701d2af5c211.tar.bz2
lpeglabel-261e41117c2ec8d50b9aff1ecaaa701d2af5c211.zip
When matching a predicate, the position of the farthest failure may not be the subject position where the predicate started to match
Diffstat (limited to 'lptypes.h')
-rw-r--r--lptypes.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lptypes.h b/lptypes.h
index d523e27..6158be1 100644
--- a/lptypes.h
+++ b/lptypes.h
@@ -150,11 +150,9 @@ typedef struct Charset {
150/* update the farthest failure */ 150/* update the farthest failure */
151#define updatefarthest(s1,s2) { if ((s2) > (s1)) s1 = s2; } 151#define updatefarthest(s1,s2) { if ((s2) > (s1)) s1 = s2; }
152 152
153/* indicate whether the machine is matching a predicate or not */
154#define OUTPRED 0 153#define OUTPRED 0
155#define NOTPRED 1
156#define ANDPRED 2
157 154
155#define INPRED 1
158/* labeled failure end */ 156/* labeled failure end */
159 157
160#endif 158#endif