apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apr/tables apr_hash.c
Date Tue, 16 Jan 2001 18:25:14 GMT
On Tue, Jan 16, 2001 at 12:59:04PM -0500, Jeff Trawick wrote:
> gstein@apache.org writes:
>...
> >    /**
> >   - * Get the number of keys in the hash table.
> >   + * Get the number of key/value pairs in the hash table.
> >     * @param ht The hash table
> >   - * @param count Return pointer for the number of keys
> >   + * @return The number of key/value pairs in the hash table.
> >     * @deffunc void apr_hash_count(apr_hash_t *ht, apr_size_t *count);
> >     */
> >   -APR_DECLARE(void) apr_hash_count(apr_hash_t *ht, apr_size_t *count);
> >   +APR_DECLARE(apr_size_t) apr_hash_count(apr_hash_t *ht);
> 
> silly question: why not int or apr_int32_t instead of apr_size_t?

apr_size_t is the internal type. change that, and you can change the return
type :-)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message