summaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-22 14:44:17 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-22 14:44:17 -0300
commitc85162be276f7bb95416c5ec0ecefd9c24877d67 (patch)
treee6d55e2b1fa5e7c613f2545f551e877bee33c3e8 /lparser.h
parentbd39db46ed33c09427547c4390aaf2519169de6f (diff)
downloadlua-github-c85162be276f7bb95416c5ec0ecefd9c24877d67.tar.gz
new way to store local-variable information.
Diffstat (limited to 'lparser.h')
-rw-r--r--lparser.h7
1 files changed, 3 insertions, 4 deletions
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;