File: hash.h

package info (click to toggle)
ircii-pana 75-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,448 kB
  • ctags: 7,556
  • sloc: ansic: 82,667; makefile: 989; tcl: 153; sh: 124
file content (36 lines) | stat: -rw-r--r-- 707 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * hash.h: header file for hash.c
 *
 * Written by Scott H Kilau
 *
 * CopyRight(c) 1997
 *
 * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
 *
 * @(#)$Id: hash.h,v 1.0 1995/01/24 11:21:40 shk $
 */

#ifndef _HASH_H_
#define _HASH_H_

#define NICKLIST_HASHSIZE 79
#define WHOWASLIST_HASHSIZE 271

#ifndef REMOVE_FROM_LIST
# define REMOVE_FROM_LIST 1
#endif


#include "struct.h"

/* hashentry: structure for all hash lists we make. 
 * quite generic, but powerful.
 */
typedef	struct	hashentry
{
	void *list;		/* our linked list, generic void * */
	unsigned short hits;	/* how many hits this spot has gotten */
	unsigned short links;	/* how many links we have at this spot */
}	HashEntry;

#endif