Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
36
include/hash.h
Normal file
36
include/hash.h
Normal file
@@ -0,0 +1,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.1.1.1 2003/04/11 01:09:07 dan Exp $
|
||||
*/
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user