diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-14 16:42:57 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-14 16:42:57 -0200 |
commit | 12b45c2df21beac17d49a92a4e098cb212238c1a (patch) | |
tree | 01cc8c3b861bbf952ddabce68bc556f45d764399 /lparser.c | |
parent | 1b15206cf9aa7005fc3d48f78f60f66838f10eb5 (diff) | |
download | lua-12b45c2df21beac17d49a92a4e098cb212238c1a.tar.gz lua-12b45c2df21beac17d49a92a4e098cb212238c1a.tar.bz2 lua-12b45c2df21beac17d49a92a4e098cb212238c1a.zip |
luaS_newfixedstring renamed to luaS_newfixed
Diffstat (limited to 'lparser.c')
-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.45 1999/12/01 19:50:08 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.46 1999/12/07 11:36:16 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_newfixedstring(ls->L, "arg")); | 467 | add_localvar(ls, luaS_newfixed(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_newfixedstring(ls->L, "self")); | 893 | add_localvar(ls, luaS_newfixed(ls->L, "self")); |
894 | parlist(ls); | 894 | parlist(ls); |
895 | check(ls, ')'); | 895 | check(ls, ')'); |
896 | chunk(ls); | 896 | chunk(ls); |