9 #include <sys/socket.h>
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
16 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
17 #elif defined(S_SPLINT_S)
18 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
19 #define const /*@observer@*/ /*@temp@*/
21 #define UNUSED_ARG(ARG) ARG
24 int stricmp (const char *s1, const char *s2)
26 if (s1 == NULL) return s2 == NULL ? 0 : -(*s2);
27 if (s2 == NULL) return *s1;
29 while ((c1 = tolower (*s1)) == (c2 = tolower (*s2)))
31 if (*s1 == '\0') break;
43 #define CHANNELLEN 200
46 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"
47 //the first char is a little bit different
49 // 1234567890123456789012345678901234567890123456789012345678 9012 62
50 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
51 #define VALID_NICK_CHARS_FIRST_LEN 62