aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-18 14:53:12 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-18 14:53:12 -0200
commit3cb343efd644fb771b6d8193406afd49527dc1ec (patch)
treeb9df5fc00aa7f645bd1dbbe79d6776c99c6cafa5 /ltablib.c
parentec0fc1a13bf6082659efeedbdf50b5cc1e69da3d (diff)
downloadlua-3cb343efd644fb771b6d8193406afd49527dc1ec.tar.gz
lua-3cb343efd644fb771b6d8193406afd49527dc1ec.tar.bz2
lua-3cb343efd644fb771b6d8193406afd49527dc1ec.zip
code for error message for 'setn' removed
Diffstat (limited to 'ltablib.c')
-rw-r--r--ltablib.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ltablib.c b/ltablib.c
index 2feffe54..9a089932 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.50 2009/12/07 15:50:27 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.51 2009/12/17 16:20:01 roberto Exp roberto $
3** Library for Table Manipulation 3** Library for Table Manipulation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -90,11 +90,6 @@ static int getn (lua_State *L) {
90} 90}
91 91
92 92
93static int setn (lua_State *L) {
94 return luaL_error(L, LUA_QL("setn") " is obsolete");
95}
96
97
98static int tinsert (lua_State *L) { 93static int tinsert (lua_State *L) {
99 int e = aux_getn(L, 1) + 1; /* first empty element */ 94 int e = aux_getn(L, 1) + 1; /* first empty element */
100 int pos; /* where to insert new element */ 95 int pos; /* where to insert new element */
@@ -304,7 +299,6 @@ static const luaL_Reg tab_funcs[] = {
304 {"insert", tinsert}, 299 {"insert", tinsert},
305 {"pack", pack}, 300 {"pack", pack},
306 {"remove", tremove}, 301 {"remove", tremove},
307 {"setn", setn},
308 {"sort", sort}, 302 {"sort", sort},
309 {NULL, NULL} 303 {NULL, NULL}
310}; 304};