** Search for an active label with the given name. */
| 530 | ** Search for an active label with the given name. |
| 531 | */ |
| 532 | static Labeldesc *findlabel (LexState *ls, TString *name) { |
| 533 | int i; |
| 534 | Dyndata *dyd = ls->dyd; |
| 535 | /* check labels in current function for a match */ |
| 536 | for (i = ls->fs->firstlabel; i < dyd->label.n; i++) { |
| 537 | Labeldesc *lb = &dyd->label.arr[i]; |
| 538 | if (eqstr(lb->name, name)) /* correct label? */ |
| 539 | return lb; |
| 540 | } |
| 541 | return NULL; /* label not found */ |
| 542 | } |
| 543 | |
| 544 | |
| 545 | /* |
no outgoing calls
no test coverage detected