Mercurial > hg > xemacs-beta
comparison src/hash.c @ 1726:a8d8f419b459
[xemacs-hg @ 2003-09-30 15:26:34 by james]
Add type information to xfree to avoid alias creation.
author | james |
---|---|
date | Tue, 30 Sep 2003 15:27:01 +0000 |
parents | f3437b56874d |
children | de9952d2ed18 |
comparison
equal
deleted
inserted
replaced
1725:7ff8f4d70aec | 1726:a8d8f419b459 |
---|---|
161 } | 161 } |
162 | 162 |
163 void | 163 void |
164 free_hash_table (struct hash_table *hash_table) | 164 free_hash_table (struct hash_table *hash_table) |
165 { | 165 { |
166 xfree (hash_table->harray); | 166 xfree (hash_table->harray, hentry *); |
167 xfree (hash_table); | 167 xfree (hash_table, struct hash_table *); |
168 } | 168 } |
169 | 169 |
170 struct hash_table* | 170 struct hash_table* |
171 make_hash_table (Elemcount size) | 171 make_hash_table (Elemcount size) |
172 { | 172 { |
205 hash_table->zero_set = old_zero_set; | 205 hash_table->zero_set = old_zero_set; |
206 hash_table->zero_entry = old_zero_entry; | 206 hash_table->zero_entry = old_zero_entry; |
207 rehash (old_harray, hash_table, old_size); | 207 rehash (old_harray, hash_table, old_size); |
208 } | 208 } |
209 | 209 |
210 xfree (old_harray); | 210 xfree (old_harray, hentry *); |
211 } | 211 } |
212 | 212 |
213 void | 213 void |
214 pregrow_hash_table_if_necessary (struct hash_table *hash_table, | 214 pregrow_hash_table_if_necessary (struct hash_table *hash_table, |
215 Elemcount breathing_room) | 215 Elemcount breathing_room) |