10 #include <sys/types.h>
11 #include <sys/socket.h>
12 #include <netinet/in.h>
13 #include <arpa/inet.h>
20 #define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
22 #define PRINTF_LIKE(M,N)
26 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
27 #elif defined(S_SPLINT_S)
28 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
29 #define const /*@observer@*/ /*@temp@*/
31 #define UNUSED_ARG(ARG) ARG
34 #define SOCKET_SELECT_TIME 2
42 #define CHANNELLEN 200
45 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
46 #define MAXLANGUAGES 5
49 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"
50 //the first char is a little bit different
52 // 1234567890123456789012345678901234567890123456789012345678 9012 62
53 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
54 #define VALID_NICK_CHARS_FIRST_LEN 62
56 #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
58 int stricmp (const char *s1, const char *s2);
59 int stricmplen (const char *s1, const char *s2, int len);