From 11a70220670f25a9929439f0b27331f09f05235c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 8 May 2000 16:32:53 -0300 Subject: global variables are stored in a Lua table --- lstate.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index d099e6aa..6e943b30 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.30 2000/03/10 18:37:44 roberto Exp roberto $ +** $Id: lstate.h,v 1.31 2000/03/30 17:19:48 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 (including EMPTYs) */ + int nuse; /* number of elements */ TString **hash; } stringtable; @@ -66,8 +66,8 @@ struct lua_State { Proto *rootproto; /* list of all prototypes */ Closure *rootcl; /* list of all closures */ Hash *roottable; /* list of all tables */ - GlobalVar *rootglobal; /* list of global variables */ stringtable *string_root; /* array of hash tables for strings and udata */ + Hash *gt; /* table for globals */ struct IM *IMtable; /* table for tag methods */ int last_tag; /* last used tag in IMtable */ struct Ref *refArray; /* locked objects */ -- cgit v1.2.3-55-g6feb