aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-19 14:02:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-19 14:02:02 -0300
commitcca71912e6c884c7a2fcf45c19d15e5d69810c97 (patch)
tree9503aecb566031eb02ae447acf6df15a64d7fb91
parent8003e9544d92101c3fbb8220efe18cc135e8c380 (diff)
downloadlua-cca71912e6c884c7a2fcf45c19d15e5d69810c97.tar.gz
lua-cca71912e6c884c7a2fcf45c19d15e5d69810c97.tar.bz2
lua-cca71912e6c884c7a2fcf45c19d15e5d69810c97.zip
'gcinfo' was deprecated in version 5.0.
-rw-r--r--lbaselib.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 3b9225e2..d9669dfc 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.241 2010/04/02 15:19:19 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.242 2010/04/19 16:36:06 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -140,12 +140,6 @@ static int luaB_rawset (lua_State *L) {
140} 140}
141 141
142 142
143static int luaB_gcinfo (lua_State *L) {
144 lua_pushinteger(L, lua_gc(L, LUA_GCCOUNT, 0));
145 return 1;
146}
147
148
149static int luaB_collectgarbage (lua_State *L) { 143static int luaB_collectgarbage (lua_State *L) {
150 static const char *const opts[] = {"stop", "restart", "collect", 144 static const char *const opts[] = {"stop", "restart", "collect",
151 "count", "step", "setpause", "setstepmul", "isrunning", 145 "count", "step", "setpause", "setstepmul", "isrunning",
@@ -481,7 +475,6 @@ static const luaL_Reg base_funcs[] = {
481 {"collectgarbage", luaB_collectgarbage}, 475 {"collectgarbage", luaB_collectgarbage},
482 {"dofile", luaB_dofile}, 476 {"dofile", luaB_dofile},
483 {"error", luaB_error}, 477 {"error", luaB_error},
484 {"gcinfo", luaB_gcinfo},
485 {"getfenv", luaB_getfenv}, 478 {"getfenv", luaB_getfenv},
486 {"getmetatable", luaB_getmetatable}, 479 {"getmetatable", luaB_getmetatable},
487 {"ipairs", luaB_ipairs}, 480 {"ipairs", luaB_ipairs},