Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 11967 invoked by uid 6000); 28 Apr 1998 06:19:24 -0000 Received: (qmail 11950 invoked by uid 24); 28 Apr 1998 06:19:21 -0000 Message-Id: <3.0.3.32.19980427230954.00b2aa00@hyperreal.org> X-Sender: brian@hyperreal.org X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Mon, 27 Apr 1998 23:09:54 -0700 To: new-httpd@apache.org From: Brian Behlendorf Subject: Re: C++ and pool (again) in 1.3b6 In-Reply-To: <35414AE3.329D2ECE@redes.int.com.mx> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Sounds like folks like this idea - Michael, prepare a patch against the current code base and I think we could incorporate it. Brian At 09:30 PM 4/24/98 -0500, Michael Anderson wrote: >Alexei Kosut wrote: > >> IMHO, to maintain backwards compatibility, wouldn't it be better >> to change "pool" than "pool"? Er... I mean, change the type name >> instead of the structure member name? >> >> If we change "pool *pool" to "pool *pool_ptr" then all modules >> that access that pool will need to be changed. > >There is a lot of code referencing the "pool" variables in the >three affected structures. > >> If we change "pool *pool" to "ap_pool *pool" then any module >> that references "r->pool" will still work just >> fine, and we can throw in a "typedef pool ap_pool" in >> #ifndef __cplusplus wrappers so that all existing source >> will continue to work. > >Sounds like that should work and could isolate the C++ changes >to small #ifdef's at the top and bottom of header files. The >patch would be trivial - you guys decide and I'll do the >(trivial) grunt work, or someone with write permission on the >source could do it in a few minutes. > >Regards, > >-- >Mike Anderson >mka@redes.int.com.mx >+52 473 23730 voice/fax >Guanajuato, GTO, Mexico > > --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- pure chewing satisfaction brian@apache.org brian@hyperreal.org