projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added .gitignore
[NeonServV5.git]
/
main.h
diff --git
a/main.h
b/main.h
index a3a6840cc58949479f456db90c70d85cb2784400..c154da3014f4f9661a9ea4419c7d8101c803f3ce 100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-1,6
+1,8
@@
#ifndef _main_h
#define _main_h
#ifndef _main_h
#define _main_h
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-11,6
+13,14
@@
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
+#include <stdarg.h>
+#include <time.h>
+
+#if __GNUC__
+#define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
+#else
+#define PRINTF_LIKE(M,N)
+#endif
#if __GNUC__ >= 2
#define UNUSED_ARG(ARG) ARG __attribute__((unused))
#if __GNUC__ >= 2
#define UNUSED_ARG(ARG) ARG __attribute__((unused))
@@
-21,13
+31,18
@@
#define UNUSED_ARG(ARG) ARG
#endif
#define UNUSED_ARG(ARG) ARG
#endif
+#define SOCKET_SELECT_TIME 2
#define NICKLEN 30
#define USERLEN 10
#define NICKLEN 30
#define USERLEN 10
+#define AUTHLEN 32
#define HOSTLEN 63
#define REALLEN 50
#define TOPICLEN 500
#define CHANNELLEN 200
#define HOSTLEN 63
#define REALLEN 50
#define TOPICLEN 500
#define CHANNELLEN 200
+#define MAXLEN 512
+#define TRIGGERLEN 50
+#define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
//valid nick chars
#define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"
//valid nick chars
#define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"
@@
-37,4
+52,9
@@
#define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
#define VALID_NICK_CHARS_FIRST_LEN 62
#define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
#define VALID_NICK_CHARS_FIRST_LEN 62
+#define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
+
+int stricmp (const char *s1, const char *s2);
+int stricmplen (const char *s1, const char *s2, int len);
+
#endif
\ No newline at end of file
#endif
\ No newline at end of file