From 287b302acb8d925178e9edb800f0a8d18c7d35f6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 23 Sep 2020 10:18:01 -0300 Subject: Revision of stackless implementation - more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit' --- lvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lvm.c') diff --git a/lvm.c b/lvm.c index a232e1e7..eadf66bf 100644 --- a/lvm.c +++ b/lvm.c @@ -1124,7 +1124,7 @@ void luaV_finishOp (lua_State *L) { void luaV_execute (lua_State *L, CallInfo *ci) { - const CallInfo *origci = ci; + CallInfo * const origci = ci; LClosure *cl; TValue *k; StkId base; @@ -1624,7 +1624,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { vmcase(OP_TAILCALL) { int b = GETARG_B(i); /* number of arguments + 1 (function) */ int nparams1 = GETARG_C(i); - /* delat is virtual 'func' - real 'func' (vararg functions) */ + /* delta is virtual 'func' - real 'func' (vararg functions) */ int delta = (nparams1) ? ci->u.l.nextraargs + nparams1 : 0; if (b != 0) L->top = ra + b; @@ -1648,7 +1648,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { updatetrap(ci); updatestack(ci); /* stack may have been relocated */ ci->func -= delta; - luaD_poscall(L, ci, cast_int(L->top - ra)); + luaD_poscall(L, ci, cast_int(L->top - ra)); /* finish caller */ goto ret; } ci->func -= delta; -- cgit v1.2.3-55-g6feb