summaryrefslogtreecommitdiff
path: root/src/pcre
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/pcre
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/pcre')
-rwxr-xr-xsrc/pcre/lpcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcre/lpcre.c b/src/pcre/lpcre.c
index c2162f6..ca31e91 100755
--- a/src/pcre/lpcre.c
+++ b/src/pcre/lpcre.c
@@ -36,7 +36,7 @@ static int getcflags (lua_State *L, int pos);
static void optlocale (TArgComp *argC, lua_State *L, int pos);
#define ALG_OPTLOCALE(a,b,c) optlocale(a,b,c)
-#define ALG_NOMATCH PCRE_ERROR_NOMATCH
+#define ALG_NOMATCH(res) ((res) == PCRE_ERROR_NOMATCH)
#define ALG_ISMATCH(res) ((res) >= 0)
#define ALG_SUBBEG(ud,n) ud->match[n+n]
#define ALG_SUBEND(ud,n) ud->match[n+n+1]