gmem.h File Reference

#include <g_types.h>

Go to the source code of this file.

Defines

#define g_new(type, count)   ((type *) g_malloc ((unsigned) sizeof (type) * (count)))
#define g_new0(type, count)   ((type *) g_malloc0 ((unsigned) sizeof (type) * (count)))
#define g_renew(type, mem, count)   ((type *) g_realloc (mem, (unsigned) sizeof (type) * (count)))
#define g_mem_chunk_create(type, pre_alloc, alloc_type)
#define g_chunk_new(type, chunk)
#define g_chunk_new0(type, chunk)
#define g_chunk_free(mem, mem_chunk)
#define G_ALLOCATOR_LIST   (1)
#define G_ALLOCATOR_SLIST   (2)
#define G_ALLOCATOR_NODE   (3)
#define G_ALLOC_ONLY   1
#define G_ALLOC_AND_FREE   2

Typedefs

typedef typedefG_BEGIN_DECLS
struct _GAllocator 
GAllocator
typedef _GMemChunk GMemChunk

Functions

gpointer g_malloc (gulong size)
gpointer g_malloc0 (gulong size)
gpointer g_realloc (gpointer mem, gulong size)
void g_free (gpointer mem)
void g_mem_profile (void)
void g_mem_check (gpointer mem)
GAllocatorg_allocator_new (const gchar *name, guint n_preallocs)
void g_allocator_free (GAllocator *allocato)
GMemChunkg_mem_chunk_new (gchar *name, gint atom_size, gulong area_size, gint type)
void g_mem_chunk_destroy (GMemChunk *mem_chunk)
gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk)
gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk)
void g_mem_chunk_free (GMemChunk *mem_chunk, gpointer mem)
void g_mem_chunk_clean (GMemChunk *mem_chunk)
void g_mem_chunk_reset (GMemChunk *mem_chunk)
void g_mem_chunk_print (GMemChunk *mem_chunk)
void g_mem_chunk_info (void)
void g_blow_chunks (void)


Define Documentation

#define G_ALLOC_AND_FREE   2

Definition at line 129 of file gmem.h.

Referenced by gdk_color_copy(), and gdk_event_new().

#define G_ALLOC_ONLY   1

Definition at line 128 of file gmem.h.

#define G_ALLOCATOR_LIST   (1)

Definition at line 105 of file gmem.h.

#define G_ALLOCATOR_NODE   (3)

Definition at line 107 of file gmem.h.

#define G_ALLOCATOR_SLIST   (2)

Definition at line 106 of file gmem.h.

#define g_chunk_free ( mem,
mem_chunk   ) 

Value:

G_STMT_START { \
  g_mem_chunk_free ((mem_chunk), (mem)); \
} G_STMT_END

Definition at line 73 of file gmem.h.

#define g_chunk_new ( type,
chunk   ) 

Value:

Definition at line 67 of file gmem.h.

Referenced by gdk_color_copy(), and gdk_event_new().

#define g_chunk_new0 ( type,
chunk   ) 

Value:

Definition at line 70 of file gmem.h.

#define g_mem_chunk_create ( type,
pre_alloc,
alloc_type   ) 

Value:

( \
  g_mem_chunk_new (#type " mem chunks (" #pre_alloc ")", \
                   sizeof (type), \
                   sizeof (type) * (pre_alloc), \
                   (alloc_type)) \
)

Definition at line 61 of file gmem.h.

#define g_new ( type,
count   )     ((type *) g_malloc ((unsigned) sizeof (type) * (count)))

Definition at line 53 of file gmem.h.

Referenced by _gdk_pixmap_create_from_xpm(), _gdk_win32_gc_new(), _gdk_window_alloc(), create_colormap(), gdk_add_client_message_filter(), gdk_arg_context_new(), gdk_color_context_get_pixel(), gdk_color_context_init_dither(), gdk_color_context_new(), gdk_color_context_new_mono(), gdk_colormap_alloc_colors_private(), gdk_colormap_alloc_colors_shared(), gdk_colormap_alloc_colors_writeable(), gdk_colormap_change(), gdk_colormap_free_colors(), gdk_colormap_get_system(), gdk_colormap_new(), gdk_colormap_sync(), gdk_colors_free(), gdk_cursor_new(), gdk_cursor_new_from_pixmap(), gdk_drawable_alloc(), gdk_error_trap_push(), gdk_font_list_new(), gdk_font_load(), gdk_font_load_internal(), gdk_fontset_load(), gdk_gc_alloc(), gdk_image_get(), gdk_image_new_bitmap(), gdk_image_new_with_depth(), gdk_input_add_full(), gdk_input_init(), gdk_input_set_extension_events(), gdk_key_grab(), gdk_keyval_from_name(), gdk_pixmap_extract_color(), gdk_pixmap_read_string(), gdk_region_new(), gdk_region_polygon(), gdk_rgb_cmap_new(), gdk_rgb_colorcube_222(), gdk_rgb_make_colorcube(), gdk_rgb_make_colorcube_d(), gdk_rgb_preprocess_dm_565(), gdk_rgb_set_gray_cmap(), gdk_sel_prop_store(), gdk_syscursor_new(), gdk_text_extents(), gdk_text_extents_wc(), gdk_text_size(), gdk_text_width_wc(), gdk_visual_init(), gdk_win32_draw_lines(), gdk_win32_draw_polygon(), gdk_win32_draw_text(), gdk_win32_draw_text_wc(), gdk_win32_pixmap_alloc(), gdk_win32_window_alloc(), gdk_window_add_filter(), gdk_window_new(), gdk_window_set_title(), init_color(), init_gray(), query_colors(), and QueryTree().

#define g_new0 ( type,
count   )     ((type *) g_malloc0 ((unsigned) sizeof (type) * (count)))

Definition at line 55 of file gmem.h.

Referenced by gdk_color_context_add_palette(), gdk_colormap_get_system(), gdk_colormap_new(), gdk_drag_context_new(), gdk_rgb_init(), source_context_new(), and target_context_new().

#define g_renew ( type,
mem,
count   )     ((type *) g_realloc (mem, (unsigned) sizeof (type) * (count)))

Definition at line 57 of file gmem.h.


Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _GAllocator GAllocator

Definition at line 40 of file gmem.h.

typedef struct _GMemChunk GMemChunk

Definition at line 41 of file gmem.h.


Function Documentation

void g_allocator_free ( GAllocator allocato  ) 

GAllocator* g_allocator_new ( const gchar name,
guint  n_preallocs 
)

void g_blow_chunks ( void   ) 

void g_free ( gpointer  mem  ) 

Referenced by _gdk_colormap_real_destroy(), _gdk_cursor_destroy(), _gdk_font_destroy(), _gdk_pixmap_create_from_xpm(), free_colormap(), free_hash_entry(), gdk_arg_context_destroy(), gdk_bitmap_create_from_data(), gdk_color_context_free(), gdk_color_context_free_dither(), gdk_colormap_alloc_colors_private(), gdk_colormap_alloc_colors_writeable(), gdk_colormap_change(), gdk_colormap_sync(), gdk_cursor_new_from_pixmap(), gdk_drag_context_unref(), gdk_drawable_unref(), gdk_event_free(), gdk_font_full_name_free(), gdk_font_full_name_get(), gdk_font_hash_remove(), gdk_font_list_new(), gdk_font_load_internal(), gdk_fontset_load(), gdk_gc_copy(), gdk_image_get(), gdk_image_new_with_depth(), gdk_init_check(), gdk_input_exit(), gdk_input_set_extension_events(), gdk_input_window_destroy(), gdk_io_destroy(), gdk_key_ungrab(), gdk_pixmap_colormap_create_from_xpm(), gdk_pixmap_new(), gdk_propagate_shapes(), gdk_property_change(), gdk_property_delete(), gdk_region_destroy(), gdk_region_polygon(), gdk_rgb_cmap_free(), gdk_sel_prop_store(), gdk_selection_convert(), gdk_selection_owner_get(), gdk_selection_owner_set(), gdk_selection_property_delete(), gdk_selection_send_notify(), gdk_text_extents(), gdk_text_extents_wc(), gdk_text_size(), gdk_text_width_wc(), gdk_win32_api_failed(), gdk_win32_draw_lines(), gdk_win32_draw_text(), gdk_win32_draw_text_wc(), gdk_win32_gc_destroy(), gdk_win32_image_destroy(), gdk_win32_pixmap_destroy(), gdk_win32_window_destroy(), gdk_window_internal_destroy(), gdk_window_new(), gdk_window_remove_filter(), gdk_window_set_title(), gdk_xpm_destroy_notify(), TGWin32::GetPasteBuffer(), init_gray(), init_palette(), InnerEnumFontFamExProc(), logfont_to_xlfd(), print_event(), and RegisterGdkClass().

gpointer g_malloc ( gulong  size  ) 

Referenced by _gdk_pixmap_create_from_xpm(), BitmapToRegion(), gdk_bitmap_create_from_data(), gdk_cursor_new_from_pixmap(), gdk_gc_copy(), gdk_init_check(), gdk_region_polygon(), gdk_rgb_ensure_stage(), gdk_selection_convert(), gdk_selection_property_get(), and gdk_wcstombs().

gpointer g_malloc0 ( gulong  size  ) 

Referenced by gdk_cursor_new_from_pixmap().

void g_mem_check ( gpointer  mem  ) 

gpointer g_mem_chunk_alloc ( GMemChunk mem_chunk  ) 

gpointer g_mem_chunk_alloc0 ( GMemChunk mem_chunk  ) 

void g_mem_chunk_clean ( GMemChunk mem_chunk  ) 

void g_mem_chunk_destroy ( GMemChunk mem_chunk  ) 

void g_mem_chunk_free ( GMemChunk mem_chunk,
gpointer  mem 
)

Referenced by gdk_color_free(), and gdk_event_free().

void g_mem_chunk_info ( void   ) 

GMemChunk* g_mem_chunk_new ( gchar name,
gint  atom_size,
gulong  area_size,
gint  type 
)

Referenced by gdk_color_copy(), and gdk_event_new().

void g_mem_chunk_print ( GMemChunk mem_chunk  ) 

void g_mem_chunk_reset ( GMemChunk mem_chunk  ) 

void g_mem_profile ( void   ) 

gpointer g_realloc ( gpointer  mem,
gulong  size 
)

Referenced by BitmapToRegion(), gdk_color_context_add_palette(), gdk_color_context_get_pixel(), gdk_pixmap_read_string(), and InnerEnumFontFamExProc().


Generated on Tue Jul 5 15:58:43 2011 for ROOT_528-00b_version by  doxygen 1.5.1