libiberty: hashtab allocation functions with an extra argument

DJ Delorie dj@redhat.com
Fri Jan 24 02:24:00 GMT 2003


> I'm not sure if this patch went out yesterday or not, sorry for
> repeats...

It did and I missed it, and I was watching for it too!

> DJ, how's this look?

Ok.

> Let's see how this one looks.  The create function becomes _ex, but
> I left the pointers as alloc_with_arg, since that's what they are.
> Do you want _ex there too?

I'm ambivalent about it, so you can keep it that way if you want.

> 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
> 
> 	* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
> 	(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
> 	(htab_create_alloc_ex): New prototype.
> 	(htab_set_functions_ex): New prototype.
> 
> 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
> 
> 	* hashtab.c (htab_create_alloc_ex): New function.
> 	(hatab_set_functions_ex): New function.
> 	(htab_delete, htab_expand): Support alternate allocation functions.



More information about the Gcc-patches mailing list