aboutsummaryrefslogtreecommitdiff
path: root/lptypes.h
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2017-01-03 10:02:52 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2017-01-03 10:02:52 -0300
commitc6277dabce8428b49ff5df63b515c68a0386d9da (patch)
tree36c6ae8ace4f1da3c8342324b415cfef2a50b750 /lptypes.h
parent2e5820c37e4e6cb2a2c01863619abd19eb5a8199 (diff)
downloadlpeglabel-c6277dabce8428b49ff5df63b515c68a0386d9da.tar.gz
lpeglabel-c6277dabce8428b49ff5df63b515c68a0386d9da.tar.bz2
lpeglabel-c6277dabce8428b49ff5df63b515c68a0386d9da.zip
Tracking the farthest failure position in case of a regular fail
Diffstat (limited to 'lptypes.h')
-rw-r--r--lptypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lptypes.h b/lptypes.h
index dc4ada6..81f0fdc 100644
--- a/lptypes.h
+++ b/lptypes.h
@@ -161,6 +161,10 @@ typedef Charset Labelset;
161#define IDXLFAIL 0 161#define IDXLFAIL 0
162 162
163#define LFAIL 0 163#define LFAIL 0
164
165/* update the farthest failure */
166#define updatefarthest(s1,s2) { if ((s2) > (s1)) s1 = s2; }
167
164/* labeled failure end */ 168/* labeled failure end */
165 169
166#endif 170#endif