1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 08:23:12 +02:00

Fixed a module object bug involving static linking

This commit is contained in:
codemastr
2002-01-20 16:04:13 +00:00
parent 0b873a2b6b
commit eca91bee1f
5 changed files with 18 additions and 2 deletions
+1
View File
@@ -1119,3 +1119,4 @@ v- Fixed some bugreport stuff
- Fixed bug in m_tkl_line and various m_line functions (was checking for wrong # of paras)
- Recoded hooks to take advantage of the module object code
- Fixed a memory leak in hooks
- Fixed a bug with module objects involving static linking
+4 -1
View File
@@ -46,8 +46,11 @@
DLLFUNC int m_guest(aClient *cptr, aClient *sptr, int parc, char *parv[]);
/* Place includes here */
#ifdef DYNAMIC_LINKING
Module *Mod_Handle = NULL;
#else
#define Mod_Handle NULl
#endif
#ifndef DYNAMIC_LINKING
ModuleHeader m_guest_Header
#else
+4
View File
@@ -52,7 +52,11 @@
#endif
#include "modules/scan.h"
/* IRCd will fill with a pointer to this module */
#ifdef DYNAMIC_LINKING
Module *Mod_Handle = NULL;
#else
#define Mod_Handle NULL
#endif
struct SOCKADDR_IN Scan_endpoint;
static Scan_AddrStruct *Scannings = NULL;
+4
View File
@@ -68,7 +68,11 @@ static struct SOCKADDR_IN *xScan_endpoint = NULL;
extern void Eadd_scan();
extern struct SOCKADDR_IN Scan_endpoint;
#endif
#ifdef DYNAMIC_LINKING
Module *Mod_Handle = NULL;
#else
#define Mod_Handle NULL
#endif
static Mod_SymbolDepTable modsymdep[] =
{
MOD_Dep(Eadd_scan, xEadd_scan, "src/modules/scan.so"),
+5 -1
View File
@@ -66,7 +66,11 @@ extern struct SOCKADDR_IN Scan_endpoint;
void scan_socks_scan(Scan_AddrStruct *sr);
void scan_socks4_scan(Scan_AddrStruct *sr);
void scan_socks5_scan(Scan_AddrStruct *sr);
Module *Mod_Handle;
#ifdef DYNAMIC_LINKING
Module *Mod_Handle = NULL;
#else
#define Mod_Handle NULL
#endif
static Mod_SymbolDepTable modsymdep[] =
{
MOD_Dep(Eadd_scan, xEadd_scan, "src/modules/scan.so"),