diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-05-16 12:34:49 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-05-16 12:34:49 +0000 |
commit | df5a118a2538f4ae7e3bf355d0c4def9f7dcc131 (patch) | |
tree | 1f3e2cfd894341bc09c14a0c3d26922860be7d2c /eglib | |
parent | 09de5efbaa85d79e04f1c2375f5870c9aeba65f5 (diff) |
Add g_renew
Diffstat (limited to 'eglib')
-rw-r--r-- | eglib/gmain.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |