new way to control stack overflow, controling only total size of the stack

This commit is contained in:
Roberto Ierusalimschy
2009-07-15 14:26:14 -03:00
parent abb85fc059
commit f76f4cb79d
10 changed files with 100 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.44 2009/06/01 19:09:26 roberto Exp roberto $
** $Id: lstate.h,v 2.45 2009/06/18 18:59:18 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -163,7 +163,6 @@ struct lua_State {
StkId top; /* first free slot in the stack */
global_State *l_G;
CallInfo *ci; /* call info for current function */
int nci; /* number of total CallInfo structures linked */
const Instruction *oldpc; /* last pc traced */
StkId stack_last; /* last free slot in the stack */
StkId stack; /* stack base */