From 542b6cfc02d57e66db7afc23a1d8350ae189e3c6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 10 Jun 2014 15:51:21 -0300 Subject: no need for field 'status' in structure 'CallInfo' (after removal of 'lua_getctx') + field 'old_allowhook' can be packed into a single bit --- lapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 2b874530..36962cf3 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.214 2014/05/15 20:28:39 roberto Exp roberto $ +** $Id: lapi.c,v 2.215 2014/06/10 17:41:38 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -968,9 +968,10 @@ LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, ci->u.c.ctx = ctx; /* save context */ /* save information for error recovery */ ci->extra = savestack(L, c.func); - ci->u.c.old_allowhook = L->allowhook; ci->u.c.old_errfunc = L->errfunc; L->errfunc = func; + if (L->allowhook) + ci->callstatus |= CIST_OAH; /* save original value of 'allowhook' */ /* mark that function may do error recovery */ ci->callstatus |= CIST_YPCALL; luaD_call(L, c.func, nresults, 1); /* do the call */ -- cgit v1.2.3-55-g6feb