16#ifndef __G_ALLOCATOR_H__
17#define __G_ALLOCATOR_H__
19#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
20#error "Only <glib.h> can be included directly."
31#define G_ALLOC_AND_FREE 2
32#define G_ALLOCATOR_LIST 1
33#define G_ALLOCATOR_SLIST 2
34#define G_ALLOCATOR_NODE 3
36#define g_chunk_new(type, chunk) ((type *) g_mem_chunk_alloc (chunk))
37#define g_chunk_new0(type, chunk) ((type *) g_mem_chunk_alloc0 (chunk))
38#define g_chunk_free(mem, mem_chunk) (g_mem_chunk_free (mem_chunk, mem))
39#define g_mem_chunk_create(type, x, y) (g_mem_chunk_new (NULL, sizeof (type), 0, 0))
GLIB_DEPRECATED void g_mem_chunk_destroy(GMemChunk *mem_chunk)
GLIB_DEPRECATED void g_mem_chunk_clean(GMemChunk *mem_chunk)
GLIB_DEPRECATED void g_slist_push_allocator(GAllocator *allocator)
GLIB_DEPRECATED void g_slist_pop_allocator(void)
GLIB_DEPRECATED GMemChunk * g_mem_chunk_new(const gchar *name, gint atom_size, gsize area_size, gint type)
GLIB_DEPRECATED gpointer g_mem_chunk_alloc0(GMemChunk *mem_chunk)
GLIB_DEPRECATED void g_blow_chunks(void)
typedefG_BEGIN_DECLS struct _GAllocator GAllocator
GLIB_DEPRECATED void g_mem_chunk_free(GMemChunk *mem_chunk, gpointer mem)
GLIB_DEPRECATED void g_list_push_allocator(GAllocator *allocator)
GLIB_DEPRECATED void g_node_push_allocator(GAllocator *allocator)
GLIB_DEPRECATED void g_mem_chunk_print(GMemChunk *mem_chunk)
struct _GMemChunk GMemChunk
GLIB_DEPRECATED gpointer g_mem_chunk_alloc(GMemChunk *mem_chunk)
GLIB_DEPRECATED void g_node_pop_allocator(void)
GLIB_DEPRECATED void g_allocator_free(GAllocator *allocator)
GLIB_DEPRECATED GAllocator * g_allocator_new(const gchar *name, guint n_preallocs)
GLIB_DEPRECATED void g_mem_chunk_reset(GMemChunk *mem_chunk)
GLIB_DEPRECATED void g_list_pop_allocator(void)
GLIB_DEPRECATED void g_mem_chunk_info(void)
G_BEGIN_DECLS typedef char gchar