1
--- deadwood-3.1.02/src/DwDict.c 2011-11-27 20:30:55.000000000 -0600
2
+++ deadwood-3.1.03/src/DwDict.c 2011-12-18 18:04:23.870403471 -0600
4
-/* Copyright (c) 2009 Sam Trenholme
5
+/* Copyright (c) 2009, 2011 Sam Trenholme
10
#include "DwStr_functions.h"
13
+/* Keep -Wall happy. We can "legally" call this since we are a, if you
14
+ * will, "derived class" of DwHash.c */
15
+uint32_t dwh_hash_compress(dw_str *obj);
17
/* Initialize a Deadwood dictionary store */
18
dwd_dict *dwd_init() {
19
return dwh_hash_init(2);
26
+ count = dwh_hash_compress(key) & hash->mask; /* Fast lookup */
29
/* Look for the key */
30
- for(count = 0; count <= hash->mask; count++) {
31
+ for(;count <= hash->mask; count++) {
32
point = hash->hash[count];
33
for(noloop = 0; noloop < 10000 && point != 0; noloop++) {