mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
This reverts commit 55a15c204e
.
This commit is contained in:
parent
6bbb44c165
commit
2bc0901ce3
16 changed files with 20 additions and 557 deletions
13
third_party/lua/ltablib.c
vendored
13
third_party/lua/ltablib.c
vendored
|
@ -401,18 +401,6 @@ static int sort (lua_State *L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int resize (lua_State *L) {
|
||||
/* reserve capacity of the array part -- useful when filling large tables/arrays */
|
||||
int size;
|
||||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
size = luaL_checkinteger(L, 2);
|
||||
luaL_argcheck(L, size >= 0, 2, "invalid size");
|
||||
lua_resize(L, 1, (unsigned int)size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
|
@ -424,7 +412,6 @@ static const luaL_Reg tab_funcs[] = {
|
|||
{"remove", tremove},
|
||||
{"move", tmove},
|
||||
{"sort", sort},
|
||||
{"resize", resize},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue