Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/jam_src/hash.h @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 617 bytes
Line 
1/*
2 * Copyright 1993, 1995 Christopher Seiwald.
3 *
4 * This file is part of Jam - see jam.c for Copyright information.
5 */
6
7/*
8 * hash.h - simple in-memory hashing routines
9 */
10
11typedef struct hashdata HASHDATA;
12
13struct hash *   hashinit( int datalen, char *name );
14int             hashitem( struct hash *hp, HASHDATA **data, int enter );
15void            hashdone( struct hash *hp );
16void        hashenumerate( struct hash *hp, void (*f)(void*,void*), void* data );
17int         hash_free( struct hash *hp, HASHDATA *data);
18
19# define        hashenter( hp, data ) (!hashitem( hp, data, !0 ))
20# define        hashcheck( hp, data ) hashitem( hp, data, 0 )
Note: See TracBrowser for help on using the repository browser.