1: /* $Header$ */
   2: 
   3: /*
   4:  * Hash table definitions
   5:  *
   6:  * Author: Peter J. Nicklin
   7:  */
   8: 
   9: /*
  10:  * Hash table block
  11:  */
  12: typedef struct _hblk
  13:     {
  14:     char *h_key;            /* points to key */
  15:     char *h_def;            /* points to definition string */
  16:     int h_val;          /* integer value */
  17:     struct _hblk *h_next;       /* ptr to next block */
  18:     } HASHBLK;
  19: /*
  20:  * Hash pointer table struct
  21:  */
  22: typedef struct _hash
  23:     {
  24:     HASHBLK **hashtab;      /* hash pointer table */
  25:     int hashsiz;            /* hash table size */
  26:     } HASH;
  27: /*
  28:  * Functions defined for hash tables
  29:  */
  30: extern HASHBLK *htbrm();        /* remove hash table block */
  31: extern int hthash();            /* compute hash value */
  32: extern HASH *htinit();          /* initialize hash table */
  33: extern HASHBLK *htinstall();        /* install hash table entry */
  34: extern HASHBLK *htlookup();     /* find hash table entry */
  35: extern void htrm();         /* remove hash table entry */

Defined struct's

_hash defined in line 22; never used
_hblk defined in line 12; used 2 times
  • in line 17(2)

Defined typedef's

HASH defined in line 26; used 1 times
  • in line 32
HASHBLK defined in line 18; used 4 times
Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 572
Valid CSS Valid XHTML 1.0 Strict