comparison PrivateHash.c @ 22:f5972b1ddb29

More progress towards getting common_ancestor working
author Some Random Person <seanhalle@yahoo.com>
date Tue, 13 Mar 2012 18:31:05 -0700
parents 774396bc53b4
children ac99f4a8ce22
comparison
equal deleted inserted replaced
11:078a29c98873 12:8a0db7afdd70
227 void 227 void
228 freeHashEntryUsing( HashEntry *entry, HashTable *table ) 228 freeHashEntryUsing( HashEntry *entry, HashTable *table )
229 { 229 {
230 if( entry->content != NULL ) 230 if( entry->content != NULL )
231 (*(table->freeEntryContentFn))( entry->content ); 231 (*(table->freeEntryContentFn))( entry->content );
232 VMS_int__free( entry->key ); //was VMS__malloc'd above, so free it 232 VMS_int__free( entry->key ); //was VMS_int__malloc'd above, so free it
233 VMS_int__free( entry ); 233 VMS_int__free( entry );
234 } 234 }
235 235
236 void 236 void
237 freeHashEntryButNotContent( HashEntry *entry ) 237 freeHashEntryButNotContent( HashEntry *entry )
238 { 238 {
239 VMS_int__free( entry->key ); //was VMS__malloc'd above, so free it 239 VMS_int__free( entry->key ); //was VMS_int__malloc'd above, so free it
240 VMS_int__free( entry ); 240 VMS_int__free( entry );
241 } 241 }
242 242