mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +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:
33
glib/glist.c
33
glib/glist.c
@@ -112,39 +112,6 @@
|
||||
* A convenience macro to get the next element in a #GList.
|
||||
**/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* g_list_push_allocator:
|
||||
* @allocator: the #GAllocator to use when allocating #GList elements.
|
||||
*
|
||||
* Sets the allocator to use to allocate #GList elements. Use
|
||||
* g_list_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 #GList has been converted
|
||||
* to the <link linkend="glib-Memory-Slices">slice
|
||||
* allocator</link>
|
||||
**/
|
||||
void g_list_push_allocator (gpointer dummy) { /* present for binary compat only */ }
|
||||
|
||||
/**
|
||||
* g_list_pop_allocator:
|
||||
*
|
||||
* Restores the previous #GAllocator, used when allocating #GList
|
||||
* 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 #GList has been converted
|
||||
* to the <link linkend="glib-Memory-Slices">slice
|
||||
* allocator</link>
|
||||
**/
|
||||
void g_list_pop_allocator (void) { /* present for binary compat only */ }
|
||||
|
||||
#define _g_list_alloc() g_slice_new (GList)
|
||||
#define _g_list_alloc0() g_slice_new0 (GList)
|
||||
#define _g_list_free1(list) g_slice_free (GList, list)
|
||||
|
Reference in New Issue
Block a user