added g_renew() which works as g_new() for g_realloc().

Mon Sep 21 07:43:13 1998  Tim Janik  <timj@gtk.org>

        * glib.h: added g_renew() which works as g_new() for g_realloc().
This commit is contained in:
Tim Janik 1998-09-21 06:13:06 +00:00 committed by Tim Janik
parent 2d68cbbb7d
commit e66a0ced67
10 changed files with 50 additions and 18 deletions

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

View File

@ -1,3 +1,7 @@
Mon Sep 21 07:43:13 1998 Tim Janik <timj@gtk.org>
* glib.h: added g_renew() which works as g_new() for g_realloc().
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of GLib + GModule

18
glib.h
View File

@ -303,16 +303,16 @@ extern "C" {
*/
#ifdef __DMALLOC_H__
#define g_new(type, count) (ALLOC (type, count))
#define g_new0(type, count) (CALLOC (type, count))
# define g_new(type, count) (ALLOC (type, count))
# define g_new0(type, count) (CALLOC (type, count))
# define g_renew(type, mem, count) (REALLOC (mem, type, count))
#else /* __DMALLOC_H__ */
#define g_new(type, count) \
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
#define g_new0(type, count) \
((type *) g_malloc0 ((unsigned) sizeof (type) * (count)))
# define g_new(type, count) \
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
# define g_new0(type, count) \
((type *) g_malloc0 ((unsigned) sizeof (type) * (count)))
# define g_renew(type, mem, count) \
((type *) g_realloc (mem, (unsigned) sizeof (type) * (count)))
#endif /* __DMALLOC_H__ */
#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \

View File

@ -303,16 +303,16 @@ extern "C" {
*/
#ifdef __DMALLOC_H__
#define g_new(type, count) (ALLOC (type, count))
#define g_new0(type, count) (CALLOC (type, count))
# define g_new(type, count) (ALLOC (type, count))
# define g_new0(type, count) (CALLOC (type, count))
# define g_renew(type, mem, count) (REALLOC (mem, type, count))
#else /* __DMALLOC_H__ */
#define g_new(type, count) \
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
#define g_new0(type, count) \
((type *) g_malloc0 ((unsigned) sizeof (type) * (count)))
# define g_new(type, count) \
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
# define g_new0(type, count) \
((type *) g_malloc0 ((unsigned) sizeof (type) * (count)))
# define g_renew(type, mem, count) \
((type *) g_realloc (mem, (unsigned) sizeof (type) * (count)))
#endif /* __DMALLOC_H__ */
#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \