You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2006/09/12 16:11:07 UTC

Re: (fwd) [patch] Add a new apr_hash_clear() API

On 9/8/06, Daniel L. Rall <dl...@finemaltcoding.com> wrote:

> Date: Wed, 6 Sep 2006 15:45:03 -0700
> From: "Daniel L. Rall" <dl...@apache.org>
> To: dev@apr.apache.org
> Cc: Garrett Rooney <ro...@apache.org>
> Subject: [patch] Add a new apr_hash_clear() API
>
> Over in Subversion-land, I've wanted to re-use APR hashes a few times
> (to avoid re-allocating them, or inlining the code necessary to
> clear'em), and have always been baffled by the fact that there's no
> convenience API to clear them.  Here's a patch which adds such an API,
> with accompanying unit test.

(Dan tried to send this to the list last week, but had some email
problems, so he forwarded it to me directly.  Just CCing the list so
his justification for the patch I just committed is recorded
someplace.)

Committed in r442588, thanks Dan.

-garrett