apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject RE: cvs commit: apr-util/include apr_buckets.h
Date Mon, 19 Feb 2001 01:56:07 GMT
> -----Original Message-----
> jwoolley    01/02/18 17:42:57
>   Modified:    include  apr_buckets.h
>   Log:
>   Add apr_bucket_delete(), which is a wrapper macro around bucket removal/
>   destruction.  Useful for decreasing code verbosity.

I decided to go the route of adding a third macro (apr_bucket_delete()) instead
of overloading apr_bucket_destroy().  It's nice to have access to the "atomic"
removal and destruction functions if you really need them, and also I tend to
think of destruction as "just get rid of the damned thing, don't be nice about
it".  "delete" is the nice way to "destroy".  <shrug>

Anyway, all sequences like this:


can now become:


I'll work on a cleanup patch for Apache.  (I've also got that
APR_BUCKET_INSERT_BEFORE(a,b) cleanup patch that's in the works.)


    Cliff Woolley
    Charlottesville, VA

View raw message