| 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 | |
|---|
| 11 | typedef struct hashdata HASHDATA; |
|---|
| 12 | |
|---|
| 13 | struct hash * hashinit( int datalen, char *name ); |
|---|
| 14 | int hashitem( struct hash *hp, HASHDATA **data, int enter ); |
|---|
| 15 | void hashdone( struct hash *hp ); |
|---|
| 16 | void hashenumerate( struct hash *hp, void (*f)(void*,void*), void* data ); |
|---|
| 17 | int 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.