diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-19 14:25:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-19 14:25:51 -0200 |
commit | a2eaad5d815ba584ce2756ab9c8b8b4d71984c91 (patch) | |
tree | c463a453df7c5c27dc7664c2e0ed1bbcbb36d2f6 | |
parent | 54771c5afa98a8b1ba40c1ea24d05e16a704ce82 (diff) | |
download | lua-a2eaad5d815ba584ce2756ab9c8b8b4d71984c91.tar.gz lua-a2eaad5d815ba584ce2756ab9c8b8b4d71984c91.tar.bz2 lua-a2eaad5d815ba584ce2756ab9c8b8b4d71984c91.zip |
'gfind' was deprecated in 5.1
-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}, |