MCPcopy Create free account
hub / github.com/F-Stack/f-stack / findgotos

Function findgotos

freebsd/contrib/openzfs/module/lua/lparser.c:400–409  ·  view source on GitHub ↗

** check whether new label 'lb' matches any pending gotos in current ** block; solves forward jumps */

Source from the content-addressed store, hash-verified

398** block; solves forward jumps
399*/
400static void findgotos (LexState *ls, Labeldesc *lb) {
401 Labellist *gl = &ls->dyd->gt;
402 int i = ls->fs->bl->firstgoto;
403 while (i < gl->n) {
404 if (luaS_eqstr(gl->arr[i].name, lb->name))
405 closegoto(ls, i, lb);
406 else
407 i++;
408 }
409}
410
411
412/*

Callers 2

breaklabelFunction · 0.85
labelstatFunction · 0.85

Calls 2

luaS_eqstrFunction · 0.85
closegotoFunction · 0.85

Tested by

no test coverage detected