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