added g_renew() which works as g_new() for g_realloc(). GLIB_1_1_3a
authorTim Janik <timj@gtk.org>
Mon, 21 Sep 1998 06:13:06 +0000 (06:13 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 21 Sep 1998 06:13:06 +0000 (06:13 +0000)
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().

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib.h
glib/glib.h

index 054416d..eb11010 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 054416d..eb11010 100644 (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
index 054416d..eb11010 100644 (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
index 054416d..eb11010 100644 (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
index 054416d..eb11010 100644 (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
index 054416d..eb11010 100644 (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
index 054416d..eb11010 100644 (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
index 054416d..eb11010 100644 (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
diff --git a/glib.h b/glib.h
index eea0bbb..784df82 100644 (file)
--- a/glib.h
+++ b/glib.h
@@ -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)        ( \
index eea0bbb..784df82 100644 (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)        ( \