Re: [RFC] Simplify use of apr_hash_this()
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 01 Jul 2009 16:59:44 +0100
On Wed, 2009-07-01 at 11:17 -0400, Greg Hudson wrote:
In those instances I cited and also throughout all our uses of
> This leads me to believe that the interfaces we really want are:
Even though we usually want both key and value, that could well be a
for (hi = apr_hash_first(pool, entries); hi; hi = apr_hash_next(hi))
apr_hash_this(hi, &item, NULL, &entry); /* WISHFUL THINKING */
...
we could then write
for (hi = apr_hash_first(pool, entries); hi; hi = apr_hash_next(hi))
...
> Of course, those APIs do not exist in APR (right now), so we'd have to
Just to point out for anyone reading this who may not be familiar with
- Julian
------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.