(svn r20883) -Codechange: Make Hash_Delete a method.

This commit is contained in:
alberth
2010-10-02 19:42:42 +00:00
parent 8da98a516f
commit 5cd812aafc
3 changed files with 13 additions and 12 deletions

View File

@@ -89,6 +89,8 @@ struct Hash {
void *Get(uint key1, uint key2) const;
void *Set(uint key1, uint key2, void *value);
void *DeleteValue(uint key1, uint key2);
/**
* Gets the current size of the hash.
*/
@@ -100,12 +102,6 @@ struct Hash {
/* Call these function to manipulate a hash */
/**
* Deletes the value with the specified key pair from the hash and returns
* that value. Returns NULL when the value was not present. The value returned
* is _not_ free()'d!
*/
void *Hash_Delete(Hash *h, uint key1, uint key2);
/* Call these function to create/destroy a hash */