~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to terps/nitfol/hash.h

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */