diff options
author | Reuben Thomas <rrt@sc3d.org> | 2010-07-30 23:49:30 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2010-07-30 23:49:30 +0100 |
commit | 718b6985e5f6f9b8c84ed8ee89b6e1830fa6df90 (patch) | |
tree | c8aced4e3939f44b4157b11e2926cb558bac6a40 /src | |
parent | 7b61bf11b40af79c2f5976ef7bcfa43440d2b8e8 (diff) | |
download | lrexlib-718b6985e5f6f9b8c84ed8ee89b6e1830fa6df90.tar.gz |
Remove a couple of eflags which can’t be used as eflags (oops).
Remove the commented-out reverse-search functions and methods (we’ll
use an extra argument to the existing functions and methods instead).
Diffstat (limited to 'src')
-rwxr-xr-x | src/gnu/lgnu.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gnu/lgnu.c b/src/gnu/lgnu.c index cc256dc..97908a5 100755 --- a/src/gnu/lgnu.c +++ b/src/gnu/lgnu.c @@ -155,10 +155,8 @@ static void optsyntax (TArgComp *argC, lua_State *L, int pos) { } static void seteflags (TGnu *ud, TArgExec *argE) { - ud->r.no_sub = (argE->eflags & REG_NOSUB) != 0; ud->r.not_bol = (argE->eflags & REG_NOTBOL) != 0; ud->r.not_eol = (argE->eflags & REG_NOTEOL) != 0; - ud->r.newline_anchor = (argE->eflags & REG_NEWLINE) != 0; } /* @@ -264,8 +262,6 @@ static int Gnu_tostring (lua_State *L) { static flag_pair gnu_flags[] = { - { "no_sub", REG_NOSUB }, - { "newline_anchor", REG_NEWLINE }, { "not_bol", REG_NOTBOL }, { "not_eol", REG_NOTEOL }, /*---------------------------------------------------------------------------*/ @@ -280,9 +276,7 @@ static int Gnu_get_flags (lua_State *L) { static const luaL_reg gnumeta[] = { { "exec", ud_exec }, { "tfind", ud_tfind }, /* old match */ - /* { "trfind", ud_trfind }, */ { "find", ud_find }, - /* { "rfind", ud_rfind }, */ { "match", ud_match }, { "__gc", Gnu_gc }, { "__tostring", Gnu_tostring }, @@ -292,7 +286,6 @@ static const luaL_reg gnumeta[] = { static const luaL_reg rexlib[] = { { "match", match }, { "find", find }, - /* { "rfind", rfind }, */ { "gmatch", gmatch }, { "gsub", gsub }, { "split", split }, |