mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
for the future...
This commit is contained in:
parent
ba1f504970
commit
7621cc2aa5
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lparser.c,v 1.44 1999/11/25 18:59:43 roberto Exp roberto $
|
** $Id: lparser.c,v 1.45 1999/12/01 19:50:08 roberto Exp roberto $
|
||||||
** LL(1) Parser and code generator for Lua
|
** LL(1) Parser and code generator for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -464,7 +464,7 @@ static void code_args (LexState *ls, int nparams, int dots) {
|
|||||||
else {
|
else {
|
||||||
fs->f->code[1] = (Byte)(nparams+ZEROVARARG);
|
fs->f->code[1] = (Byte)(nparams+ZEROVARARG);
|
||||||
deltastack(ls, nparams+1);
|
deltastack(ls, nparams+1);
|
||||||
add_localvar(ls, luaS_new(ls->L, "arg"));
|
add_localvar(ls, luaS_newfixedstring(ls->L, "arg"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -890,7 +890,7 @@ static void body (LexState *ls, int needself, int line) {
|
|||||||
newfs.f->lineDefined = line;
|
newfs.f->lineDefined = line;
|
||||||
check(ls, '(');
|
check(ls, '(');
|
||||||
if (needself)
|
if (needself)
|
||||||
add_localvar(ls, luaS_new(ls->L, "self"));
|
add_localvar(ls, luaS_newfixedstring(ls->L, "self"));
|
||||||
parlist(ls);
|
parlist(ls);
|
||||||
check(ls, ')');
|
check(ls, ')');
|
||||||
chunk(ls);
|
chunk(ls);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user