mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
make g_slice_copy() take a gconstpointer instead of a gpointer.
2007-08-24 Michael Natterer <mitch@imendio.com> * glib/gslice.[ch]: make g_slice_copy() take a gconstpointer instead of a gpointer. svn path=/trunk/; revision=5720
This commit is contained in:
parent
0a4b663771
commit
8a442ede82
@ -1,3 +1,8 @@
|
|||||||
|
2007-08-24 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
|
||||||
|
instead of a gpointer.
|
||||||
|
|
||||||
2007-08-22 Cody Russell <bratsche@gnome.org>
|
2007-08-22 Cody Russell <bratsche@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c: Document all printf functions to use
|
* glib/gprintf.c: Document all printf functions to use
|
||||||
|
@ -837,8 +837,8 @@ g_slice_alloc0 (gsize mem_size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
gpointer
|
||||||
g_slice_copy (gsize mem_size,
|
g_slice_copy (gsize mem_size,
|
||||||
gpointer mem_block)
|
gconstpointer mem_block)
|
||||||
{
|
{
|
||||||
gpointer mem = g_slice_alloc (mem_size);
|
gpointer mem = g_slice_alloc (mem_size);
|
||||||
if (mem)
|
if (mem)
|
||||||
|
@ -29,15 +29,15 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
/* slices - fast allocation/release of small memory blocks
|
/* slices - fast allocation/release of small memory blocks
|
||||||
*/
|
*/
|
||||||
gpointer g_slice_alloc (gsize block_size) G_GNUC_MALLOC;
|
gpointer g_slice_alloc (gsize block_size) G_GNUC_MALLOC;
|
||||||
gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC;
|
gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC;
|
||||||
gpointer g_slice_copy (gsize block_size,
|
gpointer g_slice_copy (gsize block_size,
|
||||||
gpointer mem_block) G_GNUC_MALLOC;
|
gconstpointer mem_block) G_GNUC_MALLOC;
|
||||||
void g_slice_free1 (gsize block_size,
|
void g_slice_free1 (gsize block_size,
|
||||||
gpointer mem_block);
|
gpointer mem_block);
|
||||||
void g_slice_free_chain_with_offset (gsize block_size,
|
void g_slice_free_chain_with_offset (gsize block_size,
|
||||||
gpointer mem_chain,
|
gpointer mem_chain,
|
||||||
gsize next_offset);
|
gsize next_offset);
|
||||||
#define g_slice_new(type) ((type*) g_slice_alloc (sizeof (type)))
|
#define g_slice_new(type) ((type*) g_slice_alloc (sizeof (type)))
|
||||||
#define g_slice_new0(type) ((type*) g_slice_alloc0 (sizeof (type)))
|
#define g_slice_new0(type) ((type*) g_slice_alloc0 (sizeof (type)))
|
||||||
/* MemoryBlockType *
|
/* MemoryBlockType *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user