diff options
Diffstat (limited to 'rts/Hash.h')
-rw-r--r-- | rts/Hash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/Hash.h b/rts/Hash.h index ebefd6f6c4..5d085b033c 100644 --- a/rts/Hash.h +++ b/rts/Hash.h @@ -33,6 +33,10 @@ int keyCountHashTable (HashTable *table); // int keysHashTable(HashTable *table, StgWord keys[], int szKeys); +typedef void (*MapHashFn)(void *data, StgWord key, const void *value); + +void mapHashTable(HashTable *table, void *data, MapHashFn fn); + /* Hash table access where the keys are C strings (the strings are * assumed to be allocated by the caller, and mustn't be deallocated * until the corresponding hash table entry has been removed). |