** Search for an active label with the given name, starting at ** index 'ilb' (so that it can search for all labels in current block ** or all labels in current function). */
| 624 | ** or all labels in current function). |
| 625 | */ |
| 626 | static Labeldesc *findlabel (LexState *ls, TString *name, int ilb) { |
| 627 | Dyndata *dyd = ls->dyd; |
| 628 | for (; ilb < dyd->label.n; ilb++) { |
| 629 | Labeldesc *lb = &dyd->label.arr[ilb]; |
| 630 | if (eqstr(lb->name, name)) /* correct label? */ |
| 631 | return lb; |
| 632 | } |
| 633 | return NULL; /* label not found */ |
| 634 | } |
| 635 | |
| 636 | |
| 637 | /* |
no outgoing calls
no test coverage detected