From df5a118a2538f4ae7e3bf355d0c4def9f7dcc131 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 16 May 2008 12:34:49 +0000 Subject: Add g_renew --- eglib/gmain.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eglib/gmain.h b/eglib/gmain.h index 1d7cdb72..35f608a3 100644 --- a/eglib/gmain.h +++ b/eglib/gmain.h @@ -262,6 +262,8 @@ void g_strfreev(gchar **str_array); ((struct_type *) g_try_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) #define g_try_new0(struct_type, n_structs) \ ((struct_type *) g_try_malloc0 (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) +#define g_renew(struct_type, mem, n_structs) \ + ((struct_type *) g_realloc ((mem), ((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) /* GKeyFile */ -- cgit