** Search for an active label with the given name. */
| 541 | ** Search for an active label with the given name. |
| 542 | */ |
| 543 | static Labeldesc *findlabel (LexState *ls, TString *name) { |
| 544 | int i; |
| 545 | Dyndata *dyd = ls->dyd; |
| 546 | /* check labels in current function for a match */ |
| 547 | for (i = ls->fs->firstlabel; i < dyd->label.n; i++) { |
| 548 | Labeldesc *lb = &dyd->label.arr[i]; |
| 549 | if (eqstr(lb->name, name)) /* correct label? */ |
| 550 | return lb; |
| 551 | } |
| 552 | return NULL; /* label not found */ |
| 553 | } |
| 554 | |
| 555 | |
| 556 | /* |
no outgoing calls
no test coverage detected