move h_eq_ptr and h_hash_ptr into datastructures.c / internal.h

This commit is contained in:
Sven M. Hallberg 2013-05-08 15:54:29 +02:00
parent 5593b826e3
commit 66b0ed7bf1
3 changed files with 10 additions and 4 deletions

View file

@ -236,3 +236,10 @@ void h_hashtable_free(HHashTable* ht) {
h_arena_free(ht->arena, ht->contents);
}
bool h_eq_ptr(const void *p, const void *q) {
return (p==q);
}
HHashValue h_hash_ptr(const void *p) {
return (uintptr_t)p;
}