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] C++ and pool (again) in 1.3b6
Date Sat, 02 May 1998 10:27:37 GMT
Michael Anderson wrote:
> 
> Brian Behlendorf wrote:
> >
> > Sounds like folks like this idea - Michael,
> > prepare a patch against the current code base
> > and I think we could incorporate it.
> 
> Here is a patch to make the header files C++
> friendly. If its not what the group wants, let
> me know and I'll try something else. I think this
> represents the minimal change to the header files.
> 
> The patch is trivial:
> 
> 1. these conditional compile macros:
> 
> #ifdef _cplusplus
> extern "C" {
> #endif
>         and
> #ifdef __cplusplus
> }
> #endif
> 
> are placed at the top and bottom, respectively,
> of all header files.
> 
> 2. the "pool *pool;" member of these five structures:
> 
> array_header
> buff_struct
> cmd_parms
> request_rec
> conn_rec
> 
> is changed to "ap_pool *pool".
> 
> 3. the statement:
> 
> typedef struct pool ap_pool;
> 
> is added to alloc.h
> 
> The patch was generated using version
> apache_19980430190027.tar.gz. After
> re-applying the patch to that original
> code, I compiled everything, including
> my C++ module without problems, so it
> should work for you.

+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 |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message