diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-05-06 11:30:27 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-05-06 11:30:27 -0300 |
commit | 1936a9e53bac819e3707a47998c9b5fb705c2b7c (patch) | |
tree | 8f8f57190af254943b1a042ab3c6d62ad7949392 /hash.h | |
parent | 820ec63bdf9722d670f2ab8497f639f5fee5942a (diff) | |
download | lua-1936a9e53bac819e3707a47998c9b5fb705c2b7c.tar.gz lua-1936a9e53bac819e3707a47998c9b5fb705c2b7c.tar.bz2 lua-1936a9e53bac819e3707a47998c9b5fb705c2b7c.zip |
tables may grow bigger than words.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | ** hash.h | 2 | ** hash.h |
3 | ** hash manager for lua | 3 | ** hash manager for lua |
4 | ** $Id: hash.h,v 2.10 1996/02/12 18:32:40 roberto Exp roberto $ | 4 | ** $Id: hash.h,v 2.11 1996/03/08 12:04:04 roberto Exp roberto $ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef hash_h | 7 | #ifndef hash_h |
@@ -19,16 +19,16 @@ typedef struct node | |||
19 | typedef struct Hash | 19 | typedef struct Hash |
20 | { | 20 | { |
21 | struct Hash *next; | 21 | struct Hash *next; |
22 | char mark; | ||
23 | Word nhash; | ||
24 | Word nuse; | ||
25 | Node *node; | 22 | Node *node; |
23 | int nhash; | ||
24 | int nuse; | ||
25 | char mark; | ||
26 | } Hash; | 26 | } Hash; |
27 | 27 | ||
28 | 28 | ||
29 | int lua_equalObj (Object *t1, Object *t2); | 29 | int lua_equalObj (Object *t1, Object *t2); |
30 | Word luaI_redimension (Word nhash); | 30 | int luaI_redimension (int nhash); |
31 | Hash *lua_createarray (Word nhash); | 31 | Hash *lua_createarray (int nhash); |
32 | void lua_hashmark (Hash *h); | 32 | void lua_hashmark (Hash *h); |
33 | Long lua_hashcollector (void); | 33 | Long lua_hashcollector (void); |
34 | Object *lua_hashget (Hash *t, Object *ref); | 34 | Object *lua_hashget (Hash *t, Object *ref); |