** Adds a new label/goto in the corresponding list. */
| 540 | ** Adds a new label/goto in the corresponding list. |
| 541 | */ |
| 542 | static int newlabelentry (LexState *ls, Labellist *l, TString *name, |
| 543 | int line, int pc) { |
| 544 | int n = l->n; |
| 545 | luaM_growvector(ls->L, l->arr, n, l->size, |
| 546 | Labeldesc, SHRT_MAX, "labels/gotos"); |
| 547 | l->arr[n].name = name; |
| 548 | l->arr[n].line = line; |
| 549 | l->arr[n].nactvar = ls->fs->nactvar; |
| 550 | l->arr[n].close = 0; |
| 551 | l->arr[n].pc = pc; |
| 552 | l->n = n + 1; |
| 553 | return n; |
| 554 | } |
| 555 | |
| 556 | |
| 557 | static int newgotoentry (LexState *ls, TString *name, int line, int pc) { |
no outgoing calls
no test coverage detected