diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2017-01-03 10:02:52 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2017-01-03 10:02:52 -0300 |
commit | c6277dabce8428b49ff5df63b515c68a0386d9da (patch) | |
tree | 36c6ae8ace4f1da3c8342324b415cfef2a50b750 /lptypes.h | |
parent | 2e5820c37e4e6cb2a2c01863619abd19eb5a8199 (diff) | |
download | lpeglabel-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |