diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-18 09:44:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-18 09:44:10 -0300 |
commit | e15f1f2bb7a38a3c94519294d031e48508d65006 (patch) | |
tree | 1528b4a73da045e4d1617c1a276e66c056ba7686 /lparser.c | |
parent | b5c65705ca78560cd2735778737122ea5f858bd0 (diff) | |
download | lua-e15f1f2bb7a38a3c94519294d031e48508d65006.tar.gz lua-e15f1f2bb7a38a3c94519294d031e48508d65006.tar.bz2 lua-e15f1f2bb7a38a3c94519294d031e48508d65006.zip |
Detailsv5.4.5
Typos in comments and details in the manual.
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 | */ |
527 | static void solvegoto (LexState *ls, int g, Labeldesc *label) { | 527 | static 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 | */ |
585 | static int solvegotos (LexState *ls, Labeldesc *lb) { | 585 | static 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 | */ |