9 #include <sys/socket.h>
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
16 #define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
18 #define PRINTF_LIKE(M,N)
22 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
23 #elif defined(S_SPLINT_S)
24 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
25 #define const /*@observer@*/ /*@temp@*/
27 #define UNUSED_ARG(ARG) ARG
30 int stricmp (const char *s1, const char *s2)
32 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
33 if (s2 == NULL) return *s1;
35 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
37 if (*s1 == '\0') break;
49 #define CHANNELLEN 200
53 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"
54 //the first char is a little bit different
56 // 1234567890123456789012345678901234567890123456789012345678 9012 62
57 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
58 #define VALID_NICK_CHARS_FIRST_LEN 62