comparison src/hash.c @ 4990:8f0cf4fd3d2c

Automatic merge
author Ben Wing <ben@xemacs.org>
date Sat, 06 Feb 2010 04:01:46 -0600
parents 16112448d484
children 88bd4f3ef8e4
comparison
equal deleted inserted replaced
4989:d2ec55325515 4990:8f0cf4fd3d2c
172 } 172 }
173 173
174 void 174 void
175 free_hash_table (struct hash_table *hash_table) 175 free_hash_table (struct hash_table *hash_table)
176 { 176 {
177 xfree (hash_table->harray, hentry *); 177 xfree (hash_table->harray);
178 xfree (hash_table, struct hash_table *); 178 xfree (hash_table);
179 } 179 }
180 180
181 struct hash_table * 181 struct hash_table *
182 make_hash_table (Elemcount size) 182 make_hash_table (Elemcount size)
183 { 183 {
222 hash_table->zero_set = old_zero_set; 222 hash_table->zero_set = old_zero_set;
223 hash_table->zero_entry = old_zero_entry; 223 hash_table->zero_entry = old_zero_entry;
224 rehash (old_harray, hash_table, old_size); 224 rehash (old_harray, hash_table, old_size);
225 } 225 }
226 226
227 xfree (old_harray, hentry *); 227 xfree (old_harray);
228 } 228 }
229 229
230 void 230 void
231 pregrow_hash_table_if_necessary (struct hash_table *hash_table, 231 pregrow_hash_table_if_necessary (struct hash_table *hash_table,
232 Elemcount breathing_room) 232 Elemcount breathing_room)