summaryrefslogtreecommitdiff
path: root/src/oniguruma
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-07-30 17:25:16 +0100
committerReuben Thomas <rrt@sc3d.org>2010-07-30 17:25:16 +0100
commitb7161ee8963352d140cd35f9d26d345d58047227 (patch)
treec86da1cb1bda5e54d356a27290a24d1246d30747 /src/oniguruma
parentb857ec6784265ac86f55a0a7f17eddc6a4b0525d (diff)
downloadlrexlib-b7161ee8963352d140cd35f9d26d345d58047227.tar.gz
Change ALG_NOMATCH to a macro that takes an argument, like
ALG_ISMATCH, because the GNU API can return two different error codes.
Diffstat (limited to 'src/oniguruma')
-rwxr-xr-xsrc/oniguruma/lonig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oniguruma/lonig.c b/src/oniguruma/lonig.c
index d97cc64..72e5ae0 100755
--- a/src/oniguruma/lonig.c
+++ b/src/oniguruma/lonig.c
@@ -37,7 +37,7 @@ static void optlocale (TArgComp *argC, lua_State *L, int pos);
static void optsyntax (TArgComp *argC, lua_State *L, int pos);
#define ALG_OPTSYNTAX(a,b,c) optsyntax(a,b,c)
-#define ALG_NOMATCH ONIG_MISMATCH
+#define ALG_NOMATCH(res) ((res) == ONIG_MISMATCH)
#define ALG_ISMATCH(res) ((res) >= 0)
#define ALG_SUBBEG(ud,n) ud->region->beg[n]
#define ALG_SUBEND(ud,n) ud->region->end[n]