mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-04 04:39:20 +02:00
Move GAllocator/GMemChunk to separate file
Create a deprecated/ directory that we can start moving ancient chunks of code to. Start with GAllocator, GMemChunk and related APIs. Also drop all mention of them from the docs. https://bugzilla.gnome.org/show_bug.cgi?id=659427
This commit is contained in:
31
glib/gnode.c
31
glib/gnode.c
@@ -89,37 +89,6 @@
|
||||
* <link linkend="glib-N-ary-Trees">N-ary Tree</link>. fields
|
||||
**/
|
||||
|
||||
/**
|
||||
* g_node_push_allocator:
|
||||
* @dummy: the #GAllocator to use when allocating #GNode elements.
|
||||
*
|
||||
* Sets the allocator to use to allocate #GNode elements. Use
|
||||
* g_node_pop_allocator() to restore the previous allocator.
|
||||
*
|
||||
* Note that this function is not available if GLib has been compiled
|
||||
* with <option>--disable-mem-pools</option>
|
||||
*
|
||||
* Deprecated:2.10: It does nothing, since #GNode has been converted to
|
||||
* the <link linkend="glib-Memory-Slices">slice
|
||||
* allocator</link>
|
||||
**/
|
||||
void g_node_push_allocator (gpointer dummy) { /* present for binary compat only */ }
|
||||
|
||||
/**
|
||||
* g_node_pop_allocator:
|
||||
*
|
||||
* Restores the previous #GAllocator, used when allocating #GNode
|
||||
* elements.
|
||||
*
|
||||
* Note that this function is not available if GLib has been compiled
|
||||
* with <option>--disable-mem-pools</option>
|
||||
*
|
||||
* Deprecated:2.10: It does nothing, since #GNode has been converted to
|
||||
* the <link linkend="glib-Memory-Slices">slice
|
||||
* allocator</link>
|
||||
**/
|
||||
void g_node_pop_allocator (void) { /* present for binary compat only */ }
|
||||
|
||||
#define g_node_alloc0() g_slice_new0 (GNode)
|
||||
#define g_node_free(node) g_slice_free (GNode, node)
|
||||
|
||||
|
Reference in New Issue
Block a user