Anope IRC Services  Version 1.8
defs.h
Go to the documentation of this file.
1 /* Set default values for any constants that should be in include files but
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  *
12  *
13  */
14 
15 /*************************************************************************/
16 
17 #ifndef NAME_MAX
18 # define NAME_MAX 255
19 #endif
20 
21 #ifndef BUFSIZ
22 # define BUFSIZ 256
23 #else
24 # if BUFSIZ < 256
25 # define BUFSIZ 256
26 # endif
27 #endif
28 
29 /* Length of an array: */
30 #define lenof(a) (sizeof(a) / sizeof(*(a)))
31 
32 /* Telling compilers about printf()-like functions: */
33 #ifdef __GNUC__
34 # define FORMAT(type,fmt,start) __attribute__((format(type,fmt,start)))
35 #else
36 # define FORMAT(type,fmt,start)
37 #endif
38 
39 /*************************************************************************/