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

Function localstat

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

Source from the content-addressed store, hash-verified

1437
1438
1439static void localstat (LexState *ls) {
1440 /* stat -> LOCAL NAME {`,' NAME} [`=' explist] */
1441 int nvars = 0;
1442 int nexps;
1443 expdesc e;
1444 do {
1445 new_localvar(ls, str_checkname(ls));
1446 nvars++;
1447 } while (testnext(ls, ','));
1448 if (testnext(ls, '='))
1449 nexps = explist(ls, &e);
1450 else {
1451 e.k = VVOID;
1452 nexps = 0;
1453 }
1454 adjust_assign(ls, nvars, nexps, &e);
1455 adjustlocalvars(ls, nvars);
1456}
1457
1458
1459static int funcname (LexState *ls, expdesc *v) {

Callers 1

statementFunction · 0.70

Calls 6

explistFunction · 0.85
new_localvarFunction · 0.70
str_checknameFunction · 0.70
testnextFunction · 0.70
adjust_assignFunction · 0.70
adjustlocalvarsFunction · 0.70

Tested by

no test coverage detected