Home
last modified time | relevance | path

Searched refs:newasize (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/lua/src/
H A Dltable.c553 void luaH_resize (lua_State *L, Table *t, unsigned int newasize, in luaH_resize() argument
561 if (newasize < oldasize) { /* will array shrink? */ in luaH_resize()
562 t->alimit = newasize; /* pretend array has new size... */ in luaH_resize()
565 for (i = newasize; i < oldasize; i++) { in luaH_resize()
573 newarray = luaM_reallocvector(L, t->array, oldasize, newasize, TValue); in luaH_resize()
574 if (l_unlikely(newarray == NULL && newasize > 0)) { /* allocation failed? */ in luaH_resize()
581 t->alimit = newasize; in luaH_resize()
582 for (i = oldasize; i < newasize; i++) /* clear new slice of the array */ in luaH_resize()