mirror of https://github.com/rusefi/lua.git
code for error message for 'setn' removed
This commit is contained in:
parent
ec0fc1a13b
commit
3cb343efd6
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: ltablib.c,v 1.50 2009/12/07 15:50:27 roberto Exp roberto $
|
** $Id: ltablib.c,v 1.51 2009/12/17 16:20:01 roberto Exp roberto $
|
||||||
** Library for Table Manipulation
|
** Library for Table Manipulation
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -90,11 +90,6 @@ static int getn (lua_State *L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int setn (lua_State *L) {
|
|
||||||
return luaL_error(L, LUA_QL("setn") " is obsolete");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int tinsert (lua_State *L) {
|
static int tinsert (lua_State *L) {
|
||||||
int e = aux_getn(L, 1) + 1; /* first empty element */
|
int e = aux_getn(L, 1) + 1; /* first empty element */
|
||||||
int pos; /* where to insert new element */
|
int pos; /* where to insert new element */
|
||||||
|
@ -304,7 +299,6 @@ static const luaL_Reg tab_funcs[] = {
|
||||||
{"insert", tinsert},
|
{"insert", tinsert},
|
||||||
{"pack", pack},
|
{"pack", pack},
|
||||||
{"remove", tremove},
|
{"remove", tremove},
|
||||||
{"setn", setn},
|
|
||||||
{"sort", sort},
|
{"sort", sort},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue