mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
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:
parent
2d68cbbb7d
commit
e66a0ced67
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
@ -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>
|
Mon Sep 21 02:22:12 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* NEWS file update for upcoming release of GLib + GModule
|
* NEWS file update for upcoming release of GLib + GModule
|
||||||
|
18
glib.h
18
glib.h
@ -303,16 +303,16 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __DMALLOC_H__
|
#ifdef __DMALLOC_H__
|
||||||
|
# define g_new(type, count) (ALLOC (type, count))
|
||||||
#define g_new(type, count) (ALLOC (type, count))
|
# define g_new0(type, count) (CALLOC (type, count))
|
||||||
#define g_new0(type, count) (CALLOC (type, count))
|
# define g_renew(type, mem, count) (REALLOC (mem, type, count))
|
||||||
|
|
||||||
#else /* __DMALLOC_H__ */
|
#else /* __DMALLOC_H__ */
|
||||||
|
# define g_new(type, count) \
|
||||||
#define g_new(type, count) \
|
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
|
||||||
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
|
# define g_new0(type, count) \
|
||||||
#define g_new0(type, count) \
|
((type *) g_malloc0 ((unsigned) sizeof (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__ */
|
#endif /* __DMALLOC_H__ */
|
||||||
|
|
||||||
#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \
|
#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \
|
||||||
|
18
glib/glib.h
18
glib/glib.h
@ -303,16 +303,16 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __DMALLOC_H__
|
#ifdef __DMALLOC_H__
|
||||||
|
# define g_new(type, count) (ALLOC (type, count))
|
||||||
#define g_new(type, count) (ALLOC (type, count))
|
# define g_new0(type, count) (CALLOC (type, count))
|
||||||
#define g_new0(type, count) (CALLOC (type, count))
|
# define g_renew(type, mem, count) (REALLOC (mem, type, count))
|
||||||
|
|
||||||
#else /* __DMALLOC_H__ */
|
#else /* __DMALLOC_H__ */
|
||||||
|
# define g_new(type, count) \
|
||||||
#define g_new(type, count) \
|
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
|
||||||
((type *) g_malloc ((unsigned) sizeof (type) * (count)))
|
# define g_new0(type, count) \
|
||||||
#define g_new0(type, count) \
|
((type *) g_malloc0 ((unsigned) sizeof (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__ */
|
#endif /* __DMALLOC_H__ */
|
||||||
|
|
||||||
#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \
|
#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \
|
||||||
|
Loading…
Reference in New Issue
Block a user