home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / in4wjcxu / other / irc / include / hash.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-14  |  1.2 KB  |  38 lines

  1. /************************************************************************
  2.  *   IRC - Internet Relay Chat, include/hash.h
  3.  *   Copyright (C) 1991 Darren Reed
  4.  *
  5.  *   This program is free software; you can redistribute it and/or modify
  6.  *   it under the terms of the GNU General Public License as published by
  7.  *   the Free Software Foundation; either version 1, or (at your option)
  8.  *   any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program; if not, write to the Free Software
  17.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. #ifndef    __hash_include__
  21. #define __hash_include__
  22.  
  23. typedef    struct    hashentry {
  24.     int    hits;
  25.     int    links;
  26.     void    *list;
  27.     } aHashEntry;
  28.  
  29. #ifndef    DEBUGMODE
  30. #define    HASHSIZE    8009    /* prime number */
  31. #define    CHANNELHASHSIZE    2003    /* prime number */
  32. #else
  33. extern    int    HASHSIZE;
  34. extern    int    CHANNELHASHSIZE;
  35. #endif
  36.  
  37. #endif    /* __hash_include__ */
  38.