ftmemory.h File Reference

#include <ft2build.h>

Go to the source code of this file.

Defines

#define FT_SET_ERROR(expression)   ( ( error = (expression) ) != 0 )
#define FT_ASSIGNP(p, val)   (p) = (val)
#define FT_DEBUG_INNER(exp)   (exp)
#define FT_ASSIGNP_INNER(p, exp)   FT_ASSIGNP( p, exp )
#define FT_MEM_ALLOC(ptr, size)   FT_ASSIGNP_INNER( ptr, ft_mem_alloc( memory, (size), &error ) )
#define FT_MEM_FREE(ptr)
#define FT_MEM_NEW(ptr)   FT_MEM_ALLOC( ptr, sizeof ( *(ptr) ) )
#define FT_MEM_REALLOC(ptr, cursz, newsz)
#define FT_MEM_QALLOC(ptr, size)   FT_ASSIGNP_INNER( ptr, ft_mem_qalloc( memory, (size), &error ) )
#define FT_MEM_QNEW(ptr)   FT_MEM_QALLOC( ptr, sizeof ( *(ptr) ) )
#define FT_MEM_QREALLOC(ptr, cursz, newsz)
#define FT_MEM_QRENEW_ARRAY(ptr, cursz, newsz)
#define FT_MEM_ALLOC_MULT(ptr, count, item_size)
#define FT_MEM_REALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
#define FT_MEM_QALLOC_MULT(ptr, count, item_size)
#define FT_MEM_QREALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
#define FT_MEM_SET_ERROR(cond)   ( (cond), error != 0 )
#define FT_MEM_SET(dest, byte, count)   ft_memset( dest, byte, count )
#define FT_MEM_COPY(dest, source, count)   ft_memcpy( dest, source, count )
#define FT_MEM_MOVE(dest, source, count)   ft_memmove( dest, source, count )
#define FT_MEM_ZERO(dest, count)   FT_MEM_SET( dest, 0, count )
#define FT_ZERO(p)   FT_MEM_ZERO( p, sizeof ( *(p) ) )
#define FT_ARRAY_ZERO(dest, count)   FT_MEM_ZERO( dest, (count) * sizeof ( *(dest) ) )
#define FT_ARRAY_COPY(dest, source, count)   FT_MEM_COPY( dest, source, (count) * sizeof ( *(dest) ) )
#define FT_ARRAY_MOVE(dest, source, count)   FT_MEM_MOVE( dest, source, (count) * sizeof ( *(dest) ) )
#define FT_ARRAY_MAX(ptr)   ( FT_INT_MAX / sizeof ( *(ptr) ) )
#define FT_ARRAY_CHECK(ptr, count)   ( (count) <= FT_ARRAY_MAX( ptr ) )
#define FT_MEM_NEW_ARRAY(ptr, count)
#define FT_MEM_RENEW_ARRAY(ptr, cursz, newsz)
#define FT_MEM_QNEW_ARRAY(ptr, count)
#define FT_MEM_QRENEW_ARRAY(ptr, cursz, newsz)
#define FT_ALLOC(ptr, size)   FT_MEM_SET_ERROR( FT_MEM_ALLOC( ptr, size ) )
#define FT_REALLOC(ptr, cursz, newsz)   FT_MEM_SET_ERROR( FT_MEM_REALLOC( ptr, cursz, newsz ) )
#define FT_ALLOC_MULT(ptr, count, item_size)   FT_MEM_SET_ERROR( FT_MEM_ALLOC_MULT( ptr, count, item_size ) )
#define FT_REALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
#define FT_QALLOC(ptr, size)   FT_MEM_SET_ERROR( FT_MEM_QALLOC( ptr, size ) )
#define FT_QREALLOC(ptr, cursz, newsz)   FT_MEM_SET_ERROR( FT_MEM_QREALLOC( ptr, cursz, newsz ) )
#define FT_QALLOC_MULT(ptr, count, item_size)   FT_MEM_SET_ERROR( FT_MEM_QALLOC_MULT( ptr, count, item_size ) )
#define FT_QREALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
#define FT_FREE(ptr)   FT_MEM_FREE( ptr )
#define FT_NEW(ptr)   FT_MEM_SET_ERROR( FT_MEM_NEW( ptr ) )
#define FT_NEW_ARRAY(ptr, count)   FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )
#define FT_RENEW_ARRAY(ptr, curcnt, newcnt)   FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )
#define FT_QNEW(ptr)   FT_MEM_SET_ERROR( FT_MEM_QNEW( ptr ) )
#define FT_QNEW_ARRAY(ptr, count)   FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )
#define FT_QRENEW_ARRAY(ptr, curcnt, newcnt)   FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )
#define FT_MEM_STRDUP(dst, str)   (dst) = (char*)ft_mem_strdup( memory, (const char*)(str), &error )
#define FT_STRDUP(dst, str)   FT_MEM_SET_ERROR( FT_MEM_STRDUP( dst, str ) )
#define FT_MEM_DUP(dst, address, size)   (dst) = ft_mem_dup( memory, (address), (FT_ULong)(size), &error )
#define FT_DUP(dst, address, size)   FT_MEM_SET_ERROR( FT_MEM_DUP( dst, address, size ) )
#define FT_STRCPYN(dst, src, size)   ft_mem_strcpyn( (char*)dst, (const char*)(src), (FT_ULong)(size) )

Functions

 ft_mem_alloc (FT_Memory memory, FT_Long size, FT_Error *p_error)
 ft_mem_qalloc (FT_Memory memory, FT_Long size, FT_Error *p_error)
 ft_mem_realloc (FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
 ft_mem_qrealloc (FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
 ft_mem_free (FT_Memory memory, const void *P)
 ft_mem_strdup (FT_Memory memory, const char *str, FT_Error *p_error)
 ft_mem_dup (FT_Memory memory, const void *address, FT_ULong size, FT_Error *p_error)
 ft_mem_strcpyn (char *dst, const char *src, FT_ULong size)


Define Documentation

#define FT_ALLOC ( ptr,
size   )     FT_MEM_SET_ERROR( FT_MEM_ALLOC( ptr, size ) )

Definition at line 248 of file ftmemory.h.

Referenced by _bdf_parse_start(), af_face_globals_get_metrics(), af_face_globals_new(), bdf_interpret_style(), cff_index_get_name(), cff_ps_get_font_info(), cid_load_glyph(), cid_parse_dict(), FNT_Face_Init(), FT_CMap_New(), FT_DEFINE_GLYPH(), ft_glyphslot_alloc_bitmap(), FT_New_Face_From_SFNT(), FT_New_GlyphSlot(), FT_New_Library(), FT_New_Size(), ft_smooth_render_generic(), FTC_Manager_RegisterCache(), FTC_MruList_New(), ftc_sbit_copy_bitmap(), gray_raster_new(), gxv_load_table(), open_face(), otv_load_table(), parse_blend_axis_types(), parse_charstrings(), parse_subrs(), pcf_interpret_style(), pfr_aux_name_load(), pfr_extra_item_load_font_id(), ps_parser_load_field(), ps_table_done(), read_lwfn(), reallocate_t1_table(), T1_Get_MM_Var(), T1_Get_Private_Dict(), T1_New_Parser(), T42_Open_Face(), and t42_parser_init().

#define FT_ALLOC_MULT ( ptr,
count,
item_size   )     FT_MEM_SET_ERROR( FT_MEM_ALLOC_MULT( ptr, count, item_size ) )

Definition at line 254 of file ftmemory.h.

Referenced by FNT_Load_Glyph(), and ft_raster1_render().

#define FT_ARRAY_CHECK ( ptr,
count   )     ( (count) <= FT_ARRAY_MAX( ptr ) )

Definition at line 218 of file ftmemory.h.

#define FT_ARRAY_COPY ( dest,
source,
count   )     FT_MEM_COPY( dest, source, (count) * sizeof ( *(dest) ) )

Definition at line 204 of file ftmemory.h.

Referenced by af_loader_load_g(), FT_Bitmap_Convert(), FT_GlyphLoader_CopyPoints(), FT_Outline_Copy(), ft_stroke_border_export(), TT_Hint_Glyph(), and TT_Process_Simple_Glyph().

#define FT_ARRAY_MAX ( ptr   )     ( FT_INT_MAX / sizeof ( *(ptr) ) )

Definition at line 216 of file ftmemory.h.

Referenced by pcf_read_TOC().

#define FT_ARRAY_MOVE ( dest,
source,
count   )     FT_MEM_MOVE( dest, source, (count) * sizeof ( *(dest) ) )

Definition at line 207 of file ftmemory.h.

Referenced by FT_GlyphLoader_CheckPoints().

#define FT_ARRAY_ZERO ( dest,
count   )     FT_MEM_ZERO( dest, (count) * sizeof ( *(dest) ) )

Definition at line 201 of file ftmemory.h.

#define FT_ASSIGNP ( p,
val   )     (p) = (val)

Definition at line 69 of file ftmemory.h.

#define FT_ASSIGNP_INNER ( p,
exp   )     FT_ASSIGNP( p, exp )

Definition at line 90 of file ftmemory.h.

#define FT_DEBUG_INNER ( exp   )     (exp)

Definition at line 89 of file ftmemory.h.

#define FT_DUP ( dst,
address,
size   )     FT_MEM_SET_ERROR( FT_MEM_DUP( dst, address, size ) )

Definition at line 345 of file ftmemory.h.

#define FT_FREE ( ptr   )     FT_MEM_FREE( ptr )

Definition at line 274 of file ftmemory.h.

Referenced by _bdf_add_property(), _bdf_list_done(), _bdf_parse_glyphs(), _bdf_readstream(), af_face_globals_free(), af_face_globals_get_metrics(), af_glyph_hints_done(), afm_parser_done(), afm_parser_parse(), BDF_Face_Done(), bdf_free_font(), bdf_load_font(), cff_charset_done(), cff_charset_free_cids(), cff_face_done(), cff_face_init(), cff_font_done(), cff_get_glyph_name(), cff_get_name_index(), cff_index_done(), cff_index_init(), cff_index_load_offsets(), cff_subfont_done(), cid_face_done(), cid_load_glyph(), classic_kern_validate(), destroy_charmaps(), destroy_face(), Destroy_Module(), destroy_size(), FNT_Face_Done(), fnt_font_done(), ft_add_renderer(), FT_Bitmap_Done(), ft_black_done(), FT_ClassicKern_Free(), ft_cmap_done_internal(), FT_Done_Face(), FT_Done_Glyph(), FT_Done_GlyphSlot(), FT_Done_Size(), FT_GlyphLoader_Done(), FT_GlyphLoader_Reset(), ft_glyphslot_alloc_bitmap(), ft_glyphslot_done(), ft_glyphslot_free_bitmap(), FT_List_Finalize(), ft_lzwstate_done(), FT_New_Face_From_SFNT(), FT_New_GlyphSlot(), FT_New_Library(), FT_New_Size(), FT_OpenType_Free(), FT_Outline_Done_Internal(), FT_Raccess_Get_DataOffsets(), ft_raster1_render(), ft_remove_renderer(), ft_smooth_render_generic(), FT_Stream_EnterFrame(), FT_Stream_ExitFrame(), FT_Stream_Free(), FT_Stream_New(), FT_Stream_ReleaseFrame(), ft_stroke_border_done(), FT_Stroker_Done(), FT_TrueTypeGX_Free(), ftc_cache_done(), ftc_cmap_node_free(), ftc_inode_free(), FTC_Manager_Done(), FTC_Manager_RegisterCache(), FTC_MruList_New(), FTC_MruList_Remove(), ftc_snode_free(), gray_raster_done(), gxv_validate(), hash_free(), hash_rehash(), load_format_20(), load_format_25(), load_truetype_glyph(), main(), open_face(), otv_validate(), parse_charstrings(), parse_subrs(), PCF_Face_Done(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metrics(), pcf_get_properties(), pcf_read_TOC(), pfr_extra_item_load_kerning_pairs(), pfr_face_done(), pfr_glyph_done(), pfr_phy_font_done(), ps_hint_table_done(), ps_hints_apply(), ps_mask_done(), ps_mask_table_done(), ps_parser_load_field(), ps_table_done(), ps_table_new(), ps_table_release(), psh_globals_destroy(), psh_glyph_done(), psh_glyph_interpolate_normal_points(), psh_hint_table_done(), reallocate_t1_table(), sfnt_done_face(), t1_cmap_unicode_done(), T1_Done_Blend(), T1_Done_Metrics(), T1_Face_Done(), T1_Finalize_Parser(), T1_New_Parser(), T42_Face_Done(), t42_parse_sfnts(), t42_parser_done(), t42_parser_init(), tt_face_done(), tt_face_free_hdmx(), tt_face_free_name(), tt_face_free_ps_names(), and TT_Process_Simple_Glyph().

#define FT_MEM_ALLOC ( ptr,
size   )     FT_ASSIGNP_INNER( ptr, ft_mem_alloc( memory, (size), &error ) )

Definition at line 132 of file ftmemory.h.

#define FT_MEM_ALLOC_MULT ( ptr,
count,
item_size   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, (item_size), \
                                                 0, (count),          \
                                                 NULL, &error ) )

Definition at line 165 of file ftmemory.h.

#define FT_MEM_COPY ( dest,
source,
count   )     ft_memcpy( dest, source, count )

Definition at line 191 of file ftmemory.h.

Referenced by _bdf_add_comment(), _bdf_parse_glyphs(), _bdf_parse_start(), _bdf_readstream(), _bdf_set_default_spacing(), bdf_create_property(), cff_index_get_name(), FNT_Face_Init(), ft_bitmap_assure_buffer(), FT_Bitmap_Copy(), FT_Stream_ReadAt(), FT_Stream_ReadFields(), FT_Stream_TryRead(), ftc_sbit_copy_bitmap(), parse_blend_axis_types(), parse_charstrings(), parse_subrs(), pfr_aux_name_load(), pfr_extra_item_load_font_id(), ps_parser_load_field(), ps_table_add(), ps_table_done(), reallocate_t1_table(), and TT_Load_Simple_Glyph().

#define FT_MEM_DUP ( dst,
address,
size   )     (dst) = ft_mem_dup( memory, (address), (FT_ULong)(size), &error )

Definition at line 342 of file ftmemory.h.

#define FT_MEM_FREE ( ptr   ) 

Value:

Definition at line 135 of file ftmemory.h.

#define FT_MEM_MOVE ( dest,
source,
count   )     ft_memmove( dest, source, count )

Definition at line 193 of file ftmemory.h.

Referenced by cid_parser_new(), and ft_lzwstate_prefix_grow().

#define FT_MEM_NEW ( ptr   )     FT_MEM_ALLOC( ptr, sizeof ( *(ptr) ) )

Definition at line 141 of file ftmemory.h.

#define FT_MEM_NEW_ARRAY ( ptr,
count   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, sizeof ( *(ptr) ), \
                                                 0, (count),                \
                                                 NULL, &error ) )

Definition at line 227 of file ftmemory.h.

#define FT_MEM_QALLOC ( ptr,
size   )     FT_ASSIGNP_INNER( ptr, ft_mem_qalloc( memory, (size), &error ) )

Definition at line 149 of file ftmemory.h.

#define FT_MEM_QALLOC_MULT ( ptr,
count,
item_size   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, (item_size), \
                                                  0, (count),          \
                                                  NULL, &error ) )

Definition at line 175 of file ftmemory.h.

#define FT_MEM_QNEW ( ptr   )     FT_MEM_QALLOC( ptr, sizeof ( *(ptr) ) )

Definition at line 152 of file ftmemory.h.

#define FT_MEM_QNEW_ARRAY ( ptr,
count   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, sizeof ( *(ptr) ), \
                                                  0, (count),                \
                                                  NULL, &error ) )

Definition at line 237 of file ftmemory.h.

#define FT_MEM_QREALLOC ( ptr,
cursz,
newsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, 1,        \
                                                  (cursz), (newsz), \
                                                  (ptr), &error ) )

Definition at line 155 of file ftmemory.h.

#define FT_MEM_QREALLOC_MULT ( ptr,
oldcnt,
newcnt,
itmsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, (itmsz),    \
                                                  (oldcnt), (newcnt), \
                                                  (ptr), &error ) )

Definition at line 180 of file ftmemory.h.

#define FT_MEM_QRENEW_ARRAY ( ptr,
cursz,
newsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, sizeof ( *(ptr) ), \
                                                  (cursz), (newsz),          \
                                                  (ptr), &error ) )

Definition at line 242 of file ftmemory.h.

#define FT_MEM_QRENEW_ARRAY ( ptr,
cursz,
newsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, sizeof ( *(ptr) ), \
                                                  (cursz), (newsz),          \
                                                  (ptr), &error ) )

Definition at line 242 of file ftmemory.h.

#define FT_MEM_REALLOC ( ptr,
cursz,
newsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, 1,        \
                                                 (cursz), (newsz), \
                                                 (ptr), &error ) )

Definition at line 144 of file ftmemory.h.

#define FT_MEM_REALLOC_MULT ( ptr,
oldcnt,
newcnt,
itmsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, (itmsz),    \
                                                 (oldcnt), (newcnt), \
                                                 (ptr), &error ) )

Definition at line 170 of file ftmemory.h.

#define FT_MEM_RENEW_ARRAY ( ptr,
cursz,
newsz   ) 

Value:

FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, sizeof ( *(ptr) ), \
                                                 (cursz), (newsz),          \
                                                 (ptr), &error ) )

Definition at line 232 of file ftmemory.h.

#define FT_MEM_SET ( dest,
byte,
count   )     ft_memset( dest, byte, count )

Definition at line 189 of file ftmemory.h.

Referenced by af_face_globals_compute_script_coverage(), FT_New_Face_From_FOND(), and gray_render_span().

#define FT_MEM_SET_ERROR ( cond   )     ( (cond), error != 0 )

Definition at line 186 of file ftmemory.h.

#define FT_MEM_STRDUP ( dst,
str   )     (dst) = (char*)ft_mem_strdup( memory, (const char*)(str), &error )

Definition at line 336 of file ftmemory.h.

#define FT_MEM_ZERO ( dest,
count   )     FT_MEM_SET( dest, 0, count )

Definition at line 196 of file ftmemory.h.

Referenced by _bdf_add_property(), _bdf_list_split(), BDF_Face_Init(), cff_decoder_init(), cff_index_done(), cff_index_init(), cff_make_private_dict(), cff_parser_init(), cff_subfont_load(), cid_parser_new(), ft_bitmap_assure_buffer(), ft_black_render(), FT_Glyph_To_Bitmap(), ft_mem_alloc(), ft_mem_realloc(), ft_raster1_get_cbox(), ft_smooth_get_cbox(), load_truetype_glyph(), pcf_load_font(), ps_hints_init(), psh_glyph_init(), t1_decoder_init(), t1_hints_funcs_init(), t2_hints_funcs_init(), t42_loader_init(), and tt_loader_init().

#define FT_NEW ( ptr   )     FT_MEM_SET_ERROR( FT_MEM_NEW( ptr ) )

Definition at line 276 of file ftmemory.h.

Referenced by _bdf_parse_start(), afm_parser_init(), bdf_load_font(), cff_face_init(), cff_size_init(), fnt_face_get_dll_font(), FNT_Face_Init(), ft_add_renderer(), ft_black_new(), FT_GlyphLoader_New(), ft_glyphslot_init(), FT_New_Face_From_SFNT(), FT_New_Library(), FT_New_Size(), FT_Open_Face(), FT_Stream_New(), FT_Stroker_New(), ftc_cmap_node_new(), FTC_INode_New(), FTC_Manager_New(), FTC_SNode_New(), hash_insert(), open_face(), pfr_extra_item_load_kerning_pairs(), ps_hints_apply(), psh_globals_new(), sfnt_open_font(), t1_allocate_blend(), and T1_Read_Metrics().

#define FT_NEW_ARRAY ( ptr,
count   )     FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )

Definition at line 278 of file ftmemory.h.

Referenced by _bdf_add_property(), _bdf_parse_glyphs(), _bdf_parse_start(), _bdf_readstream(), bdf_create_property(), BDF_Face_Init(), cff_charset_compute_cids(), cff_charset_load(), cff_font_load(), cff_index_get_pointers(), cff_index_load_offsets(), cid_parse_dict(), FNT_Face_Init(), FT_GlyphLoader_CreateExtra(), FT_Outline_New_Internal(), FT_Raccess_Get_DataOffsets(), ftc_cache_init(), hash_init(), hash_rehash(), load_format_20(), load_format_25(), parse_blend_design_map(), parse_encoding(), parse_fd_array(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metrics(), pcf_get_properties(), pcf_load_font(), pcf_read_TOC(), pfr_extra_item_load_stem_snaps(), pfr_face_init(), pfr_phy_font_load(), ps_table_new(), psh_glyph_init(), psh_glyph_interpolate_normal_points(), psh_hint_table_init(), sfnt_load_face(), sfnt_open_font(), t1_allocate_blend(), t42_parse_encoding(), tt_face_load_cvt(), tt_face_load_hdmx(), tt_face_load_name(), tt_name_entry_ascii_from_other(), and tt_name_entry_ascii_from_utf16().

#define FT_QALLOC ( ptr,
size   )     FT_MEM_SET_ERROR( FT_MEM_QALLOC( ptr, size ) )

Definition at line 261 of file ftmemory.h.

Referenced by afm_parser_read_vals(), FT_Bitmap_Copy(), and FT_Stream_EnterFrame().

#define FT_QALLOC_MULT ( ptr,
count,
item_size   )     FT_MEM_SET_ERROR( FT_MEM_QALLOC_MULT( ptr, count, item_size ) )

Definition at line 267 of file ftmemory.h.

Referenced by ft_bitmap_assure_buffer().

#define FT_QNEW ( ptr   )     FT_MEM_SET_ERROR( FT_MEM_QNEW( ptr ) )

Definition at line 284 of file ftmemory.h.

#define FT_QNEW_ARRAY ( ptr,
count   )     FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )

Definition at line 287 of file ftmemory.h.

Referenced by afm_parse_kern_pairs(), afm_parse_track_kern(), T1_Read_PFM(), tt_face_load_font_dir(), and tt_face_load_gasp().

#define FT_QREALLOC ( ptr,
cursz,
newsz   )     FT_MEM_SET_ERROR( FT_MEM_QREALLOC( ptr, cursz, newsz ) )

Definition at line 264 of file ftmemory.h.

Referenced by FT_Bitmap_Convert(), and FT_Bitmap_Copy().

#define FT_QREALLOC_MULT ( ptr,
oldcnt,
newcnt,
itmsz   ) 

Value:

FT_MEM_SET_ERROR( FT_MEM_QREALLOC_MULT( ptr, oldcnt,      \
                                                  newcnt, itmsz ) )

Definition at line 270 of file ftmemory.h.

#define FT_QRENEW_ARRAY ( ptr,
curcnt,
newcnt   )     FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )

Definition at line 290 of file ftmemory.h.

#define FT_REALLOC ( ptr,
cursz,
newsz   )     FT_MEM_SET_ERROR( FT_MEM_REALLOC( ptr, cursz, newsz ) )

Definition at line 251 of file ftmemory.h.

Referenced by FNT_Face_Init(), and t42_parse_sfnts().

#define FT_REALLOC_MULT ( ptr,
oldcnt,
newcnt,
itmsz   ) 

Value:

FT_MEM_SET_ERROR( FT_MEM_REALLOC_MULT( ptr, oldcnt,      \
                                                 newcnt, itmsz ) )

Definition at line 257 of file ftmemory.h.

Referenced by ft_lzwstate_prefix_grow().

#define FT_RENEW_ARRAY ( ptr,
curcnt,
newcnt   )     FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )

Definition at line 281 of file ftmemory.h.

Referenced by _bdf_add_comment(), _bdf_add_property(), _bdf_list_ensure(), _bdf_parse_glyphs(), _bdf_readstream(), af_axis_hints_new_edge(), af_axis_hints_new_segment(), af_glyph_hints_reload(), bdf_create_property(), bdf_load_font(), cid_parse_dict(), FT_CMap_Done(), FT_CMap_New(), FT_GlyphLoader_CheckPoints(), FT_GlyphLoader_CheckSubGlyphs(), ft_lzwstate_stack_grow(), ft_stroke_border_grow(), ftc_cache_resize(), pfr_extra_item_load_bitmap_info(), pfr_glyph_load_compound(), pfr_glyph_load_simple(), ps_hint_table_ensure(), ps_mask_ensure(), and ps_mask_table_ensure().

#define FT_SET_ERROR ( expression   )     ( ( error = (expression) ) != 0 )

Definition at line 42 of file ftmemory.h.

Referenced by cff_font_load(), parse_encoding(), and t42_parse_encoding().

#define FT_STRCPYN ( dst,
src,
size   )     ft_mem_strcpyn( (char*)dst, (const char*)(src), (FT_ULong)(size) )

Definition at line 357 of file ftmemory.h.

Referenced by cff_get_glyph_name(), FT_DEFINE_SERVICE_SFNT_TABLEREC(), t1_get_glyph_name(), and t42_get_glyph_name().

#define FT_STRDUP ( dst,
str   )     FT_MEM_SET_ERROR( FT_MEM_STRDUP( dst, str ) )

Definition at line 339 of file ftmemory.h.

Referenced by _bdf_add_property(), BDF_Face_Init(), cff_index_get_sid_string(), cff_strcpy(), pcf_get_properties(), and pcf_load_font().

#define FT_ZERO ( p   )     FT_MEM_ZERO( p, sizeof ( *(p) ) )

Definition at line 198 of file ftmemory.h.

Referenced by _bdf_list_done(), _bdf_list_init(), af_axis_hints_new_edge(), af_glyph_hints_init(), af_latin2_hints_compute_segments(), af_latin2_metrics_init_widths(), af_latin_hints_compute_edges(), af_latin_hints_compute_segments(), af_latin_metrics_init_widths(), af_loader_init(), af_loader_load_glyph(), bdf_create_property(), cff_font_load(), ft_glyphslot_clear(), ft_lzwstate_done(), ft_lzwstate_init(), FT_Request_Metrics(), main(), pfr_glyph_init(), and t42_glyphslot_clear().


Function Documentation

ft_mem_alloc ( FT_Memory  memory,
FT_Long  size,
FT_Error p_error 
)

Definition at line 50 of file ftutil.c.

References error, ft_mem_qalloc(), and FT_MEM_ZERO.

Referenced by ft_mem_qrealloc().

ft_mem_dup ( FT_Memory  memory,
const void *  address,
FT_ULong  size,
FT_Error p_error 
)

Definition at line 176 of file ftutil.c.

References error, ft_mem_qalloc(), ft_memcpy, and p.

Referenced by ft_mem_strdup().

ft_mem_free ( FT_Memory  memory,
const void *  P 
)

Definition at line 167 of file ftutil.c.

Referenced by ft_mem_qrealloc(), FT_Stream_ExitFrame(), and FT_Stream_ReleaseFrame().

ft_mem_qalloc ( FT_Memory  memory,
FT_Long  size,
FT_Error p_error 
)

Definition at line 66 of file ftutil.c.

References error, and NULL.

Referenced by ft_mem_alloc(), ft_mem_dup(), and FT_Stream_EnterFrame().

ft_mem_qrealloc ( FT_Memory  memory,
FT_Long  item_size,
FT_Long  cur_count,
FT_Long  new_count,
void *  block,
FT_Error p_error 
)

Definition at line 113 of file ftutil.c.

References error, FT_ASSERT, FT_INT_MAX, ft_mem_alloc(), ft_mem_free(), and NULL.

Referenced by ft_mem_realloc().

ft_mem_realloc ( FT_Memory  memory,
FT_Long  item_size,
FT_Long  cur_count,
FT_Long  new_count,
void *  block,
FT_Error p_error 
)

Definition at line 92 of file ftutil.c.

References error, ft_mem_qrealloc(), and FT_MEM_ZERO.

ft_mem_strcpyn ( char *  dst,
const char *  src,
FT_ULong  size 
)

Definition at line 207 of file ftutil.c.

ft_mem_strdup ( FT_Memory  memory,
const char *  str,
FT_Error p_error 
)

Definition at line 194 of file ftutil.c.

References ft_mem_dup(), ft_strlen, and len.


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