diff options
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 | ||
