diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 12:53:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 12:53:42 -0300 |
commit | f21e9c172f9f15d8d7501e35635e78dc11f5ff58 (patch) | |
tree | cb50795d8bceff944dd8f7d75626069491d5e8d0 /lbaselib.c | |
parent | 67578ec51f1a3ec2c967f15d370067caf9e0b87b (diff) | |
download | lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.gz lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.bz2 lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.zip |
details
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.175 2005/05/16 21:19:00 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.176 2005/05/17 19:49:15 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 | */ |
@@ -331,13 +331,6 @@ static int luaB_assert (lua_State *L) { | |||
331 | } | 331 | } |
332 | 332 | ||
333 | 333 | ||
334 | static int luaB_getn (lua_State *L) { | ||
335 | luaL_checktype(L, 1, LUA_TTABLE); | ||
336 | lua_pushinteger(L, lua_objsize(L, 1)); | ||
337 | return 1; | ||
338 | } | ||
339 | |||
340 | |||
341 | static int luaB_unpack (lua_State *L) { | 334 | static int luaB_unpack (lua_State *L) { |
342 | int i = luaL_optint(L, 2, 1); | 335 | int i = luaL_optint(L, 2, 1); |
343 | int e = luaL_optint(L, 3, -1); | 336 | int e = luaL_optint(L, 3, -1); |
@@ -454,7 +447,6 @@ static const luaL_reg base_funcs[] = { | |||
454 | {"tostring", luaB_tostring}, | 447 | {"tostring", luaB_tostring}, |
455 | {"type", luaB_type}, | 448 | {"type", luaB_type}, |
456 | {"assert", luaB_assert}, | 449 | {"assert", luaB_assert}, |
457 | {"getn", luaB_getn}, | ||
458 | {"unpack", luaB_unpack}, | 450 | {"unpack", luaB_unpack}, |
459 | {"select", luaB_select}, | 451 | {"select", luaB_select}, |
460 | {"rawequal", luaB_rawequal}, | 452 | {"rawequal", luaB_rawequal}, |