Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitchX
GitHub Repository: BitchX/BitchX1.3
Path: blob/master/include/hash.h
1069 views
1
/*
2
* hash.h: header file for hash.c
3
*
4
* Written by Scott H Kilau
5
*
6
* CopyRight(c) 1997
7
*
8
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
9
*
10
* @(#)$Id: hash.h 3 2008-02-25 09:49:14Z keaston $
11
*/
12
13
#ifndef _HASH_H_
14
#define _HASH_H_
15
16
#define NICKLIST_HASHSIZE 79
17
#define WHOWASLIST_HASHSIZE 271
18
19
#ifndef REMOVE_FROM_LIST
20
# define REMOVE_FROM_LIST 1
21
#endif
22
23
24
#include "struct.h"
25
26
/* hashentry: structure for all hash lists we make.
27
* quite generic, but powerful.
28
*/
29
typedef struct hashentry
30
{
31
void *list; /* our linked list, generic void * */
32
unsigned short hits; /* how many hits this spot has gotten */
33
unsigned short links; /* how many links we have at this spot */
34
} HashEntry;
35
36
#endif
37
38