Hash.h 660 Bytes
Newer Older
1
/*-----------------------------------------------------------------------------
2
 * $Id: Hash.h,v 1.2 2000/01/13 14:34:03 hwloidl Exp $
3 4 5 6 7 8 9 10 11 12 13 14 15 16
 *
 * (c) The GHC Team, 1999
 *
 * Prototypes for Hash.c
 *
 * -------------------------------------------------------------------------- */

typedef struct hashtable HashTable; /* abstract */

void *      lookupHashTable ( HashTable *table, StgWord key );
void        insertHashTable ( HashTable *table, StgWord key, void *data );
void *      removeHashTable ( HashTable *table, StgWord key, void *data );
void        freeHashTable   ( HashTable *table, void (*freeDataFun)(void *) );
HashTable * allocHashTable  ( void );
17