From 370d31a5593220723d222dec6e3e4019decc3309 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Wed, 9 Mar 2005 13:28:07 -0300 Subject: `luacĀ“ -> `luai' (to avoid confusion with other luac stuff) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lparser.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 373dbeaa..a26f22f5 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.16 2005/03/08 18:16:45 roberto Exp roberto $ +** $Id: lparser.c,v 2.17 2005/03/08 20:10:05 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -33,7 +33,7 @@ #define luaY_checklimit(fs,v,l,m) if ((v)>(l)) errorlimit(fs,l,m) -#define enterlevel(ls) if (++(ls)->nestlevel > LUAC_MAXPARSERLEVEL) \ +#define enterlevel(ls) if (++(ls)->nestlevel > LUAI_MAXPARSERLEVEL) \ luaX_lexerror(ls, "chunk has too many syntax levels", 0) #define leavelevel(ls) ((ls)->nestlevel--) @@ -181,7 +181,7 @@ static int registerlocalvar (LexState *ls, TString *varname) { static void new_localvar (LexState *ls, TString *name, int n) { FuncState *fs = ls->fs; - luaY_checklimit(fs, fs->nactvar+n+1, LUAC_MAXVARS, "local variables"); + luaY_checklimit(fs, fs->nactvar+n+1, LUAI_MAXVARS, "local variables"); fs->actvar[fs->nactvar+n] = cast(unsigned short, registerlocalvar(ls, name)); } @@ -213,7 +213,7 @@ static int indexupvalue (FuncState *fs, TString *name, expdesc *v) { } } /* new one */ - luaY_checklimit(fs, f->nups + 1, LUAC_MAXUPVALUES, "upvalues"); + luaY_checklimit(fs, f->nups + 1, LUAI_MAXUPVALUES, "upvalues"); luaM_growvector(fs->L, f->upvalues, f->nups, f->sizeupvalues, TString *, MAX_INT, ""); while (oldsize < f->sizeupvalues) f->upvalues[oldsize++] = NULL; @@ -993,7 +993,7 @@ static int cond (LexState *ls) { static void whilestat (LexState *ls, int line) { /* whilestat -> WHILE cond DO block END */ - Instruction codeexp[LUAC_MAXEXPWHILE + EXTRAEXP]; + Instruction codeexp[LUAI_MAXEXPWHILE + EXTRAEXP]; int lineexp; int i; int sizeexp; @@ -1011,7 +1011,7 @@ static void whilestat (LexState *ls, int line) { luaK_concat(fs, &v.f, fs->jpc); fs->jpc = NO_JUMP; sizeexp = fs->pc - expinit; /* size of expression code */ - if (sizeexp > LUAC_MAXEXPWHILE) + if (sizeexp > LUAI_MAXEXPWHILE) luaX_syntaxerror(ls, "`while' condition too complex"); for (i = 0; i < sizeexp; i++) /* save `exp' code */ codeexp[i] = fs->f->code[expinit + i]; -- cgit v1.2.3-55-g6feb