small optimizations

This commit is contained in:
Roberto Ierusalimschy
2001-12-20 19:26:52 -02:00
parent 18afb90349
commit 42754c0f15
4 changed files with 18 additions and 29 deletions

10
ldo.c
View File

@@ -68,16 +68,6 @@ void luaD_stackerror (lua_State *L) {
}
/*
** adjust top to new value; assume that new top is valid
*/
void luaD_adjusttop (lua_State *L, StkId newtop) {
while (L->top < newtop)
setnilvalue(L->top++);
L->top = newtop; /* `newtop' could be lower than `top' */
}
/*
** Open a hole inside the stack at `pos'
*/