diff options
Diffstat (limited to 'src/algo.h')
-rwxr-xr-x | src/algo.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -16,6 +16,10 @@ static int generate_error (lua_State *L, const TUserdata *ud, int errcode); # define ALG_OPTLOCALE(a,b,c) #endif +#ifndef ALG_OPTSYNTAX +# define ALG_OPTSYNTAX(a,b,c) +#endif + #ifndef DO_NAMED_SUBPATTERNS #define DO_NAMED_SUBPATTERNS(a,b,c) #endif @@ -113,6 +117,7 @@ static void checkarg_new (lua_State *L, TArgComp *argC) { argC->pattern = luaL_checklstring (L, 1, &argC->patlen); argC->cflags = ALG_GETCFLAGS (L, 2); ALG_OPTLOCALE (argC, L, 3); + ALG_OPTSYNTAX (argC, L, 4); } @@ -132,6 +137,7 @@ static void checkarg_gsub (lua_State *L, TArgComp *argC, TArgExec *argE) { argC->cflags = ALG_GETCFLAGS (L, 5); argE->eflags = luaL_optint (L, 6, ALG_EFLAGS_DFLT); ALG_OPTLOCALE (argC, L, 7); + ALG_OPTSYNTAX (argC, L, 8); } @@ -144,6 +150,7 @@ static void checkarg_find_func (lua_State *L, TArgComp *argC, TArgExec *argE) { argC->cflags = ALG_GETCFLAGS (L, 4); argE->eflags = luaL_optint (L, 5, ALG_EFLAGS_DFLT); ALG_OPTLOCALE (argC, L, 6); + ALG_OPTSYNTAX (argC, L, 7); } @@ -155,6 +162,7 @@ static void checkarg_gmatch_split (lua_State *L, TArgComp *argC, TArgExec *argE) argC->cflags = ALG_GETCFLAGS (L, 3); argE->eflags = luaL_optint (L, 4, ALG_EFLAGS_DFLT); ALG_OPTLOCALE (argC, L, 5); + ALG_OPTSYNTAX (argC, L, 6); } |