# HG changeset patch # User Me@portablequad # Date 1329039960 28800 # Node ID 774396bc53b4899cfe41695ce37eef21bc762b3b # Parent 64a94ec0e2a475f8a47dda1fae22b94e686a4d37 updated for VMS name chgs from VMS__malloc to VMS_int__malloc diff -r 64a94ec0e2a4 -r 774396bc53b4 PrivateHash.c --- a/PrivateHash.c Sat Feb 11 18:19:13 2012 -0800 +++ b/PrivateHash.c Sun Feb 12 01:46:00 2012 -0800 @@ -12,11 +12,11 @@ HashTable * makeHashTable( int numHashSlots, FreeEntryContentFnPtr freeFn ) { HashTable * retTable; - retTable = VMS__malloc( sizeof( HashTable ) ); + retTable = VMS_int__malloc( sizeof( HashTable ) ); retTable->freeEntryContentFn = freeFn; - retTable->entries = VMS__malloc( numHashSlots * sizeof(HashEntry *) ); + retTable->entries = VMS_int__malloc( numHashSlots * sizeof(HashEntry *) ); retTable->numEntries = 0; retTable->tableSz = numHashSlots; @@ -34,7 +34,7 @@ oldEntries = table->entries; newTableSz = 2 * oldTableSz + 1; - newEntries = VMS__malloc( newTableSz * sizeof(HashEntry *) ); + newEntries = VMS_int__malloc( newTableSz * sizeof(HashEntry *) ); table->tableSz = newTableSz; table->entries = newEntries; @@ -110,9 +110,9 @@ hashEntry = getEntryFromTable( key, table ); if( hashEntry == NULL ) { hashIdx = hashThisKey( key, table->tableSz ); - hashEntry = (HashEntry*) VMS__malloc( sizeof( HashEntry ) ); + hashEntry = (HashEntry*) VMS_int__malloc( sizeof( HashEntry ) ); if( hashEntry == NULL ) return 0; - hashEntry->key = VMS__malloc( sizeof(hashkey_t) ); + hashEntry->key = VMS_int__malloc( sizeof(hashkey_t) ); if( hashEntry->key == NULL ) return 0; memcpy( hashEntry->key, key, sizeof(hashkey_t) ); hashEntry->next = (table->entries)[hashIdx]; @@ -229,14 +229,14 @@ { if( entry->content != NULL ) (*(table->freeEntryContentFn))( entry->content ); - VMS__free( entry->key ); //was VMS__malloc'd above, so free it - VMS__free( entry ); + VMS_int__free( entry->key ); //was VMS__malloc'd above, so free it + VMS_int__free( entry ); } void freeHashEntryButNotContent( HashEntry *entry ) { - VMS__free( entry->key ); //was VMS__malloc'd above, so free it - VMS__free( entry ); + VMS_int__free( entry->key ); //was VMS__malloc'd above, so free it + VMS_int__free( entry ); }