diff options
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 9 |
1 files changed, 1 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.158 2010/11/16 19:14:21 roberto Exp $ | 2 | ** $Id: lstrlib.c,v 1.158 2010/11/16 20:39:41 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -614,12 +614,6 @@ static int gmatch (lua_State *L) { | |||
| 614 | } | 614 | } |
| 615 | 615 | ||
| 616 | 616 | ||
| 617 | static int gfind_nodef (lua_State *L) { | ||
| 618 | return luaL_error(L, LUA_QL("string.gfind") " was renamed to " | ||
| 619 | LUA_QL("string.gmatch")); | ||
| 620 | } | ||
| 621 | |||
| 622 | |||
| 623 | static void add_s (MatchState *ms, luaL_Buffer *b, const char *s, | 617 | static void add_s (MatchState *ms, luaL_Buffer *b, const char *s, |
| 624 | const char *e) { | 618 | const char *e) { |
| 625 | size_t l, i; | 619 | size_t l, i; |
| @@ -912,7 +906,6 @@ static const luaL_Reg strlib[] = { | |||
| 912 | {"dump", str_dump}, | 906 | {"dump", str_dump}, |
| 913 | {"find", str_find}, | 907 | {"find", str_find}, |
| 914 | {"format", str_format}, | 908 | {"format", str_format}, |
| 915 | {"gfind", gfind_nodef}, | ||
| 916 | {"gmatch", gmatch}, | 909 | {"gmatch", gmatch}, |
| 917 | {"gsub", str_gsub}, | 910 | {"gsub", str_gsub}, |
| 918 | {"len", str_len}, | 911 | {"len", str_len}, |
