1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
/* - Internet Relay Chat, include/ircd_defs.h
* Copyright (C) 1990 Jarkko Oikarinen and
* University of Oulu, Computing Center
*
* 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.
*
*
*
*
* ircd_defs.h - Global size definitions for record entries used
* througout ircd. Please think 3 times before adding anything to this
* file.
*/
#ifndef INCLUDED_ircd_defs_h
#define INCLUDED_ircd_defs_h
#ifndef INCLUDED_config_h
#include "config.h"
#endif
#include "s_log.h"
#if !defined(CONFIG_H_LEVEL_6_1)
# error Incorrect config.h for this revision of ircd.
#endif
#include <stdlib.h>
#define HOSTLEN 63 /* Length of hostname. Updated to */
/* comply with RFC1123 */
#define NICKLEN 16 /* Necessary to put 9 here instead of 10
* if s_msg.c/m_nick has been corrected.
* This preserves compatibility with old
* servers --msa
*/
#define USERLEN 10
#define REALLEN 50
#define TOPICLEN 450 /* old value 90, truncated on other servers */
#define KILLLEN 90
#define CHANNELLEN 30
#define KEYLEN 23
#define BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */
#define MAXRECIPIENTS 20
#define MAXBANS 50 /* bans + exceptions together */
#define MAXBANS_PERM 500 /* bans + exceptions together */
#define MAXBANLENGTH 1024
#define MAXSILES 50
#define MAXSILELENGTH 128
#define OPERWALL_LEN 400 /* can be truncated on other servers */
#define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5)
#define MAX_DATE_STRING 32 /* maximum string length for a date string */
/*
* message return values
*/
#define CLIENT_EXITED -2
#define HANDLED_OK 0
/*
* Macros everyone uses :/ moved here from sys.h
*/
#ifdef MALLOC_LOG
#define MyFree(x) if ((x)) {malloc_log("MyFree() releasing %p", (void *)x); free((x));}
#else
/* free() is defined as accepting NULL input silently */
#define MyFree(x) free(x)
#endif
#define free_client(x) _free_client((x))
#define free_link(x) _free_link((x))
#define free_user(x,y) _free_user((x), (y))
#ifdef FLUD
#define free_fludbot(x) BlockHeapFree(free_fludbots, (x))
#endif
#endif /* INCLUDED_ircd_defs_h */
|