Lines Matching refs:nvars
3746 static void adjustlocalvars(LexState*ls,int nvars){
3748 fs->nactvar=cast_byte(fs->nactvar+nvars);
3749 for(;nvars;nvars--){
3750 getlocvar(fs,fs->nactvar-nvars).startpc=fs->pc;
3818 static void adjust_assign(LexState*ls,int nvars,int nexps,expdesc*e){
3820 int extra=nvars-nexps;
4341 static void assignment(LexState*ls,struct LHS_assign*lh,int nvars){
4351 luaY_checklimit(ls->fs,nvars,200-ls->L->nCcalls,
4353 assignment(ls,&nv,nvars+1);
4359 if(nexps!=nvars){
4360 adjust_assign(ls,nvars,nexps,&e);
4361 if(nexps>nvars)
4362 ls->fs->freereg-=nexps-nvars;
4441 static void forbody(LexState*ls,int base,int line,int nvars,int isnum){
4449 adjustlocalvars(ls,nvars);
4450 luaK_reserveregs(fs,nvars);
4455 luaK_codeABC(fs,OP_TFORLOOP,base,0,nvars);
4481 int nvars=0;
4484 new_localvarliteral(ls,"(for generator)",nvars++);
4485 new_localvarliteral(ls,"(for state)",nvars++);
4486 new_localvarliteral(ls,"(for control)",nvars++);
4487 new_localvar(ls,indexname,nvars++);
4489 new_localvar(ls,str_checkname(ls),nvars++);
4494 forbody(ls,base,line,nvars-3,0);
4552 int nvars=0;
4556 new_localvar(ls,str_checkname(ls),nvars++);
4564 adjust_assign(ls,nvars,nexps,&e);
4565 adjustlocalvars(ls,nvars);