I'll add some tests to the test program tonight to catch stuff like this.
Ryan
Quoting Joe Orton <[EMAIL PROTECTED]>:
> This broke apr_hash_{merge,overlay}; I've checked in a minimal fix to
> stop httpd segfaulting everywhere, but presumable it needs a doc string
> update as below, unless behav
This broke apr_hash_{merge,overlay}; I've checked in a minimal fix to
stop httpd segfaulting everywhere, but presumable it needs a doc string
update as below, unless behaviour for merging two hash tables with
different hash functions can be defined:
--- include/apr_hash.h 18 Apr 2004 12:12:49 -00
--- André Malo <[EMAIL PROTECTED]> wrote:
> oh well. Though I don't find that pointer hiding not
> very intuitive
I agree with you in general, but I think it's by far
the most common idiom for function pointers.
It doesn't really matter which syntax you choose, but
you should be consistent thro
* [EMAIL PROTECTED] wrote:
> I've never seen function pointer types defined that way.
Heh, httpd does it all the time ;-)
> The biggest
> problem is that this type can't be used without a * in front of the
> variable. Not a big deal, but it does make the type less usefull.
that's right. but ma
Quoting André Malo <[EMAIL PROTECTED]>:
> * [EMAIL PROTECTED] wrote:
>
> > Quoting André Malo <[EMAIL PROTECTED]>:
> >
> > > * André Malo <[EMAIL PROTECTED]> wrote:
> > >
> > > > APR_DECLARE(apr_hash_t *) apr_hash_make_custom(apr_pool_t *pool,
> > > >
* [EMAIL PROTECTED] wrote:
> Quoting André Malo <[EMAIL PROTECTED]>:
>
> > * André Malo <[EMAIL PROTECTED]> wrote:
> >
> > > APR_DECLARE(apr_hash_t *) apr_hash_make_custom(apr_pool_t *pool,
> > > apr_hashfunc_t
> > >
Quoting André Malo <[EMAIL PROTECTED]>:
> * André Malo <[EMAIL PROTECTED]> wrote:
>
> > APR_DECLARE(apr_hash_t *) apr_hash_make_custom(apr_pool_t *pool,
> > apr_hashfunc_t hash_func)
>
> Additionally hash_func should be a pointer (also in declarat
I fixed this. I thought I had re-compiled after my changes, but I must have
just been in the test directory when I did it.
Ryan
Quoting André Malo <[EMAIL PROTECTED]>:
> * [EMAIL PROTECTED] wrote:
>
> > +APR_DECLARE(apr_hash_t *) apr_hash_make_custom(apr_pool_t *pool,
> > +
* André Malo <[EMAIL PROTECTED]> wrote:
> APR_DECLARE(apr_hash_t *) apr_hash_make_custom(apr_pool_t *pool,
> apr_hashfunc_t hash_func)
Additionally hash_func should be a pointer (also in declaration in in the hash
struct), shouldn't it?
nd
--
Tre
* [EMAIL PROTECTED] wrote:
> +APR_DECLARE(apr_hash_t *) apr_hash_make_custom(apr_pool_t *pool,
> + apr_hashfunc_t hash_func)
> +{
> +ht = apr_hash_make(p);
> +ht->hash_func = hash_func;
>return ht;
>}
>
I've thought t
10 matches
Mail list logo