From 330e51bed3159aa83dcc9cc559c22e7d84d37604 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 10 May 2000 13:33:20 -0300 Subject: string hash uses one single hash table --- lstate.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 6e943b30..6c0cee86 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.31 2000/03/30 17:19:48 roberto Exp roberto $ +** $Id: lstate.h,v 1.32 2000/05/08 19:32:53 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -42,7 +42,7 @@ struct C_Lua_Stack { typedef struct stringtable { int size; - int nuse; /* number of elements */ + long nuse; /* number of elements */ TString **hash; } stringtable; @@ -66,7 +66,8 @@ struct lua_State { Proto *rootproto; /* list of all prototypes */ Closure *rootcl; /* list of all closures */ Hash *roottable; /* list of all tables */ - stringtable *string_root; /* array of hash tables for strings and udata */ + stringtable strt; /* hash table for strings */ + stringtable udt; /* hash table for udata */ Hash *gt; /* table for globals */ struct IM *IMtable; /* table for tag methods */ int last_tag; /* last used tag in IMtable */ @@ -82,8 +83,5 @@ struct lua_State { }; - - - #endif -- cgit v1.2.3-55-g6feb