diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-02-26 14:38:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-02-26 14:38:41 -0300 |
commit | 131d66efd2dc26b05bcb2bdaf67f5175f3eda1aa (patch) | |
tree | e912e35e04883c24e89917ee3d94b8fa574f6294 /hash.c | |
parent | bbf1b3060a1aa4e5ec3235a560d3d054457e957d (diff) | |
download | lua-131d66efd2dc26b05bcb2bdaf67f5175f3eda1aa.tar.gz lua-131d66efd2dc26b05bcb2bdaf67f5175f3eda1aa.tar.bz2 lua-131d66efd2dc26b05bcb2bdaf67f5175f3eda1aa.zip |
first step in implementing internal methods.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** hash manager for lua | 3 | ** hash manager for lua |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_hash="$Id: hash.c,v 2.32 1996/11/18 13:48:44 roberto Exp roberto $"; | 6 | char *rcs_hash="$Id: hash.c,v 2.33 1997/02/11 11:35:05 roberto Exp roberto $"; |
7 | 7 | ||
8 | 8 | ||
9 | #include "mem.h" | 9 | #include "mem.h" |
@@ -24,6 +24,8 @@ char *rcs_hash="$Id: hash.c,v 2.32 1996/11/18 13:48:44 roberto Exp roberto $"; | |||
24 | 24 | ||
25 | #define REHASH_LIMIT 0.70 /* avoid more than this % full */ | 25 | #define REHASH_LIMIT 0.70 /* avoid more than this % full */ |
26 | 26 | ||
27 | #define TagDefault LUA_T_ARRAY; | ||
28 | |||
27 | 29 | ||
28 | static Hash *listhead = NULL; | 30 | static Hash *listhead = NULL; |
29 | 31 | ||
@@ -121,6 +123,7 @@ static Hash *hashcreate (int nhash) | |||
121 | nhash(t) = nhash; | 123 | nhash(t) = nhash; |
122 | nuse(t) = 0; | 124 | nuse(t) = 0; |
123 | markarray(t) = 0; | 125 | markarray(t) = 0; |
126 | t->htag = TagDefault; | ||
124 | return t; | 127 | return t; |
125 | } | 128 | } |
126 | 129 | ||