/* Solves forward jumps. Check whether new label 'lb' matches any pending gotos in current block and solves them. Return true if any of the goto's need to close upvalues.  */
static int solvegotos(LexState *ls, Labeldesc *lb)
/* Solves forward jumps. Check whether new label 'lb' matches any pending gotos in current block and solves them. Return true if any of the goto's need to close upvalues.  */
static int solvegotos(LexState *ls, Labeldesc *lb)
{
    if (eqstr(gl->arr[i].name, lb->name)) {
      needsclose |= gl->arr[i].close;
      solvegoto(ls, i, lb);
    }
    else
      i++;
  }
  return needsclose;
}