** Adds a new label/goto in the corresponding list. */
| 558 | ** Adds a new label/goto in the corresponding list. |
| 559 | */ |
| 560 | static int newlabelentry (LexState *ls, Labellist *l, TString *name, |
| 561 | int line, int pc) { |
| 562 | int n = l->n; |
| 563 | luaM_growvector(ls->L, l->arr, n, l->size, |
| 564 | Labeldesc, SHRT_MAX, "labels/gotos"); |
| 565 | l->arr[n].name = name; |
| 566 | l->arr[n].line = line; |
| 567 | l->arr[n].nactvar = ls->fs->nactvar; |
| 568 | l->arr[n].close = 0; |
| 569 | l->arr[n].pc = pc; |
| 570 | l->n = n + 1; |
| 571 | return n; |
| 572 | } |
| 573 | |
| 574 | |
| 575 | static int newgotoentry (LexState *ls, TString *name, int line, int pc) { |
no outgoing calls
no test coverage detected