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