some details related to OLD_ANSI

This commit is contained in:
Roberto Ierusalimschy
1997-12-26 16:38:16 -02:00
parent fada8efd01
commit da96eb2cce
5 changed files with 79 additions and 66 deletions

7
ldo.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.c,v 1.18 1997/12/22 20:57:18 roberto Exp roberto $
** $Id: ldo.c,v 1.19 1997/12/23 12:50:49 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -96,9 +96,8 @@ void luaD_adjusttop (StkId newtop)
*/
void luaD_openstack (int nelems)
{
int i;
for (i=0; i<nelems; i++)
*(L->stack.top-i) = *(L->stack.top-i-1);
luaO_memup(L->stack.top-nelems+1, L->stack.top-nelems,
nelems*sizeof(TObject));
incr_top;
}