summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-09-21 06:13:06 +0000
committerTim Janik <timj@src.gnome.org>1998-09-21 06:13:06 +0000
commite66a0ced67c5e84477e24dc3e3effcd3ed796f61 (patch)
tree6b4b07fdba657e7c28583bc87461f162b523bab3
parent2d68cbbb7d37d3f265bf1087e6ddedcc58bc62be (diff)
added g_renew() which works as g_new() for g_realloc().GLIB_1_1_3a
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().
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.pre-2-04
-rw-r--r--ChangeLog.pre-2-104
-rw-r--r--ChangeLog.pre-2-124
-rw-r--r--ChangeLog.pre-2-24
-rw-r--r--ChangeLog.pre-2-44
-rw-r--r--ChangeLog.pre-2-64
-rw-r--r--ChangeLog.pre-2-84
-rw-r--r--glib.h18
-rw-r--r--glib/glib.h18
10 files changed, 50 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 054416d8e..eb110108d 100644
--- 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
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -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/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 054416d8e..eb110108d 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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 eea0bbbaf..784df827f 100644
--- 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) ( \
diff --git a/glib/glib.h b/glib/glib.h
index eea0bbbaf..784df827f 100644
--- a/glib/glib.h
+++ b/glib/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) ( \