(svn r20886) -Codechange: Make init_Hash a method.

This commit is contained in:
alberth
2010-10-02 19:46:24 +00:00
parent 6f85b46eeb
commit 4af4d268d8
3 changed files with 17 additions and 23 deletions

View File

@@ -86,6 +86,8 @@ struct Hash {
* there are any Nodes in the bucket */
bool *buckets_in_use;
void Init(Hash_HashProc *hash, uint num_buckets);
void *Get(uint key1, uint key2) const;
void *Set(uint key1, uint key2, void *value);
@@ -103,15 +105,4 @@ struct Hash {
}
};
/* Call these function to manipulate a hash */
/* Call these function to create/destroy a hash */
/**
* Builds a new hash in an existing struct. Make sure that hash() always
* returns a hash less than num_buckets! Call delete_hash after use
*/
void init_Hash(Hash *h, Hash_HashProc *hash, uint num_buckets);
#endif /* QUEUE_H */