diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-12-13 10:15:11 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-12-13 10:15:11 -0200 |
| commit | c6254dceffca200e4111f28af4230b6c892ec0d6 (patch) | |
| tree | c9a122ae3c1d28cad4d9f8ed5578a8be18d0a27d /lbaselib.c | |
| parent | a56d889f7225a3cfdfa6dfeb55db2b4ae22f1572 (diff) | |
| download | lua-c6254dceffca200e4111f28af4230b6c892ec0d6.tar.gz lua-c6254dceffca200e4111f28af4230b6c892ec0d6.tar.bz2 lua-c6254dceffca200e4111f28af4230b6c892ec0d6.zip | |
a different option for the GC
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.161 2004/12/06 17:53:42 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.162 2004/12/07 18:31:34 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 | */ |
| @@ -182,9 +182,9 @@ static int luaB_gcinfo (lua_State *L) { | |||
| 182 | 182 | ||
| 183 | static int luaB_collectgarbage (lua_State *L) { | 183 | static int luaB_collectgarbage (lua_State *L) { |
| 184 | static const char *const opts[] = {"stop", "restart", "collect", | 184 | static const char *const opts[] = {"stop", "restart", "collect", |
| 185 | "count", "step", "setstepmul", "setincmode", NULL}; | 185 | "count", "step", "setpace", "setincmode", NULL}; |
| 186 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, | 186 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, |
| 187 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETSTEPMUL, LUA_GCSETINCMODE}; | 187 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPACE, LUA_GCSETINCMODE}; |
| 188 | int o = luaL_findstring(luaL_optstring(L, 1, "collect"), opts); | 188 | int o = luaL_findstring(luaL_optstring(L, 1, "collect"), opts); |
| 189 | int ex = luaL_optint(L, 2, 0); | 189 | int ex = luaL_optint(L, 2, 0); |
| 190 | luaL_argcheck(L, o >= 0, 1, "invalid option"); | 190 | luaL_argcheck(L, o >= 0, 1, "invalid option"); |
