diff options
| -rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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); |
