aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-12-26 16:46:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-12-26 16:46:09 -0200
commit8c49e198654567f770a7d5081b886a7c35201d81 (patch)
tree8c1de3e885ef138574e51a8868f175feeaab71e2 /lparser.h
parent6af005ec20323defd2a5ead01e2d389462884d04 (diff)
downloadlua-8c49e198654567f770a7d5081b886a7c35201d81.tar.gz
lua-8c49e198654567f770a7d5081b886a7c35201d81.tar.bz2
lua-8c49e198654567f770a7d5081b886a7c35201d81.zip
explicit control of size for growing vectors
Diffstat (limited to 'lparser.h')
-rw-r--r--lparser.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lparser.h b/lparser.h
index 7e8bd2d1..9c34a861 100644
--- a/lparser.h
+++ b/lparser.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.h,v 1.26 2000/10/09 13:47:46 roberto Exp roberto $ 2** $Id: lparser.h,v 1.27 2000/11/30 18:50:47 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*/
@@ -45,6 +45,12 @@ typedef struct FuncState {
45 int lasttarget; /* `pc' of last `jump target' */ 45 int lasttarget; /* `pc' of last `jump target' */
46 int jlt; /* list of jumps to `lasttarget' */ 46 int jlt; /* list of jumps to `lasttarget' */
47 int stacklevel; /* number of values on activation register */ 47 int stacklevel; /* number of values on activation register */
48 int sizekstr; /* size of array `kstr' */
49 int sizekproto; /* size of array `kproto' */
50 int sizeknum; /* size of array `knum' */
51 int sizelineinfo; /* size of array `lineinfo' */
52 int sizecode; /* size of array `code' */
53 int sizelocvars; /* size of array `locvars' */
48 int nactloc; /* number of active local variables */ 54 int nactloc; /* number of active local variables */
49 int nupvalues; /* number of upvalues */ 55 int nupvalues; /* number of upvalues */
50 int lastline; /* line where last `lineinfo' was generated */ 56 int lastline; /* line where last `lineinfo' was generated */