MCPcopy Create free account
hub / github.com/DFHack/dfhack / findgotos

Function findgotos

depends/lua/src/lparser.c:403–412  ·  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

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

Callers 2

breaklabelFunction · 0.85
labelstatFunction · 0.85

Calls 1

closegotoFunction · 0.85

Tested by

no test coverage detected