MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / newlabelentry

Function newlabelentry

3rd/lua-5.4.3/src/lparser.c:548–560  ·  view source on GitHub ↗

** Adds a new label/goto in the corresponding list. */

Source from the content-addressed store, hash-verified

546** Adds a new label/goto in the corresponding list.
547*/
548static int newlabelentry (LexState *ls, Labellist *l, TString *name,
549 int line, int pc) {
550 int n = l->n;
551 luaM_growvector(ls->L, l->arr, n, l->size,
552 Labeldesc, SHRT_MAX, "labels/gotos");
553 l->arr[n].name = name;
554 l->arr[n].line = line;
555 l->arr[n].nactvar = ls->fs->nactvar;
556 l->arr[n].close = 0;
557 l->arr[n].pc = pc;
558 l->n = n + 1;
559 return n;
560}
561
562
563static int newgotoentry (LexState *ls, TString *name, int line, int pc) {

Callers 2

newgotoentryFunction · 0.85
createlabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected