- removed version
HashInit and HashEmpty should exist
LinkedLists have the functions LLInit, LLEmpty, LLAlloc, and LLFree. LLAlloc calls LLInit, and LLFree calls LLEmpty.
HashTables only have HashAlloc and HashFree, the initialization/cleanup takes place in those functions. The model should be changed to have those functions act like LLInit/LLFree, and call separate functions called HashInit and HashEmpty.
Ultimately this will eliminate the requirement that all HashTables must be dynamically allocated.
Comments (5)
-
Account Deleted -
Account Deleted - changed version to 1.4.4
-
reporter HashEmpty would be confusing, apparently, so the function should be called HashDeinit instead. Someone wanting to empty a HashTable then continue to use it would either call HashDeinit followed by another HashInit, or HashEnum passed hash_enum_afree, as before. HashDeinit frees all internal data and leaves the table unusable until initialized again.
-
reporter -
assigned issue to
-
assigned issue to
-
reporter - changed status to resolved
HashInit and HashDeinit implemented in commit 993: aaffd06cabbd
- Log in to comment
Removing version: 1.5.0 (automated comment)