diff options
Diffstat (limited to 'src/misc/hash/hashGen.h')
-rw-r--r-- | src/misc/hash/hashGen.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/misc/hash/hashGen.h b/src/misc/hash/hashGen.h index fc1b82c3..e26a3c84 100644 --- a/src/misc/hash/hashGen.h +++ b/src/misc/hash/hashGen.h @@ -50,14 +50,17 @@ struct Hash_Gen_Entry_t_ struct Hash_Gen_Entry_t_ * pNext; }; +typedef int (*Hash_GenHashFunction_t)(void* key, int nBins); +typedef int (*Hash_GenCompFunction_t)(void* key, void* data); + struct Hash_Gen_t_ { int nSize; int nBins; - int (* fHash)(void *key, int nBins); - int (* fComp)(void *key, void *data); + Hash_GenHashFunction_t fHash; + Hash_GenCompFunction_t fComp; int fFreeKey; - Hash_Gen_Entry_t ** pArray; + Hash_Gen_Entry_t ** pArray; }; |