defs.h

Go to the documentation of this file.
00001 /* Set default values for any constants that should be in include files but
00002  *
00003  * (C) 2003-2007 Anope Team
00004  * Contact us at info@anope.org
00005  *
00006  * Please read COPYING and README for furhter details.
00007  *
00008  * Based on the original code of Epona by Lara.
00009  * Based on the original code of Services by Andy Church. 
00010  * 
00011  * 
00012  * $Id: defs.h 1265 2007-08-26 15:33:06Z geniusdex $ 
00013  *
00014  */
00015 
00016 /*************************************************************************/
00017 
00018 #ifndef NAME_MAX
00019 # define NAME_MAX 255
00020 #endif
00021 
00022 #ifndef BUFSIZ
00023 # define BUFSIZ 256
00024 #else
00025 # if BUFSIZ < 256
00026 #  define BUFSIZ 256
00027 # endif
00028 #endif
00029 
00030 /* Length of an array: */
00031 #define lenof(a)    (sizeof(a) / sizeof(*(a)))
00032 
00033 /* Telling compilers about printf()-like functions: */
00034 #ifdef __GNUC__
00035 # define FORMAT(type,fmt,start) __attribute__((format(type,fmt,start)))
00036 #else
00037 # define FORMAT(type,fmt,start)
00038 #endif
00039 
00040 /*************************************************************************/

Generated on Sun Dec 30 09:26:45 2007 for Anope by  doxygen 1.5.1-20070107