[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luac with multiple files, broken due to _ENV in 5.2.0-alpha
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 27 Nov 2010 15:51:45 -0200
> In 5.2.0-alpha, luac with multiple files doesn't work:
This patch in luac.c seems to fix it but I'll look more into it.
f=toproto(L,-1);
for (i=0; i<n; i++) f->p[i]=toproto(L,i-n-1);
+ for (i=0; i<n; i++) f->p[i]->upvalues[0].instack=0;
f->sizelineinfo=0;
- f->sizeupvalues=0;
return f;