aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-22 13:04:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-22 13:04:29 -0300
commit390256edf77638f747bc11b1b0862e6154ecfbcb (patch)
treead334fdf75a29534f8e7a31f5e1f05b224725a40 /lbaselib.c
parentad24cff0f1108ee8e2c28f72e10da44ea2205c10 (diff)
downloadlua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.gz
lua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.bz2
lua-390256edf77638f747bc11b1b0862e6154ecfbcb.zip
better name for GC pause
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 20dcefe2..ea50cd9c 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.170 2005/03/11 15:51:08 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.171 2005/03/16 16:58:41 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*/
@@ -187,9 +187,9 @@ static int luaB_gcinfo (lua_State *L) {
187 187
188static int luaB_collectgarbage (lua_State *L) { 188static int luaB_collectgarbage (lua_State *L) {
189 static const char *const opts[] = {"stop", "restart", "collect", 189 static const char *const opts[] = {"stop", "restart", "collect",
190 "count", "step", "setpace", "setstepmul", NULL}; 190 "count", "step", "setpause", "setstepmul", NULL};
191 static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, 191 static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT,
192 LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPACE, LUA_GCSETSTEPMUL}; 192 LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL};
193 int o = luaL_findstring(luaL_optstring(L, 1, "collect"), opts); 193 int o = luaL_findstring(luaL_optstring(L, 1, "collect"), opts);
194 int ex = luaL_optinteger(L, 2, 0); 194 int ex = luaL_optinteger(L, 2, 0);
195 luaL_argcheck(L, o >= 0, 1, "invalid option"); 195 luaL_argcheck(L, o >= 0, 1, "invalid option");