From 93bf6185048256a5df05986460f233ee65136731 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 15 Aug 2006 16:59:20 -0300 Subject: BUG: there is only one C stack, so nCcalls must be global --- lstate.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 89fc82d1..d96e7b3b 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.24 2006/02/06 18:27:59 roberto Exp roberto $ +** $Id: lstate.h,v 2.25 2006/07/11 15:53:29 roberto Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -69,6 +69,7 @@ typedef struct global_State { stringtable strt; /* hash table for strings */ lua_Alloc frealloc; /* function to reallocate memory */ void *ud; /* auxiliary data to `frealloc' */ + unsigned short nCcalls; /* number of nested C calls */ lu_byte currentwhite; lu_byte gcstate; /* state of garbage collector */ lu_byte emergencygc; /* true when collect was trigged by alloc error */ @@ -112,7 +113,7 @@ struct lua_State { CallInfo *base_ci; /* array of CallInfo's */ int stacksize; int size_ci; /* size of array `base_ci' */ - unsigned short nCcalls; /* number of nested C calls */ + unsigned short baseCcalls; /* number of nested C calls when resuming */ lu_byte hookmask; lu_byte allowhook; int basehookcount; -- cgit v1.2.3-55-g6feb