Added Nitfol and Frotz source code.
[projects/chimara/chimara.git] / interpreters / nitfol / hash.h
1 /* This is a Cfunctions (version 0.24) generated header file.
2    Cfunctions is a free program for extracting headers from C files.
3    Get Cfunctions from `http://www.hayamasa.demon.co.uk/cfunctions'. */
4
5 /* This file was generated with:
6 `cfunctions -i hash.c' */
7 #ifndef CFH_HASH_H
8 #define CFH_HASH_H
9
10 /* From `hash.c': */
11 typedef struct bucket {
12     char *key;
13     void *data;
14     struct bucket *next;
15
16 bucket;
17 typedef struct hash_table {
18     size_t size;
19     bucket **table;
20
21 hash_table;
22 hash_table * n_hash_construct_table (hash_table *table , size_t size );
23 void * n_hash_insert (const char *key , void *data , hash_table *table );
24 void * n_hash_lookup (const char *key , hash_table *table );
25 void * n_hash_del (const char *key , hash_table *table );
26 void n_hash_free_table (hash_table *table , void ( *func ) ( void * ) );
27 void n_hash_enumerate (hash_table *table , void ( *func ) ( const char * , void * ) );
28
29 #endif /* CFH_HASH_H */