diff options
Diffstat (limited to 'lbaselib.c')
| -rw-r--r-- | lbaselib.c | 20 |
1 files changed, 1 insertions, 19 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.321 2018/02/27 17:48:28 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.322 2018/02/27 18:47:32 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 | */ |
| @@ -170,22 +170,6 @@ static int luaB_rawset (lua_State *L) { | |||
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | 172 | ||
| 173 | static int luaB_keyin (lua_State *L) { | ||
| 174 | luaL_checkany(L, 2); /* ensures a first argument too */ | ||
| 175 | lua_settop(L, 2); | ||
| 176 | lua_pushboolean(L, lua_keyin(L, 1)); | ||
| 177 | return 1; | ||
| 178 | } | ||
| 179 | |||
| 180 | |||
| 181 | static int luaB_removekey (lua_State *L) { | ||
| 182 | luaL_checkany(L, 2); /* ensures a first argument too */ | ||
| 183 | lua_settop(L, 2); | ||
| 184 | lua_removekey(L, 1); | ||
| 185 | return 0; | ||
| 186 | } | ||
| 187 | |||
| 188 | |||
| 189 | static int pushmode (lua_State *L, int oldmode) { | 173 | static int pushmode (lua_State *L, int oldmode) { |
| 190 | lua_pushstring(L, (oldmode == LUA_GCINC) ? "incremental" : "generational"); | 174 | lua_pushstring(L, (oldmode == LUA_GCINC) ? "incremental" : "generational"); |
| 191 | return 1; | 175 | return 1; |
| @@ -503,8 +487,6 @@ static const luaL_Reg base_funcs[] = { | |||
| 503 | {"rawlen", luaB_rawlen}, | 487 | {"rawlen", luaB_rawlen}, |
| 504 | {"rawget", luaB_rawget}, | 488 | {"rawget", luaB_rawget}, |
| 505 | {"rawset", luaB_rawset}, | 489 | {"rawset", luaB_rawset}, |
| 506 | {"keyin", luaB_keyin}, | ||
| 507 | {"removekey", luaB_removekey}, | ||
| 508 | {"select", luaB_select}, | 490 | {"select", luaB_select}, |
| 509 | {"setmetatable", luaB_setmetatable}, | 491 | {"setmetatable", luaB_setmetatable}, |
| 510 | {"tonumber", luaB_tonumber}, | 492 | {"tonumber", luaB_tonumber}, |
