apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: Implementing apr_hash_do(vdo)
Date Fri, 11 Jul 2008 13:49:41 GMT
On Fri, Jul 11, 2008 at 1:57 AM, Mladen Turk <mturk@apache.org> wrote:
> Hi,
> Unlike apr_table, apr_hash doesn't have iterator callback API.
> IMO this would be very useful function for hash usages where
> iterative operation on all table elements is required.
> Right now this is done via hash_first, hash_next, hash_this operation,
> and thats fine, but IMO apr_table_do like API would lower down
> the number of user repetitive code needed to accomplish such
> a common task.
> Any objections for implementing something like that?

FWIW, I believe Subversion has some similar code already:

Might be useful for API ideas.


View raw message