diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-10 13:33:20 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-10 13:33:20 -0300 |
| commit | 330e51bed3159aa83dcc9cc559c22e7d84d37604 (patch) | |
| tree | 8d11540f124fe432e12296c85091947161fb3886 /lstate.h | |
| parent | 44b71ca81696dbec561c0172d1b81533f1c2153e (diff) | |
| download | lua-330e51bed3159aa83dcc9cc559c22e7d84d37604.tar.gz lua-330e51bed3159aa83dcc9cc559c22e7d84d37604.tar.bz2 lua-330e51bed3159aa83dcc9cc559c22e7d84d37604.zip | |
string hash uses one single hash table
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.h,v 1.31 2000/03/30 17:19:48 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.32 2000/05/08 19:32:53 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 */ | 45 | long nuse; /* number of elements */ |
| 46 | TString **hash; | 46 | TString **hash; |
| 47 | } stringtable; | 47 | } stringtable; |
| 48 | 48 | ||
| @@ -66,7 +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 | stringtable *string_root; /* array of hash tables for strings and udata */ | 69 | stringtable strt; /* hash table for strings */ |
| 70 | stringtable udt; /* hash table for udata */ | ||
| 70 | Hash *gt; /* table for globals */ | 71 | Hash *gt; /* table for globals */ |
| 71 | struct IM *IMtable; /* table for tag methods */ | 72 | struct IM *IMtable; /* table for tag methods */ |
| 72 | int last_tag; /* last used tag in IMtable */ | 73 | int last_tag; /* last used tag in IMtable */ |
| @@ -82,8 +83,5 @@ struct lua_State { | |||
| 82 | }; | 83 | }; |
| 83 | 84 | ||
| 84 | 85 | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | #endif | 86 | #endif |
| 89 | 87 | ||
