aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index 24668c24..b745f236 100644
--- a/lparser.c
+++ b/lparser.c
@@ -521,12 +521,12 @@ static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) {
521 521
522/* 522/*
523** Solves the goto at index 'g' to given 'label' and removes it 523** Solves the goto at index 'g' to given 'label' and removes it
524** from the list of pending goto's. 524** from the list of pending gotos.
525** If it jumps into the scope of some variable, raises an error. 525** If it jumps into the scope of some variable, raises an error.
526*/ 526*/
527static void solvegoto (LexState *ls, int g, Labeldesc *label) { 527static void solvegoto (LexState *ls, int g, Labeldesc *label) {
528 int i; 528 int i;
529 Labellist *gl = &ls->dyd->gt; /* list of goto's */ 529 Labellist *gl = &ls->dyd->gt; /* list of gotos */
530 Labeldesc *gt = &gl->arr[g]; /* goto to be resolved */ 530 Labeldesc *gt = &gl->arr[g]; /* goto to be resolved */
531 lua_assert(eqstr(gt->name, label->name)); 531 lua_assert(eqstr(gt->name, label->name));
532 if (l_unlikely(gt->nactvar < label->nactvar)) /* enter some scope? */ 532 if (l_unlikely(gt->nactvar < label->nactvar)) /* enter some scope? */
@@ -580,7 +580,7 @@ static int newgotoentry (LexState *ls, TString *name, int line, int pc) {
580/* 580/*
581** Solves forward jumps. Check whether new label 'lb' matches any 581** Solves forward jumps. Check whether new label 'lb' matches any
582** pending gotos in current block and solves them. Return true 582** pending gotos in current block and solves them. Return true
583** if any of the goto's need to close upvalues. 583** if any of the gotos need to close upvalues.
584*/ 584*/
585static int solvegotos (LexState *ls, Labeldesc *lb) { 585static int solvegotos (LexState *ls, Labeldesc *lb) {
586 Labellist *gl = &ls->dyd->gt; 586 Labellist *gl = &ls->dyd->gt;
@@ -601,7 +601,7 @@ static int solvegotos (LexState *ls, Labeldesc *lb) {
601/* 601/*
602** Create a new label with the given 'name' at the given 'line'. 602** Create a new label with the given 'name' at the given 'line'.
603** 'last' tells whether label is the last non-op statement in its 603** 'last' tells whether label is the last non-op statement in its
604** block. Solves all pending goto's to this new label and adds 604** block. Solves all pending gotos to this new label and adds
605** a close instruction if necessary. 605** a close instruction if necessary.
606** Returns true iff it added a close instruction. 606** Returns true iff it added a close instruction.
607*/ 607*/