zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftmemory.h File Reference
#include <ft2build.h>
#include <FT_CONFIG_CONFIG_H>
#include <FT_TYPES_H>

Go to the source code of this file.

Macros

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

Functions

 ft_mem_alloc (FT_Memory memory, FT_Long size, FT_Error *p_error)
 
 ft_mem_dup (FT_Memory memory, const void *address, FT_ULong size, FT_Error *p_error)
 
 ft_mem_free (FT_Memory memory, const void *P)
 
 ft_mem_qalloc (FT_Memory memory, FT_Long size, 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_realloc (FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
 
 ft_mem_strcpyn (char *dst, const char *src, FT_ULong size)
 
 ft_mem_strdup (FT_Memory memory, const char *str, FT_Error *p_error)
 

Macro Definition Documentation

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

Definition at line 266 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 230 of file ftmemory.h.

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

Definition at line 228 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 219 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 213 of file ftmemory.h.

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

Definition at line 80 of file ftmemory.h.

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

Definition at line 102 of file ftmemory.h.

#define FT_DEBUG_INNER (   exp)    (exp)

Definition at line 101 of file ftmemory.h.

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

Definition at line 357 of file ftmemory.h.

#define FT_FREE (   ptr)    FT_MEM_FREE( ptr )

Definition at line 286 of file ftmemory.h.

Referenced by _bdf_add_property(), _bdf_list_done(), _bdf_parse_glyphs(), _bdf_parse_start(), _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_charset_load(), cff_cmap_unicode_done(), cff_face_done(), cff_font_done(), cff_index_done(), cff_index_init(), cff_index_load_offsets(), cff_subfont_done(), cid_face_done(), cid_load_glyph(), cid_read_subrs(), classic_kern_validate(), destroy_charmaps(), destroy_face(), Destroy_Module(), destroy_size(), FNT_Face_Done(), fnt_font_done(), FT_Add_Module(), ft_add_renderer(), ft_bitmap_assure_buffer(), FT_Bitmap_Done(), ft_black_done(), FT_ClassicKern_Free(), ft_cmap_done_internal(), FT_Done_Face(), FT_Done_Glyph(), FT_Done_GlyphSlot(), FT_Done_Library(), 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_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(), T1_Read_PFM(), 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(), tt_face_get_name(), and TT_Process_Simple_Glyph().

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

Definition at line 144 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 ) )
#define NULL
Definition: ftobjs.h:61
FT_Error error
Definition: cffdrivr.c:407
GLint GLsizei count
Definition: gl2ext.h:1011
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: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 177 of file ftmemory.h.

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

Definition at line 354 of file ftmemory.h.

#define FT_MEM_FREE (   ptr)
Value:
ft_mem_free( memory, (ptr) ); \
(ptr) = NULL; \
ft_mem_free(FT_Memory memory, const void *P)
Definition: ftutil.c:167
#define NULL
Definition: ftobjs.h:61
#define FT_END_STMNT
Definition: ftconfig.h:301

Definition at line 147 of file ftmemory.h.

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

Definition at line 205 of file ftmemory.h.

Referenced by cid_parser_new(), ft_lzwstate_prefix_grow(), and T1_Get_Private_Dict().

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

Definition at line 153 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 ) )
#define NULL
Definition: ftobjs.h:61
FT_Error error
Definition: cffdrivr.c:407
GLint GLsizei count
Definition: gl2ext.h:1011
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: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 239 of file ftmemory.h.

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

Definition at line 161 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 ) )
#define NULL
Definition: ftobjs.h:61
FT_Error error
Definition: cffdrivr.c:407
GLint GLsizei count
Definition: gl2ext.h:1011
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
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: ftutil.c:113

Definition at line 187 of file ftmemory.h.

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

Definition at line 164 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 ) )
#define NULL
Definition: ftobjs.h:61
FT_Error error
Definition: cffdrivr.c:407
GLint GLsizei count
Definition: gl2ext.h:1011
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
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: ftutil.c:113

Definition at line 249 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 ) )
FT_Error error
Definition: cffdrivr.c:407
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
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: ftutil.c:113

Definition at line 167 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 ) )
FT_Error error
Definition: cffdrivr.c:407
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
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: ftutil.c:113

Definition at line 192 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 ) )
FT_Error error
Definition: cffdrivr.c:407
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
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: ftutil.c:113

Definition at line 254 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 ) )
FT_Error error
Definition: cffdrivr.c:407
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
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: ftutil.c:113

Definition at line 254 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 ) )
FT_Error error
Definition: cffdrivr.c:407
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: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 156 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 ) )
FT_Error error
Definition: cffdrivr.c:407
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: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 182 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 ) )
FT_Error error
Definition: cffdrivr.c:407
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: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 244 of file ftmemory.h.

#define FT_MEM_SET (   dest,
  byte,
  count 
)    ft_memset( dest, byte, count )
#define FT_MEM_SET_ERROR (   cond)    ( (cond), error != 0 )

Definition at line 198 of file ftmemory.h.

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

Definition at line 348 of file ftmemory.h.

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

Definition at line 273 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 279 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 296 of file ftmemory.h.

#define FT_QNEW_ARRAY (   ptr,
  count 
)    FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )
#define FT_QREALLOC (   ptr,
  cursz,
  newsz 
)    FT_MEM_SET_ERROR( FT_MEM_QREALLOC( ptr, cursz, newsz ) )

Definition at line 276 of file ftmemory.h.

Referenced by FT_Bitmap_Convert(), and FT_Bitmap_Copy().

#define FT_QREALLOC_MULT (   ptr,
  oldcnt,
  newcnt,
  itmsz 
)
Value:
newcnt, itmsz ) )
#define FT_MEM_SET_ERROR(cond)
Definition: ftmemory.h:198
#define FT_MEM_QREALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
Definition: ftmemory.h:192

Definition at line 282 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 302 of file ftmemory.h.

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

Definition at line 263 of file ftmemory.h.

Referenced by FNT_Face_Init(), and t42_parse_sfnts().

#define FT_REALLOC_MULT (   ptr,
  oldcnt,
  newcnt,
  itmsz 
)
Value:
newcnt, itmsz ) )
#define FT_MEM_SET_ERROR(cond)
Definition: ftmemory.h:198
#define FT_MEM_REALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
Definition: ftmemory.h:182

Definition at line 269 of file ftmemory.h.

Referenced by ft_lzwstate_prefix_grow().

#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) )
#define FT_STRDUP (   dst,
  str 
)    FT_MEM_SET_ERROR( FT_MEM_STRDUP( dst, str ) )

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(), and ft_memcpy.

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, FT_Err_Invalid_Argument, FT_Err_Ok, 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_Err_Invalid_Argument, FT_Err_Ok, 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_Err_Ok, 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(), and ft_strlen.