no more L->base + ci->base only for Lua functions (C functions may use

'func')
This commit is contained in:
Roberto Ierusalimschy
2009-06-01 16:09:26 -03:00
parent 57f8414de1
commit 9423e22aa3
7 changed files with 82 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.53 2009/04/17 22:00:01 roberto Exp roberto $
** $Id: lstate.c,v 2.54 2009/04/28 19:04:36 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -86,7 +86,6 @@ static void stack_init (lua_State *L1, lua_State *L) {
/* initialize first ci */
L1->ci->func = L1->top;
setnilvalue(L1->top++); /* 'function' entry for this 'ci' */
L1->base = L1->ci->base = L1->top;
L1->ci->top = L1->top + LUA_MINSTACK;
L1->ci->callstatus = 0;
}