diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-08 16:32:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-08 16:32:53 -0300 |
commit | 11a70220670f25a9929439f0b27331f09f05235c (patch) | |
tree | c4a962b5a3e53ac6df8894fb3ad2248c4a1256cb /lstate.h | |
parent | 35a6ed283881f313152457f24cc6c677122d5058 (diff) | |
download | lua-11a70220670f25a9929439f0b27331f09f05235c.tar.gz lua-11a70220670f25a9929439f0b27331f09f05235c.tar.bz2 lua-11a70220670f25a9929439f0b27331f09f05235c.zip |
global variables are stored in a Lua table
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.30 2000/03/10 18:37:44 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.31 2000/03/30 17:19:48 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -42,7 +42,7 @@ struct C_Lua_Stack { | |||
42 | 42 | ||
43 | typedef struct stringtable { | 43 | typedef struct stringtable { |
44 | int size; | 44 | int size; |
45 | int nuse; /* number of elements (including EMPTYs) */ | 45 | int nuse; /* number of elements */ |
46 | TString **hash; | 46 | TString **hash; |
47 | } stringtable; | 47 | } stringtable; |
48 | 48 | ||
@@ -66,8 +66,8 @@ struct lua_State { | |||
66 | Proto *rootproto; /* list of all prototypes */ | 66 | Proto *rootproto; /* list of all prototypes */ |
67 | Closure *rootcl; /* list of all closures */ | 67 | Closure *rootcl; /* list of all closures */ |
68 | Hash *roottable; /* list of all tables */ | 68 | Hash *roottable; /* list of all tables */ |
69 | GlobalVar *rootglobal; /* list of global variables */ | ||
70 | stringtable *string_root; /* array of hash tables for strings and udata */ | 69 | stringtable *string_root; /* array of hash tables for strings and udata */ |
70 | Hash *gt; /* table for globals */ | ||
71 | struct IM *IMtable; /* table for tag methods */ | 71 | struct IM *IMtable; /* table for tag methods */ |
72 | int last_tag; /* last used tag in IMtable */ | 72 | int last_tag; /* last used tag in IMtable */ |
73 | struct Ref *refArray; /* locked objects */ | 73 | struct Ref *refArray; /* locked objects */ |