fix preallocation logic, support DISABLE_MEM_POOLS properly, group value

Sun Aug 12 02:07:10 2001  Tim Janik  <timj@gtk.org>

        * gvaluearray.[hc]: fix preallocation logic, support DISABLE_MEM_POOLS
        properly, group value allocations.
        (g_value_array_new): fix semantic of n_prealloced argument, so it's
        really just about preallocation space.
This commit is contained in:
Tim Janik
2001-08-12 00:55:38 +00:00
committed by Tim Janik
parent 6132f0496a
commit 4bc2b2c3b4
3 changed files with 70 additions and 11 deletions

View File

@@ -36,6 +36,9 @@ struct _GValueArray
{
guint n_values;
GValue *values;
/*< private >*/
guint n_prealloced;
};