From 8c49e198654567f770a7d5081b886a7c35201d81 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 26 Dec 2000 16:46:09 -0200 Subject: explicit control of size for growing vectors --- lparser.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lparser.h') diff --git a/lparser.h b/lparser.h index 7e8bd2d1..9c34a861 100644 --- a/lparser.h +++ b/lparser.h @@ -1,5 +1,5 @@ /* -** $Id: lparser.h,v 1.26 2000/10/09 13:47:46 roberto Exp roberto $ +** $Id: lparser.h,v 1.27 2000/11/30 18:50:47 roberto Exp roberto $ ** LL(1) Parser and code generator for Lua ** See Copyright Notice in lua.h */ @@ -45,6 +45,12 @@ typedef struct FuncState { int lasttarget; /* `pc' of last `jump target' */ int jlt; /* list of jumps to `lasttarget' */ int stacklevel; /* number of values on activation register */ + int sizekstr; /* size of array `kstr' */ + int sizekproto; /* size of array `kproto' */ + int sizeknum; /* size of array `knum' */ + int sizelineinfo; /* size of array `lineinfo' */ + int sizecode; /* size of array `code' */ + int sizelocvars; /* size of array `locvars' */ int nactloc; /* number of active local variables */ int nupvalues; /* number of upvalues */ int lastline; /* line where last `lineinfo' was generated */ -- cgit v1.2.3-55-g6feb