Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

defines.h

Go to the documentation of this file.
00001 
00009 /* {{{ Initial headers */
00010 /*
00011  * $LastChangedDate: 2004-04-01 18:34:17 +0200 (Thu, 01 Apr 2004) $
00012  * $LastChangedRevision: 50 $
00013  * $LastChangedBy: ckruse $
00014  *
00015  */
00016 /* }}} */
00017 
00018 #ifndef __DEFINES_H
00019 #define __DEFINES_H
00020 
00021 #define LOG_ERR 1 
00022 #define LOG_STD 2 
00023 #define LOG_DBG 3 
00025 #define TIMER 5L 
00027 /* the dtd uri */
00028 #define FORUM_DTD "http://cforum.teamone.de/forum.dtd" 
00030 /* some limits */
00031 #define PRERESERVE 5 
00032 #define MAXLINE    BUFSIZ 
00034 #define LISTENQ 1024 
00036 #define INIT_HANDLER            1 
00037 #define VIEW_HANDLER            2 
00038 #define VIEW_INIT_HANDLER       3 
00039 #define VIEW_LIST_HANDLER       4 
00040 #define POSTING_HANDLER         5 
00041 #define CONNECT_INIT_HANDLER    6 
00042 #define AUTH_HANDLER            7 
00043 #define ARCHIVE_HANDLER         8 
00044 #define NEW_POST_HANDLER        9 
00046 #define MOD_MAX                 9 
00048 #define FLT_OK       0 
00049 #define FLT_DECLINE -1 
00050 #define FLT_EXIT    -2 
00052 #define init_modules() memset(&Modules,0,(MOD_MAX+1) * sizeof(t_array)) 
00054 #define CF_KILL_DELETED 0 
00055 #define CF_KEEP_DELETED 1 
00057 #ifdef DONT_HAS_u_char
00058 typedef unsigned char u_char; 
00059 #endif
00060 
00061 #if SIZEOF_SHORT != 2
00062 #error "short has to be 2 bytes!"
00063 #endif
00064 
00065 #if SIZEOF_LONG < 4
00066 #error "long has to be at least 4 bytes!"
00067 #endif
00068 
00069 #if SIZEOF_LONG_LONG < 8
00070 #error "long long has to be at least 8 bytes!"
00071 #endif
00072 
00073 #ifdef DONT_HAS_int_16_t
00074 typedef short int16_t;               
00075 #endif
00076 
00077 #ifdef DONT_HAS_u_int16_t
00078 typedef unsigned short u_int16_t;     
00079 #endif
00080 
00081 #ifdef DONT_HAS_int32_t
00082 typedef long int32_t;                
00083 #endif
00084 
00085 #ifdef DONT_HAS_u_int32_t
00086 typedef unsigned long u_int32_t;      
00087 #endif
00088 
00089 #ifdef DONT_HAS_int64_t
00090 typedef long long int64_t;           
00091 #endif
00092 
00093 #ifdef DONT_HAS_u_int64_t
00094 typedef unsigned long long u_int64_t; 
00095 #endif
00096 
00097 #ifndef HAVE_STRFTIME
00098 #error "We need strftime()!"
00099 #endif
00100 
00101 #ifndef HAVE_GETENV
00102 #error "getenv() is needed!"
00103 #endif
00104 
00105 #ifndef HAVE_GETTIMEOFDAY
00106 #error "gettimeofday() is needed!"
00107 #endif
00108 
00109 #ifndef HAVE_MKDIR
00110 #error "mkdir() is needed!"
00111 #endif
00112 
00113 #ifndef HAVE_MKTIME
00114 #error "mktime() is needed!"
00115 #endif
00116 
00117 #ifndef HAVE_SNPRINTF
00118 #error "snprintf() is needed!"
00119 #endif
00120 
00121 #ifndef HAVE_SOCKET
00122 #error "socket() is needed!"
00123 #endif
00124 
00125 #ifndef HAVE_STRERROR
00126 #error "strerror() is needed!"
00127 #endif
00128 
00129 #ifndef HAVE_STRTOL
00130 #error "strtol() is needed!"
00131 #endif
00132 
00133 #ifndef HAVE_STRTOUL
00134 #error "strtoul() is needed!"
00135 #endif
00136 
00137 #ifndef HAVE_STRTOLL
00138 #error "strtoll() is needed!"
00139 #endif
00140 
00141 #ifndef HAVE_STRTOULL
00142 #error "strtoull() is needed!"
00143 #endif
00144 
00145 //#ifndef size_t
00146 //#define size_t unsigned
00147 //#endif
00148 
00149 #endif
00150 
00151 /* eof */

Generated on Sun Apr 25 16:37:37 2004 for Classic Forum by doxygen 1.3.5