diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-19 14:59:08 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-19 14:59:08 -0200 |
commit | 10e48b91603a5228a9da2b282c74fa09ac03f4c6 (patch) | |
tree | 1fe01046284f562504b25dd199a5c95e953fdc7f /lparser.c | |
parent | 6f1ea817f5827523f8c7e429ab023e5984a84343 (diff) | |
download | lua-10e48b91603a5228a9da2b282c74fa09ac03f4c6.tar.gz lua-10e48b91603a5228a9da2b282c74fa09ac03f4c6.tar.bz2 lua-10e48b91603a5228a9da2b282c74fa09ac03f4c6.zip |
details
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.5 2004/05/31 18:51:50 roberto Exp $ | 2 | ** $Id: lparser.c,v 2.6 2004/10/04 19:01:53 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -157,7 +157,7 @@ static void checkname(LexState *ls, expdesc *e) { | |||
157 | } | 157 | } |
158 | 158 | ||
159 | 159 | ||
160 | static int luaI_registerlocalvar (LexState *ls, TString *varname) { | 160 | static int registerlocalvar (LexState *ls, TString *varname) { |
161 | FuncState *fs = ls->fs; | 161 | FuncState *fs = ls->fs; |
162 | Proto *f = fs->f; | 162 | Proto *f = fs->f; |
163 | int oldsize = f->sizelocvars; | 163 | int oldsize = f->sizelocvars; |
@@ -177,8 +177,7 @@ static int luaI_registerlocalvar (LexState *ls, TString *varname) { | |||
177 | static void new_localvar (LexState *ls, TString *name, int n) { | 177 | static void new_localvar (LexState *ls, TString *name, int n) { |
178 | FuncState *fs = ls->fs; | 178 | FuncState *fs = ls->fs; |
179 | luaY_checklimit(fs, fs->nactvar+n+1, MAXVARS, "local variables"); | 179 | luaY_checklimit(fs, fs->nactvar+n+1, MAXVARS, "local variables"); |
180 | fs->actvar[fs->nactvar+n] = cast(unsigned short, | 180 | fs->actvar[fs->nactvar+n] = cast(unsigned short, registerlocalvar(ls, name)); |
181 | luaI_registerlocalvar(ls, name)); | ||
182 | } | 181 | } |
183 | 182 | ||
184 | 183 | ||