[READ-ONLY] Mirror of https://github.com/VibeDevelopers/Comet.
0

Configure Feed

Select the types of activity you want to include in your feed.

common.h: raison d'être is gone, so out it goes.

Fold whatever was left into ircd_defs.h

Elizabeth Myers (Mar 23, 2016, 9:33 AM -0500) 79435744 7ac3261f

+12 -97
-1
extensions/m_identify.c
··· 31 31 32 32 #include "stdinc.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "ircd.h" 36 35 #include "match.h" 37 36 #include "numeric.h"
-1
extensions/m_sendbans.c
··· 31 31 32 32 #include "stdinc.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "ircd.h" 36 35 #include "match.h" 37 36 #include "numeric.h"
-36
include/common.h
··· 1 - /* 2 - * ircd-ratbox: A slightly useful ircd. 3 - * common.h: An ircd header common to most code. 4 - * 5 - * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center 6 - * Copyright (C) 1996-2002 Hybrid Development Team 7 - * Copyright (C) 2002-2004 ircd-ratbox development team 8 - * 9 - * This program is free software; you can redistribute it and/or modify 10 - * it under the terms of the GNU General Public License as published by 11 - * the Free Software Foundation; either version 2 of the License, or 12 - * (at your option) any later version. 13 - * 14 - * This program is distributed in the hope that it will be useful, 15 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 - * GNU General Public License for more details. 18 - * 19 - * You should have received a copy of the GNU General Public License 20 - * along with this program; if not, write to the Free Software 21 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 22 - * USA 23 - */ 24 - 25 - #ifndef INCLUDED_common_h 26 - #define INCLUDED_common_h 27 - 28 - /* Just blindly define our own MIN/MAX macro */ 29 - 30 - #define IRCD_MAX(a, b) ((a) > (b) ? (a) : (b)) 31 - #define IRCD_MIN(a, b) ((a) < (b) ? (a) : (b)) 32 - 33 - /* readbuf size */ 34 - #define READBUF_SIZE 16384 35 - 36 - #endif /* INCLUDED_common_h */
+11
include/ircd_defs.h
··· 56 56 #define IRC_DEPRECATED 57 57 #endif 58 58 59 + #ifndef MAX 60 + #define MAX(a, b) ((a) > (b) ? (a) : (b)) 61 + #endif 62 + 63 + #ifndef MIN 64 + #define MIN(a, b) ((a) < (b) ? (a) : (b)) 65 + #endif 66 + 59 67 #define HOSTLEN 63 /* Length of hostname. Updated to */ 60 68 /* comply with RFC1123 */ 61 69 ··· 114 122 #else 115 123 #define PATRICIA_BITS 32 116 124 #endif 125 + 126 + /* Read buffer size */ 127 + #define READBUF_SIZE 16384 117 128 118 129 #endif /* INCLUDED_ircd_defs_h */
-1
include/s_conf.h
··· 33 33 #include "ircd_defs.h" 34 34 #include "class.h" 35 35 #include "client.h" 36 - #include "common.h" 37 36 38 37 struct Client; 39 38 struct DNSReply;
-1
ircd/cache.c
··· 32 32 33 33 #include "stdinc.h" 34 34 #include "ircd_defs.h" 35 - #include "common.h" 36 35 #include "s_conf.h" 37 36 #include "client.h" 38 37 #include "hash.h"
-1
ircd/channel.c
··· 26 26 #include "channel.h" 27 27 #include "chmode.h" 28 28 #include "client.h" 29 - #include "common.h" 30 29 #include "hash.h" 31 30 #include "hook.h" 32 31 #include "match.h"
+1 -2
ircd/chmode.c
··· 26 26 #include "stdinc.h" 27 27 #include "channel.h" 28 28 #include "client.h" 29 - #include "common.h" 30 29 #include "hash.h" 31 30 #include "hook.h" 32 31 #include "match.h" ··· 889 888 * also make sure it will always fit on a line with channel 890 889 * name etc. 891 890 */ 892 - if(strlen(mask) > IRCD_MIN(BANLEN, MODEBUFLEN - 5)) 891 + if(strlen(mask) > MIN(BANLEN, MODEBUFLEN - 5)) 893 892 { 894 893 sendto_one_numeric(source_p, ERR_INVALIDBAN, 895 894 form_str(ERR_INVALIDBAN),
-1
ircd/class.c
··· 27 27 28 28 #include "class.h" 29 29 #include "client.h" 30 - #include "common.h" 31 30 #include "ircd.h" 32 31 #include "numeric.h" 33 32 #include "s_conf.h"
-1
ircd/client.c
··· 27 27 28 28 #include "client.h" 29 29 #include "class.h" 30 - #include "common.h" 31 30 #include "hash.h" 32 31 #include "match.h" 33 32 #include "ircd.h"
-1
ircd/extban.c
··· 23 23 #include "stdinc.h" 24 24 #include "channel.h" 25 25 #include "client.h" 26 - #include "common.h" 27 26 28 27 ExtbanFunc extban_table[256] = { NULL }; 29 28
-1
ircd/hash.c
··· 27 27 #include "s_conf.h" 28 28 #include "channel.h" 29 29 #include "client.h" 30 - #include "common.h" 31 30 #include "hash.h" 32 31 #include "match.h" 33 32 #include "ircd.h"
-1
ircd/ircd.c
··· 31 31 #include "channel.h" 32 32 #include "class.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "hash.h" 36 35 #include "match.h" 37 36 #include "ircd_signal.h"
-1
ircd/newconf.c
··· 10 10 11 11 #include "newconf.h" 12 12 #include "ircd_defs.h" 13 - #include "common.h" 14 13 #include "logger.h" 15 14 #include "s_conf.h" 16 15 #include "s_user.h"
-1
ircd/packet.c
··· 25 25 #include "s_conf.h" 26 26 #include "s_serv.h" 27 27 #include "client.h" 28 - #include "common.h" 29 28 #include "ircd.h" 30 29 #include "parse.h" 31 30 #include "packet.h"
-1
ircd/parse.c
··· 27 27 #include "parse.h" 28 28 #include "client.h" 29 29 #include "channel.h" 30 - #include "common.h" 31 30 #include "hash.h" 32 31 #include "match.h" 33 32 #include "ircd.h"
-1
ircd/s_auth.c
··· 38 38 #include "s_auth.h" 39 39 #include "s_conf.h" 40 40 #include "client.h" 41 - #include "common.h" 42 41 #include "match.h" 43 42 #include "ircd.h" 44 43 #include "numeric.h"
-1
ircd/s_conf.c
··· 32 32 #include "channel.h" 33 33 #include "class.h" 34 34 #include "client.h" 35 - #include "common.h" 36 35 #include "hash.h" 37 36 #include "match.h" 38 37 #include "ircd.h"
-1
ircd/s_newconf.c
··· 32 32 33 33 #include "stdinc.h" 34 34 #include "ircd_defs.h" 35 - #include "common.h" 36 35 #include "s_conf.h" 37 36 #include "s_newconf.h" 38 37 #include "client.h"
-1
ircd/s_serv.c
··· 31 31 #include "s_serv.h" 32 32 #include "class.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "hash.h" 36 35 #include "match.h" 37 36 #include "ircd.h"
-1
ircd/s_user.c
··· 27 27 #include "channel.h" 28 28 #include "class.h" 29 29 #include "client.h" 30 - #include "common.h" 31 30 #include "hash.h" 32 31 #include "match.h" 33 32 #include "ircd.h"
-1
ircd/scache.c
··· 24 24 25 25 #include "stdinc.h" 26 26 #include "client.h" 27 - #include "common.h" 28 27 #include "match.h" 29 28 #include "ircd.h" 30 29 #include "numeric.h"
-1
ircd/send.c
··· 27 27 #include "channel.h" 28 28 #include "class.h" 29 29 #include "client.h" 30 - #include "common.h" 31 30 #include "match.h" 32 31 #include "ircd.h" 33 32 #include "numeric.h"
-1
ircd/supported.c
··· 72 72 73 73 #include "stdinc.h" 74 74 #include "client.h" 75 - #include "common.h" 76 75 #include "numeric.h" 77 76 #include "ircd.h" 78 77 #include "s_conf.h"
-1
modules/m_certfp.c
··· 29 29 30 30 #include "stdinc.h" 31 31 #include "client.h" 32 - #include "common.h" 33 32 #include "match.h" 34 33 #include "hash.h" 35 34 #include "ircd.h"
-1
modules/m_chghost.c
··· 13 13 #include "send.h" 14 14 #include "channel.h" 15 15 #include "client.h" 16 - #include "common.h" 17 16 #include "defaults.h" 18 17 #include "ircd.h" 19 18 #include "numeric.h"
-1
modules/m_dline.c
··· 26 26 #include "channel.h" 27 27 #include "class.h" 28 28 #include "client.h" 29 - #include "common.h" 30 29 #include "match.h" 31 30 #include "ircd.h" 32 31 #include "hostmask.h"
-1
modules/m_encap.c
··· 31 31 #include "send.h" 32 32 #include "channel.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "defaults.h" 36 35 #include "ircd.h" 37 36 #include "numeric.h"
-1
modules/m_etrace.c
··· 35 35 #include "hook.h" 36 36 #include "client.h" 37 37 #include "hash.h" 38 - #include "common.h" 39 38 #include "hash.h" 40 39 #include "match.h" 41 40 #include "ircd.h"
-1
modules/m_info.c
··· 26 26 #include "m_info.h" 27 27 #include "channel.h" 28 28 #include "client.h" 29 - #include "common.h" 30 29 #include "match.h" 31 30 #include "ircd.h" 32 31 #include "hook.h"
-1
modules/m_invite.c
··· 23 23 */ 24 24 25 25 #include "stdinc.h" 26 - #include "common.h" 27 26 #include "channel.h" 28 27 #include "client.h" 29 28 #include "hash.h"
-1
modules/m_kline.c
··· 26 26 #include "channel.h" 27 27 #include "class.h" 28 28 #include "client.h" 29 - #include "common.h" 30 29 #include "match.h" 31 30 #include "ircd.h" 32 31 #include "hostmask.h"
-1
modules/m_names.c
··· 25 25 #include "stdinc.h" 26 26 #include "channel.h" 27 27 #include "client.h" 28 - #include "common.h" 29 28 #include "hash.h" 30 29 #include "match.h" 31 30 #include "ircd.h"
-1
modules/m_oper.c
··· 24 24 25 25 #include "stdinc.h" 26 26 #include "client.h" 27 - #include "common.h" 28 27 #include "match.h" 29 28 #include "ircd.h" 30 29 #include "numeric.h"
-1
modules/m_operspy.c
··· 31 31 #include "send.h" 32 32 #include "channel.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "defaults.h" 36 35 #include "ircd.h" 37 36 #include "numeric.h"
-1
modules/m_privs.c
··· 31 31 32 32 #include "stdinc.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "numeric.h" 36 35 #include "send.h" 37 36 #include "msg.h"
-1
modules/m_rehash.c
··· 25 25 #include "stdinc.h" 26 26 #include "client.h" 27 27 #include "channel.h" 28 - #include "common.h" 29 28 #include "match.h" 30 29 #include "ircd.h" 31 30 #include "s_serv.h"
-1
modules/m_restart.c
··· 24 24 25 25 #include "stdinc.h" 26 26 #include "client.h" 27 - #include "common.h" 28 27 #include "match.h" 29 28 #include "ircd.h" 30 29 #include "numeric.h"
-1
modules/m_scan.c
··· 34 34 #include "hook.h" 35 35 #include "client.h" 36 36 #include "hash.h" 37 - #include "common.h" 38 37 #include "hash.h" 39 38 #include "match.h" 40 39 #include "ircd.h"
-1
modules/m_services.c
··· 32 32 #include "send.h" 33 33 #include "channel.h" 34 34 #include "client.h" 35 - #include "common.h" 36 35 #include "defaults.h" 37 36 #include "ircd.h" 38 37 #include "numeric.h"
-1
modules/m_set.c
··· 31 31 #include "numeric.h" 32 32 #include "s_serv.h" 33 33 #include "send.h" 34 - #include "common.h" 35 34 #include "channel.h" 36 35 #include "s_conf.h" 37 36 #include "s_newconf.h"
-1
modules/m_signon.c
··· 32 32 #include "send.h" 33 33 #include "channel.h" 34 34 #include "client.h" 35 - #include "common.h" 36 35 #include "defaults.h" 37 36 #include "ircd.h" 38 37 #include "numeric.h"
-1
modules/m_snote.c
··· 34 34 #include "hook.h" 35 35 #include "client.h" 36 36 #include "hash.h" 37 - #include "common.h" 38 37 #include "hash.h" 39 38 #include "match.h" 40 39 #include "ircd.h"
-1
modules/m_starttls.c
··· 20 20 21 21 #include "stdinc.h" 22 22 #include "client.h" 23 - #include "common.h" 24 23 #include "match.h" 25 24 #include "hash.h" 26 25 #include "ircd.h"
-1
modules/m_stats.c
··· 25 25 #include "stdinc.h" 26 26 #include "class.h" /* report_classes */ 27 27 #include "client.h" /* Client */ 28 - #include "common.h" 29 28 #include "match.h" 30 29 #include "ircd.h" /* me */ 31 30 #include "listener.h" /* show_ports */
-1
modules/m_svinfo.c
··· 23 23 */ 24 24 #include "stdinc.h" 25 25 #include "client.h" 26 - #include "common.h" 27 26 #include "match.h" 28 27 #include "ircd.h" 29 28 #include "numeric.h"
-1
modules/m_tb.c
··· 32 32 #include "send.h" 33 33 #include "channel.h" 34 34 #include "client.h" 35 - #include "common.h" 36 35 #include "defaults.h" 37 36 #include "ircd.h" 38 37 #include "match.h"
-1
modules/m_testmask.c
··· 34 34 /* List of ircd includes from ../include/ */ 35 35 #include "stdinc.h" 36 36 #include "client.h" 37 - #include "common.h" 38 37 #include "ircd.h" 39 38 #include "match.h" 40 39 #include "numeric.h"
-1
modules/m_tginfo.c
··· 29 29 30 30 #include "stdinc.h" 31 31 #include "client.h" 32 - #include "common.h" 33 32 #include "match.h" 34 33 #include "hash.h" 35 34 #include "ircd.h"
-1
modules/m_trace.c
··· 27 27 #include "hook.h" 28 28 #include "client.h" 29 29 #include "hash.h" 30 - #include "common.h" 31 30 #include "hash.h" 32 31 #include "match.h" 33 32 #include "ircd.h"
-1
modules/m_who.c
··· 22 22 * USA 23 23 */ 24 24 #include "stdinc.h" 25 - #include "common.h" 26 25 #include "client.h" 27 26 #include "channel.h" 28 27 #include "hash.h"
-1
modules/m_whois.c
··· 23 23 */ 24 24 25 25 #include "stdinc.h" 26 - #include "common.h" 27 26 #include "client.h" 28 27 #include "hash.h" 29 28 #include "channel.h"
-1
modules/m_whowas.c
··· 25 25 #include "stdinc.h" 26 26 #include "whowas.h" 27 27 #include "client.h" 28 - #include "common.h" 29 28 #include "hash.h" 30 29 #include "match.h" 31 30 #include "ircd.h"
-1
modules/m_xline.c
··· 32 32 #include "send.h" 33 33 #include "channel.h" 34 34 #include "client.h" 35 - #include "common.h" 36 35 #include "defaults.h" 37 36 #include "class.h" 38 37 #include "ircd.h"
-1
modules/core/m_ban.c
··· 31 31 #include "send.h" 32 32 #include "channel.h" 33 33 #include "client.h" 34 - #include "common.h" 35 34 #include "defaults.h" 36 35 #include "ircd.h" 37 36 #include "match.h"
-1
modules/core/m_error.c
··· 24 24 25 25 #include "stdinc.h" 26 26 #include "client.h" 27 - #include "common.h" 28 27 #include "ircd.h" 29 28 #include "numeric.h" 30 29 #include "send.h"
-1
modules/core/m_join.c
··· 25 25 #include "stdinc.h" 26 26 #include "channel.h" 27 27 #include "client.h" 28 - #include "common.h" 29 28 #include "hash.h" 30 29 #include "match.h" 31 30 #include "ircd.h"
-1
modules/core/m_message.c
··· 26 26 #include "client.h" 27 27 #include "ircd.h" 28 28 #include "numeric.h" 29 - #include "common.h" 30 29 #include "s_conf.h" 31 30 #include "s_serv.h" 32 31 #include "msg.h"
-1
modules/core/m_nick.c
··· 40 40 #include "msg.h" 41 41 #include "parse.h" 42 42 #include "modules.h" 43 - #include "common.h" 44 43 #include "packet.h" 45 44 #include "scache.h" 46 45 #include "s_newconf.h"
-1
modules/core/m_part.c
··· 25 25 #include "stdinc.h" 26 26 #include "channel.h" 27 27 #include "client.h" 28 - #include "common.h" 29 28 #include "hash.h" 30 29 #include "match.h" 31 30 #include "ircd.h"
-1
modules/core/m_server.c
··· 24 24 25 25 #include "stdinc.h" 26 26 #include "client.h" /* client struct */ 27 - #include "common.h" 28 27 #include "hash.h" /* add_to_client_hash */ 29 28 #include "match.h" 30 29 #include "ircd.h" /* me */
-1
modules/core/m_squit.c
··· 24 24 25 25 #include "stdinc.h" 26 26 #include "client.h" 27 - #include "common.h" 28 27 #include "match.h" 29 28 #include "ircd.h" 30 29 #include "numeric.h"