(svn r20881) -Codechange: Make Hash_Get a method.

This commit is contained in:
alberth
2010-10-02 19:39:34 +00:00
parent 6ea5643e40
commit 4ed94825b2
3 changed files with 10 additions and 9 deletions

View File

@@ -502,9 +502,13 @@ void *Hash_Set(Hash *h, uint key1, uint key2, void *value)
return NULL;
}
void *Hash_Get(const Hash *h, uint key1, uint key2)
/**
* Gets the value associated with the given key pair, or NULL when it is not
* present.
*/
void *Hash::Get(uint key1, uint key2) const
{
HashNode *node = Hash_FindNode(h, key1, key2, NULL);
HashNode *node = Hash_FindNode(this, key1, key2, NULL);
#ifdef HASH_DEBUG
debug("Found node: %p", node);