X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=ca64ad205e6f3595d4f5a7c1b0b0cca2e3e3706b;hb=c7de505c919c5f550d848f9cafae99532bc1f789;hp=c642541f07ce486b712f5a3b0e719a438d9ea8da;hpb=139f5961a078dfd23a469d98c3942f42595854aa;p=ngircd-alex.git diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index c642541f..ca64ad20 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -105,9 +105,17 @@ typedef struct _Connection #endif } CONNECTION; -GLOBAL CONNECTION *My_Connections; -GLOBAL CONN_ID Pool_Size; -GLOBAL long WCounter; + +#ifdef CONN_MODULE_GLOBAL_INIT +CONNECTION *My_Connections; +CONN_ID Pool_Size; +long WCounter; +#else +extern CONNECTION *My_Connections; +extern CONN_ID Pool_Size; +extern long WCounter; +#endif + #define CONNECTION2ID(x) (long)(x - My_Connections) @@ -158,9 +166,7 @@ GLOBAL long Conn_GetAuthPing PARAMS((CONN_ID Idx)); GLOBAL void Conn_SetAuthPing PARAMS((CONN_ID Idx, long ID)); #endif -#ifdef DEBUG GLOBAL void Conn_DebugDump PARAMS((void)); -#endif #endif