Lines Matching +full:- +full:l
43 ** Error-recovery functions
58 #define LUAI_THROW(L,c) throw(c) argument
59 #define LUAI_TRY(L,c,a) \ argument
60 try { a } catch(...) { if ((c)->status == 0) (c)->status = -1; }
66 #define LUAI_THROW(L,c) _longjmp((c)->b, 1) argument
67 #define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a } argument
73 #define LUAI_THROW(L,c) longjmp((c)->b, 1) argument
74 #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } argument
91 static void seterrorobj (lua_State *L, int errcode, StkId oldtop) { in seterrorobj() argument
94 setsvalue2s(L, oldtop, G(L)->memerrmsg); /* reuse preregistered msg. */ in seterrorobj()
98 setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling")); in seterrorobj()
102 setobjs2s(L, oldtop, L->top - 1); /* error message on current top */ in seterrorobj()
106 L->top = oldtop + 1; in seterrorobj()
110 l_noret luaD_throw (lua_State *L, int errcode) { in luaD_throw() argument
111 if (L->errorJmp) { /* thread has an error handler? */ in luaD_throw()
112 L->errorJmp->status = errcode; /* set status */ in luaD_throw()
113 LUAI_THROW(L, L->errorJmp); /* jump to it */ in luaD_throw()
116 global_State *g = G(L); in luaD_throw()
117 L->status = cast_byte(errcode); /* mark it as dead */ in luaD_throw()
118 if (g->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()
119 setobjs2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()
120 luaD_throw(g->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()
123 if (g->panic) { /* panic function? */ in luaD_throw()
124 seterrorobj(L, errcode, L->top); /* assume EXTRA_STACK */ in luaD_throw()
125 if (L->ci->top < L->top) in luaD_throw()
126 L->ci->top = L->top; /* pushing msg. can break this invariant */ in luaD_throw()
127 lua_unlock(L); in luaD_throw()
128 g->panic(L); /* call panic function (last chance to jump out) */ in luaD_throw()
136 int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { in luaD_rawrunprotected() argument
137 unsigned short oldnCcalls = L->nCcalls; in luaD_rawrunprotected()
140 lj.previous = L->errorJmp; /* chain new error handler */ in luaD_rawrunprotected()
141 L->errorJmp = &lj; in luaD_rawrunprotected()
142 LUAI_TRY(L, &lj, in luaD_rawrunprotected()
143 (*f)(L, ud); in luaD_rawrunprotected()
145 L->errorJmp = lj.previous; /* restore old error handler */ in luaD_rawrunprotected()
146 L->nCcalls = oldnCcalls; in luaD_rawrunprotected()
158 static void correctstack (lua_State *L, TValue *oldstack) { in correctstack() argument
161 L->top = (L->top - oldstack) + L->stack; in correctstack()
162 for (up = L->openupval; up != NULL; up = up->u.open.next) in correctstack()
163 up->v = (up->v - oldstack) + L->stack; in correctstack()
164 for (ci = L->ci; ci != NULL; ci = ci->previous) { in correctstack()
165 ci->top = (ci->top - oldstack) + L->stack; in correctstack()
166 ci->func = (ci->func - oldstack) + L->stack; in correctstack()
168 ci->u.l.base = (ci->u.l.base - oldstack) + L->stack; in correctstack()
177 void luaD_reallocstack (lua_State *L, int newsize) { in luaD_reallocstack() argument
178 TValue *oldstack = L->stack; in luaD_reallocstack()
179 int lim = L->stacksize; in luaD_reallocstack()
181 lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK); in luaD_reallocstack()
182 luaM_reallocvector(L, L->stack, L->stacksize, newsize, TValue); in luaD_reallocstack()
184 setnilvalue(L->stack + lim); /* erase new segment */ in luaD_reallocstack()
185 L->stacksize = newsize; in luaD_reallocstack()
186 L->stack_last = L->stack + newsize - EXTRA_STACK; in luaD_reallocstack()
187 correctstack(L, oldstack); in luaD_reallocstack()
191 void luaD_growstack (lua_State *L, int n) { in luaD_growstack() argument
192 int size = L->stacksize; in luaD_growstack()
194 luaD_throw(L, LUA_ERRERR); in luaD_growstack()
196 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; in luaD_growstack()
201 luaD_reallocstack(L, ERRORSTACKSIZE); in luaD_growstack()
202 luaG_runerror(L, "stack overflow"); in luaD_growstack()
205 luaD_reallocstack(L, newsize); in luaD_growstack()
210 static int stackinuse (lua_State *L) { in stackinuse() argument
212 StkId lim = L->top; in stackinuse()
213 for (ci = L->ci; ci != NULL; ci = ci->previous) { in stackinuse()
214 if (lim < ci->top) lim = ci->top; in stackinuse()
216 lua_assert(lim <= L->stack_last); in stackinuse()
217 return cast_int(lim - L->stack) + 1; /* part of stack in use */ in stackinuse()
221 void luaD_shrinkstack (lua_State *L) { in luaD_shrinkstack() argument
222 int inuse = stackinuse(L); in luaD_shrinkstack()
226 if (L->stacksize > LUAI_MAXSTACK) /* had been handling stack overflow? */ in luaD_shrinkstack()
227 luaE_freeCI(L); /* free all CIs (list grew because of an error) */ in luaD_shrinkstack()
229 luaE_shrinkCI(L); /* shrink list */ in luaD_shrinkstack()
232 if (inuse <= (LUAI_MAXSTACK - EXTRA_STACK) && in luaD_shrinkstack()
233 goodsize < L->stacksize) in luaD_shrinkstack()
234 luaD_reallocstack(L, goodsize); in luaD_shrinkstack()
236 condmovestack(L,{},{}); /* (change only for debugging) */ in luaD_shrinkstack()
240 void luaD_inctop (lua_State *L) { in luaD_inctop() argument
241 luaD_checkstack(L, 1); in luaD_inctop()
242 L->top++; in luaD_inctop()
250 ** called. (Both 'L->hook' and 'L->hookmask', which triggers this
253 void luaD_hook (lua_State *L, int event, int line) { in luaD_hook() argument
254 lua_Hook hook = L->hook; in luaD_hook()
255 if (hook && L->allowhook) { /* make sure there is a hook */ in luaD_hook()
256 CallInfo *ci = L->ci; in luaD_hook()
257 ptrdiff_t top = savestack(L, L->top); in luaD_hook()
258 ptrdiff_t ci_top = savestack(L, ci->top); in luaD_hook()
263 luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */ in luaD_hook()
264 ci->top = L->top + LUA_MINSTACK; in luaD_hook()
265 lua_assert(ci->top <= L->stack_last); in luaD_hook()
266 L->allowhook = 0; /* cannot call hooks inside a hook */ in luaD_hook()
267 ci->callstatus |= CIST_HOOKED; in luaD_hook()
268 lua_unlock(L); in luaD_hook()
269 (*hook)(L, &ar); in luaD_hook()
270 lua_lock(L); in luaD_hook()
271 lua_assert(!L->allowhook); in luaD_hook()
272 L->allowhook = 1; in luaD_hook()
273 ci->top = restorestack(L, ci_top); in luaD_hook()
274 L->top = restorestack(L, top); in luaD_hook()
275 ci->callstatus &= ~CIST_HOOKED; in luaD_hook()
280 static void callhook (lua_State *L, CallInfo *ci) { in callhook() argument
282 ci->u.l.savedpc++; /* hooks assume 'pc' is already incremented */ in callhook()
283 if (isLua(ci->previous) && in callhook()
284 GET_OPCODE(*(ci->previous->u.l.savedpc - 1)) == OP_TAILCALL) { in callhook()
285 ci->callstatus |= CIST_TAIL; in callhook()
288 luaD_hook(L, hook, -1); in callhook()
289 ci->u.l.savedpc--; /* correct 'pc' */ in callhook()
293 static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { in adjust_varargs() argument
295 int nfixargs = p->numparams; in adjust_varargs()
298 fixed = L->top - actual; /* first fixed argument */ in adjust_varargs()
299 base = L->top; /* final position of first argument */ in adjust_varargs()
301 setobjs2s(L, L->top++, fixed + i); in adjust_varargs()
305 setnilvalue(L->top++); /* complete missing arguments */ in adjust_varargs()
315 static void tryfuncTM (lua_State *L, StkId func) { in tryfuncTM() argument
316 const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); in tryfuncTM()
319 luaG_typeerror(L, func, "call"); in tryfuncTM()
321 for (p = L->top; p > func; p--) in tryfuncTM()
322 setobjs2s(L, p, p-1); in tryfuncTM()
323 L->top++; /* slot ensured by caller */ in tryfuncTM()
324 setobj2s(L, func, tm); /* tag method is the new function to be called */ in tryfuncTM()
334 static int moveresults (lua_State *L, const TValue *firstResult, StkId res, in moveresults() argument
341 setobjs2s(L, res, firstResult); /* move it to proper place */ in moveresults()
347 setobjs2s(L, res + i, firstResult + i); in moveresults()
348 L->top = res + nres; in moveresults()
355 setobjs2s(L, res + i, firstResult + i); in moveresults()
359 setobjs2s(L, res + i, firstResult + i); in moveresults()
366 L->top = res + wanted; /* top points after the last result */ in moveresults()
376 int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, int nres) { in luaD_poscall() argument
378 int wanted = ci->nresults; in luaD_poscall()
379 if (L->hookmask & (LUA_MASKRET | LUA_MASKLINE)) { in luaD_poscall()
380 if (L->hookmask & LUA_MASKRET) { in luaD_poscall()
381 ptrdiff_t fr = savestack(L, firstResult); /* hook may change stack */ in luaD_poscall()
382 luaD_hook(L, LUA_HOOKRET, -1); in luaD_poscall()
383 firstResult = restorestack(L, fr); in luaD_poscall()
385 L->oldpc = ci->previous->u.l.savedpc; /* 'oldpc' for caller function */ in luaD_poscall()
387 res = ci->func; /* res == final position of 1st result */ in luaD_poscall()
388 L->ci = ci->previous; /* back to caller */ in luaD_poscall()
390 return moveresults(L, firstResult, res, nres, wanted); in luaD_poscall()
395 #define next_ci(L) (L->ci = (L->ci->next ? L->ci->next : luaE_extendCI(L))) argument
399 #define checkstackp(L,n,p) \ argument
400 luaD_checkstackaux(L, n, \
401 ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
402 luaC_checkGC(L), /* stack grow uses memory */ \
403 p = restorestack(L, t__)) /* 'pos' part: restore 'p' */
413 int luaD_precall (lua_State *L, StkId func, int nresults) { in luaD_precall() argument
418 f = clCvalue(func)->f; in luaD_precall()
424 checkstackp(L, LUA_MINSTACK, func); /* ensure minimum stack size */ in luaD_precall()
425 ci = next_ci(L); /* now 'enter' new function */ in luaD_precall()
426 ci->nresults = nresults; in luaD_precall()
427 ci->func = func; in luaD_precall()
428 ci->top = L->top + LUA_MINSTACK; in luaD_precall()
429 lua_assert(ci->top <= L->stack_last); in luaD_precall()
430 ci->callstatus = 0; in luaD_precall()
431 if (L->hookmask & LUA_MASKCALL) in luaD_precall()
432 luaD_hook(L, LUA_HOOKCALL, -1); in luaD_precall()
433 lua_unlock(L); in luaD_precall()
434 n = (*f)(L); /* do the actual call */ in luaD_precall()
435 lua_lock(L); in luaD_precall()
436 api_checknelems(L, n); in luaD_precall()
437 luaD_poscall(L, ci, L->top - n, n); in luaD_precall()
442 Proto *p = clLvalue(func)->p; in luaD_precall()
443 int n = cast_int(L->top - func) - 1; /* number of real arguments */ in luaD_precall()
444 int fsize = p->maxstacksize; /* frame size */ in luaD_precall()
445 checkstackp(L, fsize, func); in luaD_precall()
446 if (p->is_vararg) in luaD_precall()
447 base = adjust_varargs(L, p, n); in luaD_precall()
449 for (; n < p->numparams; n++) in luaD_precall()
450 setnilvalue(L->top++); /* complete missing arguments */ in luaD_precall()
453 ci = next_ci(L); /* now 'enter' new function */ in luaD_precall()
454 ci->nresults = nresults; in luaD_precall()
455 ci->func = func; in luaD_precall()
456 ci->u.l.base = base; in luaD_precall()
457 L->top = ci->top = base + fsize; in luaD_precall()
458 lua_assert(ci->top <= L->stack_last); in luaD_precall()
459 ci->u.l.savedpc = p->code; /* starting point */ in luaD_precall()
460 ci->callstatus = CIST_LUA; in luaD_precall()
461 if (L->hookmask & LUA_MASKCALL) in luaD_precall()
462 callhook(L, ci); in luaD_precall()
466 checkstackp(L, 1, func); /* ensure space for metamethod */ in luaD_precall()
467 tryfuncTM(L, func); /* try to get '__call' metamethod */ in luaD_precall()
468 return luaD_precall(L, func, nresults); /* now it must be a function */ in luaD_precall()
481 static void stackerror (lua_State *L) { in stackerror() argument
482 if (L->nCcalls == LUAI_MAXCCALLS) in stackerror()
483 luaG_runerror(L, "C stack overflow"); in stackerror()
484 else if (L->nCcalls >= (LUAI_MAXCCALLS + (LUAI_MAXCCALLS>>3))) in stackerror()
485 luaD_throw(L, LUA_ERRERR); /* error while handing stack error */ in stackerror()
495 void luaD_call (lua_State *L, StkId func, int nResults) { in luaD_call() argument
496 if (++L->nCcalls >= LUAI_MAXCCALLS) in luaD_call()
497 stackerror(L); in luaD_call()
498 if (!luaD_precall(L, func, nResults)) /* is a Lua function? */ in luaD_call()
499 luaV_execute(L); /* call it */ in luaD_call()
500 L->nCcalls--; in luaD_call()
507 void luaD_callnoyield (lua_State *L, StkId func, int nResults) { in luaD_callnoyield() argument
508 L->nny++; in luaD_callnoyield()
509 luaD_call(L, func, nResults); in luaD_callnoyield()
510 L->nny--; in luaD_callnoyield()
518 static void finishCcall (lua_State *L, int status) { in finishCcall() argument
519 CallInfo *ci = L->ci; in finishCcall()
522 lua_assert(ci->u.c.k != NULL && L->nny == 0); in finishCcall()
524 lua_assert((ci->callstatus & CIST_YPCALL) || status == LUA_YIELD); in finishCcall()
525 if (ci->callstatus & CIST_YPCALL) { /* was inside a pcall? */ in finishCcall()
526 ci->callstatus &= ~CIST_YPCALL; /* continuation is also inside it */ in finishCcall()
527 L->errfunc = ci->u.c.old_errfunc; /* with the same error function */ in finishCcall()
531 adjustresults(L, ci->nresults); in finishCcall()
532 lua_unlock(L); in finishCcall()
533 n = (*ci->u.c.k)(L, status, ci->u.c.ctx); /* call continuation function */ in finishCcall()
534 lua_lock(L); in finishCcall()
535 api_checknelems(L, n); in finishCcall()
536 luaD_poscall(L, ci, L->top - n, n); /* finish 'luaD_precall' */ in finishCcall()
543 ** interruption long-jumps out of the loop). If the coroutine is
548 static void unroll (lua_State *L, void *ud) { in unroll() argument
550 finishCcall(L, *(int *)ud); /* finish 'lua_pcallk' callee */ in unroll()
551 while (L->ci != &L->base_ci) { /* something in the stack */ in unroll()
552 if (!isLua(L->ci)) /* C function? */ in unroll()
553 finishCcall(L, LUA_YIELD); /* complete its execution */ in unroll()
555 luaV_finishOp(L); /* finish interrupted instruction */ in unroll()
556 luaV_execute(L); /* execute down to higher C 'boundary' */ in unroll()
566 static CallInfo *findpcall (lua_State *L) { in findpcall() argument
568 for (ci = L->ci; ci != NULL; ci = ci->previous) { /* search for a pcall */ in findpcall()
569 if (ci->callstatus & CIST_YPCALL) in findpcall()
581 static int recover (lua_State *L, int status) { in recover() argument
583 CallInfo *ci = findpcall(L); in recover()
586 oldtop = restorestack(L, ci->extra); in recover()
587 luaF_close(L, oldtop); in recover()
588 seterrorobj(L, status, oldtop); in recover()
589 L->ci = ci; in recover()
590 L->allowhook = getoah(ci->callstatus); /* restore original 'allowhook' */ in recover()
591 L->nny = 0; /* should be zero to be yieldable */ in recover()
592 luaD_shrinkstack(L); in recover()
593 L->errfunc = ci->u.c.old_errfunc; in recover()
603 static int resume_error (lua_State *L, const char *msg, int narg) { in resume_error() argument
604 L->top -= narg; /* remove args from the stack */ in resume_error()
605 setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */ in resume_error()
606 api_incr_top(L); in resume_error()
607 lua_unlock(L); in resume_error()
616 ** function), plus erroneous cases: non-suspended coroutine or dead
619 static void resume (lua_State *L, void *ud) { in resume() argument
621 StkId firstArg = L->top - n; /* first argument */ in resume()
622 CallInfo *ci = L->ci; in resume()
623 if (L->status == LUA_OK) { /* starting a coroutine? */ in resume()
624 if (!luaD_precall(L, firstArg - 1, LUA_MULTRET)) /* Lua function? */ in resume()
625 luaV_execute(L); /* call it */ in resume()
628 lua_assert(L->status == LUA_YIELD); in resume()
629 L->status = LUA_OK; /* mark that it is running (again) */ in resume()
630 ci->func = restorestack(L, ci->extra); in resume()
632 luaV_execute(L); /* just continue running Lua code */ in resume()
634 if (ci->u.c.k != NULL) { /* does it have a continuation function? */ in resume()
635 lua_unlock(L); in resume()
636 n = (*ci->u.c.k)(L, LUA_YIELD, ci->u.c.ctx); /* call continuation */ in resume()
637 lua_lock(L); in resume()
638 api_checknelems(L, n); in resume()
639 firstArg = L->top - n; /* yield results come from continuation */ in resume()
641 luaD_poscall(L, ci, firstArg, n); /* finish 'luaD_precall' */ in resume()
643 unroll(L, NULL); /* run continuation */ in resume()
648 LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) { in lua_resume() argument
650 unsigned short oldnny = L->nny; /* save "number of non-yieldable" calls */ in lua_resume()
651 lua_lock(L); in lua_resume()
652 if (L->status == LUA_OK) { /* may be starting a coroutine */ in lua_resume()
653 if (L->ci != &L->base_ci) /* not in base level? */ in lua_resume()
654 return resume_error(L, "cannot resume non-suspended coroutine", nargs); in lua_resume()
656 else if (L->status != LUA_YIELD) in lua_resume()
657 return resume_error(L, "cannot resume dead coroutine", nargs); in lua_resume()
658 L->nCcalls = (from) ? from->nCcalls + 1 : 1; in lua_resume()
659 if (L->nCcalls >= LUAI_MAXCCALLS) in lua_resume()
660 return resume_error(L, "C stack overflow", nargs); in lua_resume()
661 luai_userstateresume(L, nargs); in lua_resume()
662 L->nny = 0; /* allow yields */ in lua_resume()
663 api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs); in lua_resume()
664 status = luaD_rawrunprotected(L, resume, &nargs); in lua_resume()
665 if (status == -1) /* error calling 'lua_resume'? */ in lua_resume()
668 while (errorstatus(status) && recover(L, status)) { in lua_resume()
670 status = luaD_rawrunprotected(L, unroll, &status); in lua_resume()
673 L->status = cast_byte(status); /* mark thread as 'dead' */ in lua_resume()
674 seterrorobj(L, status, L->top); /* push error message */ in lua_resume()
675 L->ci->top = L->top; in lua_resume()
677 else lua_assert(status == L->status); /* normal end or yield */ in lua_resume()
679 L->nny = oldnny; /* restore 'nny' */ in lua_resume()
680 L->nCcalls--; in lua_resume()
681 lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0)); in lua_resume()
682 lua_unlock(L); in lua_resume()
687 LUA_API int lua_isyieldable (lua_State *L) { in lua_isyieldable() argument
688 return (L->nny == 0); in lua_isyieldable()
692 LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, in lua_yieldk() argument
694 CallInfo *ci = L->ci; in lua_yieldk()
695 luai_userstateyield(L, nresults); in lua_yieldk()
696 lua_lock(L); in lua_yieldk()
697 api_checknelems(L, nresults); in lua_yieldk()
698 if (L->nny > 0) { in lua_yieldk()
699 if (L != G(L)->mainthread) in lua_yieldk()
700 luaG_runerror(L, "attempt to yield across a C-call boundary"); in lua_yieldk()
702 luaG_runerror(L, "attempt to yield from outside a coroutine"); in lua_yieldk()
704 L->status = LUA_YIELD; in lua_yieldk()
705 ci->extra = savestack(L, ci->func); /* save current 'func' */ in lua_yieldk()
707 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
710 if ((ci->u.c.k = k) != NULL) /* is there a continuation? */ in lua_yieldk()
711 ci->u.c.ctx = ctx; /* save context */ in lua_yieldk()
712 ci->func = L->top - nresults - 1; /* protect stack below results */ in lua_yieldk()
713 luaD_throw(L, LUA_YIELD); in lua_yieldk()
715 lua_assert(ci->callstatus & CIST_HOOKED); /* must be inside a hook */ in lua_yieldk()
716 lua_unlock(L); in lua_yieldk()
721 int luaD_pcall (lua_State *L, Pfunc func, void *u, in luaD_pcall() argument
724 CallInfo *old_ci = L->ci; in luaD_pcall()
725 lu_byte old_allowhooks = L->allowhook; in luaD_pcall()
726 unsigned short old_nny = L->nny; in luaD_pcall()
727 ptrdiff_t old_errfunc = L->errfunc; in luaD_pcall()
728 L->errfunc = ef; in luaD_pcall()
729 status = luaD_rawrunprotected(L, func, u); in luaD_pcall()
731 StkId oldtop = restorestack(L, old_top); in luaD_pcall()
732 luaF_close(L, oldtop); /* close possible pending closures */ in luaD_pcall()
733 seterrorobj(L, status, oldtop); in luaD_pcall()
734 L->ci = old_ci; in luaD_pcall()
735 L->allowhook = old_allowhooks; in luaD_pcall()
736 L->nny = old_nny; in luaD_pcall()
737 luaD_shrinkstack(L); in luaD_pcall()
739 L->errfunc = old_errfunc; in luaD_pcall()
757 static void checkmode (lua_State *L, const char *mode, const char *x) { in checkmode() argument
759 luaO_pushfstring(L, in checkmode()
761 luaD_throw(L, LUA_ERRSYNTAX); in checkmode()
766 static void f_parser (lua_State *L, void *ud) { in f_parser() argument
769 int c = zgetc(p->z); /* read first character */ in f_parser()
771 checkmode(L, p->mode, "binary"); in f_parser()
772 cl = luaU_undump(L, p->z, p->name); in f_parser()
775 checkmode(L, p->mode, "text"); in f_parser()
776 cl = luaY_parser(L, p->z, &p->buff, &p->dyd, p->name, c); in f_parser()
778 lua_assert(cl->nupvalues == cl->p->sizeupvalues); in f_parser()
779 luaF_initupvals(L, cl); in f_parser()
783 int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, in luaD_protectedparser() argument
787 L->nny++; /* cannot yield during parsing */ in luaD_protectedparser()
792 luaZ_initbuffer(L, &p.buff); in luaD_protectedparser()
793 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc); in luaD_protectedparser()
794 luaZ_freebuffer(L, &p.buff); in luaD_protectedparser()
795 luaM_freearray(L, p.dyd.actvar.arr, p.dyd.actvar.size); in luaD_protectedparser()
796 luaM_freearray(L, p.dyd.gt.arr, p.dyd.gt.size); in luaD_protectedparser()
797 luaM_freearray(L, p.dyd.label.arr, p.dyd.label.size); in luaD_protectedparser()
798 L->nny--; in luaD_protectedparser()