|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T h
Length: 800 (0x320)
Types: TextFile
Names: »hash.h«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
└─⟦ca1f037a2⟧ »./bash-1.04.tar.Z«
└─⟦46465a4db⟧
└─⟦this⟧ »bash-1.04/hash.h«
/* hash.h -- the data structures used in hashing in Gsh. */
typedef struct bucket_contents {
struct bucket_contents *next; /* The next item whose key hashes to this bucket. */
char *key; /* What we look up. */
char *data; /* What we really want. */
int times_found; /* Number of times this item has been looked up. */
} BUCKET_CONTENTS;
typedef struct hash_table {
BUCKET_CONTENTS **bucket_array; /* Where the data is kept. */
int nbuckets; /* How many buckets does this table have. */
int nentries; /* How many entries does this table have. */
} HASH_TABLE;
extern BUCKET_CONTENTS
*find_hash_item (), *remove_hash_item (), *add_hash_item (),
*get_hash_bucket ();
extern int hash_string ();
extern HASH_TABLE *make_hash_table ();
#ifndef NULL
#define NULL 0x0
#endif