Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 9871 invoked by uid 6000); 23 Nov 1997 23:39:38 -0000 Received: (qmail 9853 invoked from network); 23 Nov 1997 23:39:35 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 23 Nov 1997 23:39:35 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with ESMTP id XAA04356 for ; Sun, 23 Nov 1997 23:38:42 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id XAA20684 for ; Sun, 23 Nov 1997 23:38:39 GMT Message-ID: <3478BE63.45162D6D@algroup.co.uk> Date: Sun, 23 Nov 1997 23:38:11 +0000 From: Ben Laurie Organization: A.L. Digital Ltd. X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: [PATCH/Win32] Remove main() from ApacheCore.dll References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Alexei Kosut wrote: > > Here's a patch that accomplishes what I discussed earlier: > > 1) It gets rid of the main() function in http_main.c (for Win32 only) and > replaces it with an apache_main(). This takes main() out of > ApacheCore.dll, which always struck me as a somewhat nasty idea. > This also has the benefit of allowing other programs to link to > it if they want (why? I dunno). > > 2) Remove main/dummy.c, and replace it with os/win32/main_win32.c, > which just contains a main() function that calls the aforementioned > apache_main(). This has the added benefit of not having to deal with > a silly dummy object file just so link.exe doesn't complain about > not having any object files when linking Apache.exe. +1. Cheers, Ben. -- Ben Laurie |Phone: +44 (181) 735 0686|Apache Group member Freelance Consultant |Fax: +44 (181) 735 0689|http://www.apache.org and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author A.L. Digital Ltd, |http://www.algroup.co.uk/Apache-SSL London, England. |"Apache: TDG" http://www.ora.com/catalog/apache