httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [PATCH/Win32] Remove main() from ApacheCore.dll
Date Sun, 23 Nov 1997 23:38:11 GMT
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

Mime
View raw message