mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 17:33:13 +02:00
Get rid of now meaningless include/hash.h
This commit is contained in:
@@ -368,6 +368,13 @@ extern time_t timeout_query_list(time_t);
|
||||
extern time_t expire_cache(time_t);
|
||||
extern void del_queries(char *);
|
||||
|
||||
/* Hash stuff */
|
||||
#define NICK_HASH_TABLE_SIZE 32768
|
||||
#define CHAN_HASH_TABLE_SIZE 32768
|
||||
#define WATCH_HASH_TABLE_SIZE 32768
|
||||
#define WHOWAS_HASH_TABLE_SIZE 32768
|
||||
#define THROTTLING_HASH_TABLE_SIZE 8192
|
||||
#define find_channel hash_find_channel
|
||||
extern uint64_t siphash(const char *in, const char *k);
|
||||
extern uint64_t siphash_raw(const char *in, size_t len, const char *k);
|
||||
extern uint64_t siphash_nocase(const char *in, const char *k);
|
||||
@@ -390,8 +397,10 @@ extern aChannel *hash_get_chan_bucket(uint64_t);
|
||||
extern aClient *hash_find_client(const char *, aClient *);
|
||||
extern aClient *hash_find_id(const char *, aClient *);
|
||||
extern aClient *hash_find_nickatserver(const char *, aClient *);
|
||||
extern aChannel *hash_find_channel(char *name, aChannel *chptr);
|
||||
extern aClient *hash_find_server(const char *, aClient *);
|
||||
extern struct MODVAR ThrottlingBucket *ThrottlingHash[THROTTLING_HASH_TABLE_SIZE];
|
||||
|
||||
extern char *find_by_aln(char *);
|
||||
extern char *convert2aln(int);
|
||||
extern int convertfromaln(char *);
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
/************************************************************************
|
||||
* Unreal Internet Relay Chat Daemon, include/hash.h
|
||||
* Copyright (C) 1991 Darren Reed
|
||||
*
|
||||
* 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __hash_include__
|
||||
#define __hash_include__
|
||||
|
||||
#define NICK_HASH_TABLE_SIZE 32768
|
||||
#define CHAN_HASH_TABLE_SIZE 32768
|
||||
#define WATCH_HASH_TABLE_SIZE 32768
|
||||
#define WHOWAS_HASH_TABLE_SIZE 32768
|
||||
#define THROTTLING_HASH_TABLE_SIZE 8192
|
||||
|
||||
#define find_channel hash_find_channel
|
||||
|
||||
#endif /* __hash_include__ */
|
||||
@@ -41,7 +41,6 @@
|
||||
#include <openssl/ripemd.h>
|
||||
#include "common.h"
|
||||
#include "sys.h"
|
||||
#include "hash.h"
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef _WIN32
|
||||
|
||||
+1
-1
@@ -420,7 +420,7 @@ src/s_numeric.obj: src/s_numeric.c $(INCLUDES) ./include/dbuf.h
|
||||
src/whowas.obj: src/whowas.c $(INCLUDES) ./include/dbuf.h ./include/whowas.h
|
||||
$(CC) $(CFLAGS) src/whowas.c
|
||||
|
||||
src/hash.obj: src/hash.c $(INCLUDES) ./include/hash.h
|
||||
src/hash.obj: src/hash.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) src/hash.c
|
||||
|
||||
src/crule.obj: src/crule.c $(INCLUDES)
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ BINLDFLAGS=@DYNAMIC_LDFLAGS@ @HARDEN_BINLDFLAGS@
|
||||
INCLUDES = ../include/auth.h ../include/channel.h \
|
||||
../include/class.h ../include/common.h ../include/config.h ../include/dbuf.h \
|
||||
../include/dynconf.h ../include/fdlist.h ../include/h.h \
|
||||
../include/hash.h ../include/inet.h ../include/ircsprintf.h \
|
||||
../include/inet.h ../include/ircsprintf.h \
|
||||
../include/license.h \
|
||||
../include/modules.h ../include/modversion.h ../include/msg.h \
|
||||
../include/numeric.h ../include/proto.h \
|
||||
|
||||
@@ -25,7 +25,7 @@ CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
INCLUDES = ../include/auth.h ../include/channel.h \
|
||||
../include/class.h ../include/common.h ../include/config.h ../include/dbuf.h \
|
||||
../include/dynconf.h ../include/fdlist.h ../include/h.h \
|
||||
../include/hash.h ../include/inet.h ../include/ircsprintf.h \
|
||||
../include/inet.h ../include/ircsprintf.h \
|
||||
../include/license.h \
|
||||
../include/modules.h ../include/modversion.h ../include/msg.h \
|
||||
../include/numeric.h ../include/proto.h ../include/res.h \
|
||||
|
||||
@@ -22,7 +22,7 @@ CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
INCLUDES = ../../include/auth.h ../../include/channel.h \
|
||||
../../include/class.h ../../include/common.h ../../include/config.h ../../include/dbuf.h \
|
||||
../../include/dynconf.h ../../include/fdlist.h ../../include/h.h \
|
||||
../../include/hash.h ../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/license.h \
|
||||
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
|
||||
../../include/numeric.h ../../include/proto.h ../../include/res.h \
|
||||
|
||||
@@ -22,7 +22,7 @@ CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
INCLUDES = ../../include/auth.h ../../include/channel.h \
|
||||
../../include/class.h ../../include/common.h ../../include/config.h ../../include/dbuf.h \
|
||||
../../include/dynconf.h ../../include/fdlist.h ../../include/h.h \
|
||||
../../include/hash.h ../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/license.h \
|
||||
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
|
||||
../../include/numeric.h ../../include/proto.h ../../include/res.h \
|
||||
|
||||
@@ -22,7 +22,7 @@ CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
INCLUDES = ../../include/auth.h ../../include/channel.h \
|
||||
../../include/class.h ../../include/common.h ../../include/config.h ../../include/dbuf.h \
|
||||
../../include/dynconf.h ../../include/fdlist.h ../../include/h.h \
|
||||
../../include/hash.h ../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/license.h \
|
||||
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
|
||||
../../include/numeric.h ../../include/proto.h ../../include/res.h \
|
||||
|
||||
@@ -22,7 +22,7 @@ CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
INCLUDES = ../../include/auth.h ../../include/channel.h \
|
||||
../../include/class.h ../../include/common.h ../../include/config.h ../../include/dbuf.h \
|
||||
../../include/dynconf.h ../../include/fdlist.h ../../include/h.h \
|
||||
../../include/hash.h ../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/license.h \
|
||||
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
|
||||
../../include/numeric.h ../../include/proto.h ../../include/res.h \
|
||||
|
||||
@@ -22,7 +22,7 @@ CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
INCLUDES = ../../include/auth.h ../../include/channel.h \
|
||||
../../include/class.h ../../include/common.h ../../include/config.h ../../include/dbuf.h \
|
||||
../../include/dynconf.h ../../include/fdlist.h ../../include/h.h \
|
||||
../../include/hash.h ../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/inet.h ../../include/ircsprintf.h \
|
||||
../../include/license.h \
|
||||
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
|
||||
../../include/numeric.h ../../include/proto.h ../../include/res.h \
|
||||
|
||||
Reference in New Issue
Block a user