From 394646891cc406ce2a0f1586409c043c9caeab4e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Aug 2008 14:01:33 -0300 Subject: new field 'status' in CallInfo structure --- lstate.c | 3 ++- lstate.h | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lstate.c b/lstate.c index 8a672eb8..b88f49a4 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.44 2008/02/19 18:55:09 roberto Exp roberto $ +** $Id: lstate.c,v 2.45 2008/06/26 19:42:45 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -56,6 +56,7 @@ static void stack_init (lua_State *L1, lua_State *L) { setnilvalue(L1->top++); /* `function' entry for this `ci' */ L1->base = L1->ci->base = L1->top; L1->ci->top = L1->top + LUA_MINSTACK; + L1->ci->status = 0; } diff --git a/lstate.h b/lstate.h index dec27d24..b34bb163 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.33 2008/06/23 16:51:08 roberto Exp roberto $ +** $Id: lstate.h,v 2.34 2008/06/26 19:42:45 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -81,7 +81,8 @@ typedef struct CallInfo { StkId func; /* function index in the stack */ StkId top; /* top for this function */ const Instruction *savedpc; - int nresults; /* expected number of results from this function */ + short nresults; /* expected number of results from this function */ + lu_byte status; int tailcalls; /* number of tail calls lost under this entry */ } CallInfo; -- cgit v1.2.3-55-g6feb