Re: g_ptr_array bsearch & etc



Joshua N Pritikin <vishnu pobox com> writes:

> Can the following be added to g_ptr_array?
> 
> gboolean
> g_ptr_array_bsearch (GPtrArray *     array,
> 		     guint *         ret,
> 		     gconstpointer   sample,
> 		     GCompareFunc    compare_func);
> void
> g_ptr_array_add_index (GPtrArray  *array,
> 		       guint       index,
> 		       gpointer    data);
> void
> g_ptr_array_add_sorted (GPtrArray *   array,
> 			gpointer      data,
> 			GCompareFunc  compare_func);
> 
> The implementation and test suite is attached.

These look like reasonable additions for glib-2.2. If you file
a bug in bugzilla.gnome.org we won't forget about them.

                                        Owen 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]