/* Resize the string table. If allocation fails, keep the current size. (This can degrade performance, but any non-zero size should work correctly.)  */
void luaS_resize(lua_State *L, int nsize)
/* Resize the string table. If allocation fails, keep the current size. (This can degrade performance, but any non-zero size should work correctly.)  */
void luaS_resize(lua_State *L, int nsize)
{
    if (nsize < osize)
      tablerehash(tb->hash, nsize, osize);
  }
  else {
    tb->hash = newvect;
    tb->size = nsize;
    if (nsize > osize)
      tablerehash(newvect, osize, nsize);
  }
}