Re: cvs commit: apr/memory/unix apr_pools.c

2004-10-08 Thread Justin Erenkrantz
--On Friday, October 8, 2004 4:31 PM +0100 Joe Orton <[EMAIL PROTECTED]> wrote: I think comments would be much clearer because they'd remove the "huh?" factor when you read the code for the first time without knowing what the macro means. But I don't care enough to go and revert the changes and pr

Doxygen on the APR Site

2004-10-08 Thread Paul Querna
Hello, This was mentioned almost a month ago on this list, but the APR-Util Doxygen is still completely broken: http://apr.apache.org/docs/apr-util/modules.html All the links to the different modules are broken. Can someone please fix this? Thanks, -Paul Querna

Re: cvs commit: apr/memory/unix apr_pools.c

2004-10-08 Thread Joe Orton
On Fri, Oct 08, 2004 at 11:22:00AM -0400, Jeff Trawick wrote: > If you agree with the assumption that we can't throw away the reason > for the cast but need something in the source file to help us > remember, then it becomes a question of the clearest way to preserve > the information. > > To me,

Re: cvs commit: apr/memory/unix apr_pools.c

2004-10-08 Thread Jeff Trawick
On Fri, 8 Oct 2004 15:08:38 +0100, Joe Orton <[EMAIL PROTECTED]> wrote: > > > On Fri, Oct 08, 2004 at 09:58:07AM -0400, Allan Edwards wrote: > > Joe Orton wrote: > > >>The fact that these casts are unnecessary can be tracked using comments, > > >>a list of issues in STATUS, or, not wishing to roc

Re: Pools, C++, and Exceptions Best Practices

2004-10-08 Thread Craig Rodrigues
On Thu, Oct 07, 2004 at 09:56:27PM -0600, David Barrett wrote: > Alternatively, do you have any suggestions on how best to use pools with > C++? Take a look at how the Boost Pool C++ library has been designed: http://www.boost.org/libs/pool/doc/ That may give you some ideas as to how to write a c

Re: cvs commit: apr/memory/unix apr_pools.c

2004-10-08 Thread Joe Orton
On Fri, Oct 08, 2004 at 09:58:07AM -0400, Allan Edwards wrote: > Joe Orton wrote: > >>The fact that these casts are unnecessary can be tracked using comments, > >>a list of issues in STATUS, or, not wishing to rock the boat, bugzilla. > >>Using a macro just obfuscates the code. > > > > > >s/unneces

Re: cvs commit: apr/memory/unix apr_pools.c

2004-10-08 Thread Allan Edwards
Joe Orton wrote: The fact that these casts are unnecessary can be tracked using comments, a list of issues in STATUS, or, not wishing to rock the boat, bugzilla. Using a macro just obfuscates the code. s/unnecessary/undesirable/ I hardly think it is more obfuscating that any macro might be conside

Re: cvs commit: apr-util/include apu.h.in

2004-10-08 Thread jean-frederic clere
[EMAIL PROTECTED] wrote: jfclere 2004/10/07 01:16:45 Modified:.Makefile.in buildconf configure.in buildapu-iconv.m4 include apu.h.in Log: Allow to use apr-iconv. I tried to get apr-iconv configured from httpd but that wasn't a good idea. The

Re: Pools, C++, and Exceptions Best Practices

2004-10-08 Thread Sander Striker
On Fri, 2004-10-08 at 05:56, David Barrett wrote: > Is anyone in the audience using apr pools in a C++ application? Can you > point to any sample code showing how to override 'new' and 'delete' (or > manually invoke constructors and destructors) to manage objects within a > pool? > > Right now I

Pools, C++, and Exceptions Best Practices

2004-10-08 Thread David Barrett
Is anyone in the audience using apr pools in a C++ application? Can you point to any sample code showing how to override 'new' and 'delete' (or manually invoke constructors and destructors) to manage objects within a pool? Right now I have an ugly mix of pools for apr objects and heap for C++ obj