From 6f424e52df4ec520b252414a0da693fa67eef3ce Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 17 Oct 2024 04:22:49 +0000 Subject: [PATCH] some fix git-svn-id: file:///raid/svn-personal/tewi/trunk@367 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Module/mod_cgi.c | 4 +--- Module/mod_example.c | 4 +--- Module/mod_proxy.c | 4 +--- Server/tw_module.h | 7 +++++++ 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Module/mod_cgi.c b/Module/mod_cgi.c index e300307..79d7721 100644 --- a/Module/mod_cgi.c +++ b/Module/mod_cgi.c @@ -22,6 +22,4 @@ int MODULE_DECL mod_request(struct tw_tool* tools, struct tw_http_request* req, return TW_MODULE_STOP; } -#ifdef __NETWARE__ -int main() { return 0; } -#endif +END_MODULE diff --git a/Module/mod_example.c b/Module/mod_example.c index 7b7ce0f..4ff659f 100644 --- a/Module/mod_example.c +++ b/Module/mod_example.c @@ -13,6 +13,4 @@ int MODULE_DECL mod_config(struct tw_tool* tools, char** argv, int argc) { retur int MODULE_DECL mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_ERROR(403); } -#ifdef __NETWARE__ -int main() { return 0; } -#endif +END_MODULE diff --git a/Module/mod_proxy.c b/Module/mod_proxy.c index ac276b0..4326937 100644 --- a/Module/mod_proxy.c +++ b/Module/mod_proxy.c @@ -14,6 +14,4 @@ int MODULE_DECL mod_config(struct tw_tool* tools, char** argv, int argc) { retur int MODULE_DECL mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_PASS; } -#ifdef __NETWARE__ -int main() { return 0; } -#endif +END_MODULE diff --git a/Server/tw_module.h b/Server/tw_module.h index 346d48c..b8bd909 100644 --- a/Server/tw_module.h +++ b/Server/tw_module.h @@ -10,6 +10,13 @@ extern "C" { #include "tw_config.h" #include "tw_http.h" +#ifdef __NETWARE__ +#include +#define END_MODULE int main(){DestroyScreen(GetCurrentScreen());while(1);return 0;} +#else +#define END_MODULE +#endif + #if defined(__OS2__) #define INCL_DOSMODULEMGR #define INCL_DOSERRORS -- 2.43.0