Revision 12350,
624 bytes
checked in by ghudson, 26 years ago
(diff) |
Some RCS ID cleanup: delete $Log$ and replace other RCS keywords with $Id$.
|
Line | |
---|
1 | /* |
---|
2 | * $Id: hash.h,v 1.2 1999-01-22 23:17:08 ghudson Exp $ |
---|
3 | * |
---|
4 | * Copyright 1990, 1991 by the Massachusetts Institute of Technology. |
---|
5 | * |
---|
6 | * For copying and distribution information, please see the file |
---|
7 | * <mit-copyright.h>. |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _hash_h |
---|
12 | #define _hash_h |
---|
13 | |
---|
14 | #include <sys/types.h> |
---|
15 | |
---|
16 | /* Hash table declarations */ |
---|
17 | |
---|
18 | struct bucket { |
---|
19 | struct bucket *next; |
---|
20 | int key; |
---|
21 | caddr_t data; |
---|
22 | }; |
---|
23 | |
---|
24 | struct hash { |
---|
25 | int size; |
---|
26 | struct bucket **data; |
---|
27 | }; |
---|
28 | |
---|
29 | #define HASHSIZE 67 |
---|
30 | |
---|
31 | extern struct hash *create_hash(); |
---|
32 | extern caddr_t hash_lookup(); |
---|
33 | extern int hash_store(); |
---|
34 | extern caddr_t hash_give_any_value(); |
---|
35 | |
---|
36 | #endif /* _hash_h */ |
---|
Note: See
TracBrowser
for help on using the repository browser.