The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

hash.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 1993, 1995 Christopher Seiwald.
00003  *
00004  * This file is part of Jam - see jam.c for Copyright information.
00005  */
00006 
00007 /*
00008  * hash.h - simple in-memory hashing routines 
00009  */
00010 
00011 typedef struct hashdata HASHDATA;
00012 
00013 struct hash *   hashinit( int datalen, char *name );
00014 int             hashitem( struct hash *hp, HASHDATA **data, int enter );
00015 void            hashdone( struct hash *hp );
00016 void        hashenumerate( struct hash *hp, void (*f)(void*,void*), void* data );
00017 int         hash_free( struct hash *hp, HASHDATA *data);
00018 
00019 # define        hashenter( hp, data ) (!hashitem( hp, data, !0 ))
00020 # define        hashcheck( hp, data ) hashitem( hp, data, 0 )

Generated on Mon Nov 8 17:07:35 2004 for MPT by  doxygen 1.3.9.1