From de7b668ad121c193cd874c8e56fa5704407315a9 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 20 Sep 2009 00:40:14 +0000 Subject: 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 --- include/services.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include') 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; \ } -- cgit