mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Don't return a pointer to a const struct, since apps expect to be able to
2005-12-16 Matthias Clasen <mclasen@redhat.com> * glib/gmem.c (g_allocator_new): Don't return a pointer to a const struct, since apps expect to be able to modify it. (#324179, J. Ali Harlow)
This commit is contained in:
parent
5feb34b939
commit
63732bdf5e
@ -1,3 +1,9 @@
|
|||||||
|
2005-12-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_allocator_new): Don't return a pointer to
|
||||||
|
a const struct, since apps expect to be able to modify it.
|
||||||
|
(#324179, J. Ali Harlow)
|
||||||
|
|
||||||
Tue Dec 13 10:13:32 2005 Tim Janik <timj@imendio.com>
|
Tue Dec 13 10:13:32 2005 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
|
* glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2005-12-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_allocator_new): Don't return a pointer to
|
||||||
|
a const struct, since apps expect to be able to modify it.
|
||||||
|
(#324179, J. Ali Harlow)
|
||||||
|
|
||||||
Tue Dec 13 10:13:32 2005 Tim Janik <timj@imendio.com>
|
Tue Dec 13 10:13:32 2005 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
|
* glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2005-12-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_allocator_new): Don't return a pointer to
|
||||||
|
a const struct, since apps expect to be able to modify it.
|
||||||
|
(#324179, J. Ali Harlow)
|
||||||
|
|
||||||
Tue Dec 13 10:13:32 2005 Tim Janik <timj@imendio.com>
|
Tue Dec 13 10:13:32 2005 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
|
* glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
|
||||||
|
@ -635,7 +635,7 @@ GAllocator*
|
|||||||
g_allocator_new (const gchar *name,
|
g_allocator_new (const gchar *name,
|
||||||
guint n_preallocs)
|
guint n_preallocs)
|
||||||
{
|
{
|
||||||
static const struct _GAllocator {
|
static struct _GAllocator {
|
||||||
gchar *name;
|
gchar *name;
|
||||||
guint16 n_preallocs;
|
guint16 n_preallocs;
|
||||||
guint is_unused : 1;
|
guint is_unused : 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user