'gfind' was deprecated in 5.1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lstrlib.c,v 1.158 2010/11/16 19:14:21 roberto Exp $
|
** $Id: lstrlib.c,v 1.158 2010/11/16 20:39:41 roberto Exp roberto $
|
||||||
** Standard library for string operations and pattern-matching
|
** Standard library for string operations and pattern-matching
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -614,12 +614,6 @@ static int gmatch (lua_State *L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int gfind_nodef (lua_State *L) {
|
|
||||||
return luaL_error(L, LUA_QL("string.gfind") " was renamed to "
|
|
||||||
LUA_QL("string.gmatch"));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void add_s (MatchState *ms, luaL_Buffer *b, const char *s,
|
static void add_s (MatchState *ms, luaL_Buffer *b, const char *s,
|
||||||
const char *e) {
|
const char *e) {
|
||||||
size_t l, i;
|
size_t l, i;
|
||||||
@@ -912,7 +906,6 @@ static const luaL_Reg strlib[] = {
|
|||||||
{"dump", str_dump},
|
{"dump", str_dump},
|
||||||
{"find", str_find},
|
{"find", str_find},
|
||||||
{"format", str_format},
|
{"format", str_format},
|
||||||
{"gfind", gfind_nodef},
|
|
||||||
{"gmatch", gmatch},
|
{"gmatch", gmatch},
|
||||||
{"gsub", str_gsub},
|
{"gsub", str_gsub},
|
||||||
{"len", str_len},
|
{"len", str_len},
|
||||||
|
|||||||
Reference in New Issue
Block a user