From c85162be276f7bb95416c5ec0ecefd9c24877d67 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Aug 2000 14:44:17 -0300 Subject: new way to store local-variable information. --- lparser.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lparser.h') diff --git a/lparser.h b/lparser.h index 258d6fe7..8cfa3180 100644 --- a/lparser.h +++ b/lparser.h @@ -1,5 +1,5 @@ /* -** $Id: lparser.h,v 1.21 2000/08/08 18:26:05 roberto Exp roberto $ +** $Id: lparser.h,v 1.22 2000/08/08 20:42:07 roberto Exp roberto $ ** LL(1) Parser and code generator for Lua ** See Copyright Notice in lua.h */ @@ -45,14 +45,13 @@ typedef struct FuncState { int lasttarget; /* `pc' of last `jump target' */ int jlt; /* list of jumps to `lasttarged' */ int stacklevel; /* number of values on activation register */ - int nlocalvar; /* number of active local variables */ + int nactloc; /* number of active local variables */ int nupvalues; /* number of upvalues */ - int nvars; /* number of entries in f->locvars */ int lastline; /* line where last `lineinfo' was generated */ int nlineinfo; /* index of next `lineinfo' to be generated */ struct Breaklabel *bl; /* chain of breakable blocks */ expdesc upvalues[MAXUPVALUES]; /* upvalues */ - TString *localvar[MAXLOCALS]; /* store local variable names */ + int actloc[MAXLOCALS]; /* local-variable stack (indices to locvars) */ } FuncState; -- cgit v1.2.1