aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-11-19 14:25:51 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-11-19 14:25:51 -0200
commita2eaad5d815ba584ce2756ab9c8b8b4d71984c91 (patch)
treec463a453df7c5c27dc7664c2e0ed1bbcbb36d2f6
parent54771c5afa98a8b1ba40c1ea24d05e16a704ce82 (diff)
downloadlua-a2eaad5d815ba584ce2756ab9c8b8b4d71984c91.tar.gz
lua-a2eaad5d815ba584ce2756ab9c8b8b4d71984c91.tar.bz2
lua-a2eaad5d815ba584ce2756ab9c8b8b4d71984c91.zip
'gfind' was deprecated in 5.1
-rw-r--r--lstrlib.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 090ea711..7ca7ea39 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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
617static 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
623static void add_s (MatchState *ms, luaL_Buffer *b, const char *s, 617static 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},