1 /*-----------------------------------------------------------------------------
2 * $Id: Hash.h,v 1.1 1999/01/27 12:11:26 simonm Exp $
4 * (c) The GHC Team, 1999
6 * Prototypes for Hash.c
8 * -------------------------------------------------------------------------- */
10 typedef struct hashtable HashTable; /* abstract */
12 void * lookupHashTable ( HashTable *table, StgWord key );
13 void insertHashTable ( HashTable *table, StgWord key, void *data );
14 void * removeHashTable ( HashTable *table, StgWord key, void *data );
15 void freeHashTable ( HashTable *table, void (*freeDataFun)(void *) );
16 HashTable * allocHashTable ( void );