X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=interpreters%2Fnitfol%2Fhash.h;fp=interpreters%2Fnitfol%2Fhash.h;h=10171a0b88979be7afe52f541d3955e02eb1dce1;hb=b1f1dc50b22b30c4d7176e1ff7c0805e80fe0724;hp=0000000000000000000000000000000000000000;hpb=50176172d18ae72d019181725c5629d45d21c548;p=projects%2Fchimara%2Fchimara.git diff --git a/interpreters/nitfol/hash.h b/interpreters/nitfol/hash.h new file mode 100644 index 0000000..10171a0 --- /dev/null +++ b/interpreters/nitfol/hash.h @@ -0,0 +1,29 @@ +/* This is a Cfunctions (version 0.24) generated header file. + Cfunctions is a free program for extracting headers from C files. + Get Cfunctions from `http://www.hayamasa.demon.co.uk/cfunctions'. */ + +/* This file was generated with: +`cfunctions -i hash.c' */ +#ifndef CFH_HASH_H +#define CFH_HASH_H + +/* From `hash.c': */ +typedef struct bucket { + char *key; + void *data; + struct bucket *next; +} +bucket; +typedef struct hash_table { + size_t size; + bucket **table; +} +hash_table; +hash_table * n_hash_construct_table (hash_table *table , size_t size ); +void * n_hash_insert (const char *key , void *data , hash_table *table ); +void * n_hash_lookup (const char *key , hash_table *table ); +void * n_hash_del (const char *key , hash_table *table ); +void n_hash_free_table (hash_table *table , void ( *func ) ( void * ) ); +void n_hash_enumerate (hash_table *table , void ( *func ) ( const char * , void * ) ); + +#endif /* CFH_HASH_H */