X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/aa3c7323761d6e546f0581a5bb78543517fc6892..3fa27fe787e1d1c108c204999513bc77469f89b0:/include/hash.h diff --git a/include/hash.h b/include/hash.h index 2f91fa0..cc4e480 100644 --- a/include/hash.h +++ b/include/hash.h @@ -1,115 +1,109 @@ -/* - * ircd-ratbox: A slightly useful ircd. - * hash.h: A header for the ircd hashtable code. - * - * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center - * Copyright (C) 1996-2002 Hybrid Development Team - * Copyright (C) 2002-2005 ircd-ratbox development team - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * - * $Id: hash.h 24794 2007-12-28 02:36:59Z androsyn $ - */ - -#ifndef INCLUDED_hash_h -#define INCLUDED_hash_h - -extern struct Dictionary *nd_dict; - -extern rb_dlink_list resvTable[]; -extern rb_dlink_list ndTable[]; - -/* Magic value for FNV hash functions */ -#define FNV1_32_INIT 0x811c9dc5UL - -/* Client hash table size, used in hash.c/s_debug.c */ -#define U_MAX_BITS 17 -#define U_MAX (1<