| 1501 | |
| 1502 | |
| 1503 | static void localstat(LexState *ls) { |
| 1504 | /* stat -> LOCAL NAME {',' NAME} ['=' explist] */ |
| 1505 | int nvars = 0; |
| 1506 | int nexps; |
| 1507 | expdesc e; |
| 1508 | do { |
| 1509 | new_localvar(ls, str_checkname(ls)); |
| 1510 | nvars++; |
| 1511 | } while (testnext(ls, ',')); |
| 1512 | if (testnext(ls, '=')) |
| 1513 | nexps = explist(ls, &e); |
| 1514 | else { |
| 1515 | e.k = VVOID; |
| 1516 | nexps = 0; |
| 1517 | } |
| 1518 | adjust_assign(ls, nvars, nexps, &e); |
| 1519 | adjustlocalvars(ls, nvars); |
| 1520 | } |
| 1521 | |
| 1522 | |
| 1523 | static int funcname(LexState *ls, expdesc *v) { |
no test coverage detected