MCPcopy Create free account
hub / github.com/F-Stack/f-stack / new_localvar

Function new_localvar

freebsd/contrib/openzfs/module/lua/lparser.c:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176static void new_localvar (LexState *ls, TString *name) {
177 FuncState *fs = ls->fs;
178 Dyndata *dyd = ls->dyd;
179 int reg = registerlocalvar(ls, name);
180 checklimit(fs, dyd->actvar.n + 1 - fs->firstlocal,
181 MAXVARS, "local variables");
182 luaM_growvector(ls->L, dyd->actvar.arr, dyd->actvar.n + 1,
183 dyd->actvar.size, Vardesc, MAX_INT, "local variables");
184 dyd->actvar.arr[dyd->actvar.n++].idx = cast(short, reg);
185}
186
187
188static void new_localvarliteral_ (LexState *ls, const char *name, size_t sz) {

Callers 6

new_localvarliteral_Function · 0.70
parlistFunction · 0.70
fornumFunction · 0.70
forlistFunction · 0.70
localfuncFunction · 0.70
localstatFunction · 0.70

Calls 2

checklimitFunction · 0.85
registerlocalvarFunction · 0.70

Tested by

no test coverage detected