diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-22 13:04:29 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-22 13:04:29 -0300 |
| commit | 390256edf77638f747bc11b1b0862e6154ecfbcb (patch) | |
| tree | ad334fdf75a29534f8e7a31f5e1f05b224725a40 /lbaselib.c | |
| parent | ad24cff0f1108ee8e2c28f72e10da44ea2205c10 (diff) | |
| download | lua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.gz lua-390256edf77638f747bc11b1b0862e6154ecfbcb.tar.bz2 lua-390256edf77638f747bc11b1b0862e6154ecfbcb.zip | |
better name for GC pause
Diffstat (limited to 'lbaselib.c')
| -rw-r--r-- | lbaselib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||
| 188 | static int luaB_collectgarbage (lua_State *L) { | 188 | static 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"); |
