|
|
@ -1,6 +1,6 @@ |
|
|
|
%{ |
|
|
|
/* |
|
|
|
** $Id: lua.stx,v 1.29 1997/12/29 17:28:45 roberto Exp roberto $ |
|
|
|
** $Id: lua.stx,v 1.30 1997/12/29 17:35:46 roberto Exp roberto $ |
|
|
|
** Syntax analizer and code generator |
|
|
|
** See Copyright Notice in lua.h |
|
|
|
*/ |
|
|
@ -450,7 +450,7 @@ static void code_args (int nparams, int dots) |
|
|
|
{ |
|
|
|
L->currState->nlocalvar += nparams; |
|
|
|
if (!dots) |
|
|
|
code_oparg(ARGS, 0, L->currState->nlocalvar, L->currState->nlocalvar); |
|
|
|
code_oparg(ARGS, 4, L->currState->nlocalvar, L->currState->nlocalvar); |
|
|
|
else { |
|
|
|
code_oparg(VARARGS, 0, L->currState->nlocalvar, L->currState->nlocalvar+1); |
|
|
|
add_localvar(luaS_new("arg")); |
|
|
|