diff options
author | Reuben Thomas <rrt@sc3d.org> | 2010-07-30 17:25:16 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2010-07-30 17:25:16 +0100 |
commit | b7161ee8963352d140cd35f9d26d345d58047227 (patch) | |
tree | c86da1cb1bda5e54d356a27290a24d1246d30747 /src/oniguruma | |
parent | b857ec6784265ac86f55a0a7f17eddc6a4b0525d (diff) | |
download | lrexlib-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-x | src/oniguruma/lonig.c | 2 |
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] |