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 --- lstate.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 51c6e27d..abd212ad 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.41 2000/10/05 13:00:17 roberto Exp roberto $ +** $Id: lstate.h,v 1.42 2000/11/24 17:39:56 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -61,9 +61,11 @@ struct lua_State { stringtable udt; /* hash table for udata */ Hash *gt; /* table for globals */ struct TM *TMtable; /* table for tag methods */ - int last_tag; /* last used tag in TMtable */ + int sizeTM; /* size of TMtable */ + int ntag; /* number of tags in TMtable */ struct Ref *refArray; /* locked objects */ - int refSize; /* size of refArray */ + int nref; /* first unused element in refArray */ + int sizeref; /* size of refArray */ int refFree; /* list of free positions in refArray */ mem_int GCthreshold; mem_int nblocks; /* number of `bytes' currently allocated */ -- cgit v1.2.3-55-g6feb