aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-07 09:36:16 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-07 09:36:16 -0200
commit7621cc2aa5197cc2677559e716282c331c8e0b65 (patch)
tree43f6bf99ea94c198b1fd6146ec4a5e2f0c59fd65
parentba1f504970daf205ddb8f7a6b33474ee5fa1f64b (diff)
downloadlua-7621cc2aa5197cc2677559e716282c331c8e0b65.tar.gz
lua-7621cc2aa5197cc2677559e716282c331c8e0b65.tar.bz2
lua-7621cc2aa5197cc2677559e716282c331c8e0b65.zip
for the future...
-rw-r--r--lparser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index df73fa31..4e95bb43 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.44 1999/11/25 18:59:43 roberto Exp roberto $ 2** $Id: lparser.c,v 1.45 1999/12/01 19:50:08 roberto Exp roberto $
3** LL(1) Parser and code generator for Lua 3** LL(1) Parser and code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -464,7 +464,7 @@ static void code_args (LexState *ls, int nparams, int dots) {
464 else { 464 else {
465 fs->f->code[1] = (Byte)(nparams+ZEROVARARG); 465 fs->f->code[1] = (Byte)(nparams+ZEROVARARG);
466 deltastack(ls, nparams+1); 466 deltastack(ls, nparams+1);
467 add_localvar(ls, luaS_new(ls->L, "arg")); 467 add_localvar(ls, luaS_newfixedstring(ls->L, "arg"));
468 } 468 }
469} 469}
470 470
@@ -890,7 +890,7 @@ static void body (LexState *ls, int needself, int line) {
890 newfs.f->lineDefined = line; 890 newfs.f->lineDefined = line;
891 check(ls, '('); 891 check(ls, '(');
892 if (needself) 892 if (needself)
893 add_localvar(ls, luaS_new(ls->L, "self")); 893 add_localvar(ls, luaS_newfixedstring(ls->L, "self"));
894 parlist(ls); 894 parlist(ls);
895 check(ls, ')'); 895 check(ls, ')');
896 chunk(ls); 896 chunk(ls);