diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-20 00:40:14 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-20 00:40:14 +0000 |
| commit | de7b668ad121c193cd874c8e56fa5704407315a9 (patch) | |
| tree | 5de65134576afa755b1a902e101658ec3c6d6c43 | |
| parent | 396cee7d0d008cfdbbb9eb5398e24f2f0df27912 (diff) | |
Removed the file name arg from MODULE_INIT
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2510 5417fbe8-f217-4b02-8779-1006273d7864
130 files changed, 140 insertions, 140 deletions
diff --git a/include/services.h b/include/services.h index e0ec8a609..a6469419b 100644 --- a/include/services.h +++ b/include/services.h @@ -192,11 +192,11 @@ extern int strncasecmp(const char *, const char *, size_t); * It defines the class factory and external init_module function. */ #ifdef _WIN32 - #define MODULE_INIT(x, y) \ + #define MODULE_INIT(x) \ extern "C" DllExport Module *init_module(const std::string &, const std::string &); \ - extern "C" Module *init_module(const std::string &, const std::string &creator) \ + extern "C" Module *init_module(const std::string &modname, const std::string &creator) \ { \ - return new y(x, creator); \ + return new x(modname, creator); \ } \ BOOLEAN WINAPI DllMain(HINSTANCE, DWORD nReason, LPVOID) \ { \ @@ -208,19 +208,19 @@ extern int strncasecmp(const char *, const char *, size_t); } \ return TRUE; \ } \ - extern "C" DllExport void destroy_module(y *); \ - extern "C" void destroy_module(y *m) \ + extern "C" DllExport void destroy_module(x *); \ + extern "C" void destroy_module(x *m) \ { \ delete m; \ } #else - #define MODULE_INIT(x, y) \ - extern "C" DllExport Module *init_module(const std::string &, const std::string &creator) \ + #define MODULE_INIT(x) \ + extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \ { \ - return new y(x, creator); \ + return new x(modname, creator); \ } \ - extern "C" DllExport void destroy_module(y *m) \ + extern "C" DllExport void destroy_module(x *m) \ { \ delete m; \ } diff --git a/src/core/bs_act.c b/src/core/bs_act.c index 82c893e74..13ef27a23 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -83,4 +83,4 @@ class BSAct : public Module } }; -MODULE_INIT("bs_act", BSAct) +MODULE_INIT(BSAct) diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c index e54989ac7..1ca280c4c 100644 --- a/src/core/bs_assign.c +++ b/src/core/bs_assign.c @@ -94,4 +94,4 @@ class BSAssign : public Module } }; -MODULE_INIT("bs_assign", BSAssign) +MODULE_INIT(BSAssign) |
