4 #define NEONSERV_VERSION "5.0.1-dev"
12 #include <sys/types.h>
13 #include <sys/socket.h>
14 #include <netinet/in.h>
15 #include <arpa/inet.h>
22 #define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
24 #define PRINTF_LIKE(M,N)
28 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
29 #elif defined(S_SPLINT_S)
30 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
31 #define const /*@observer@*/ /*@temp@*/
33 #define UNUSED_ARG(ARG) ARG
36 #define STRINGIFY_(x) #x
37 #define STRINGIFY(x) STRINGIFY_(x)
40 #if defined(__GNUC_PATCHLEVEL__)
41 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) "." STRINGIFY(__GNUC_PATCHLEVEL__)
43 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__)
45 #elif defined (__IMAGECRAFT__)
46 #define COMPILER "ICCAVR"
48 #define COMPILER "Unknown"
51 #define SOCKET_SELECT_TIME 2
59 #define CHANNELLEN 200
62 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
63 #define MAXLANGUAGES 5
65 #define INVITE_TIMEOUT 30
68 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^-_`"
69 //the first char is a little bit different
71 // 1234567890123456789012345678901234567890123456789012345678 9012 62
72 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
73 #define VALID_NICK_CHARS_FIRST_LEN 62
75 #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
77 extern time_t start_time;
79 int stricmp (const char *s1, const char *s2);
80 int stricmplen (const char *s1, const char *s2, int len);