Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ftutil.c File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_memory
 
#define FT_COMPONENT   trace_list
 

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_dup (FT_Memory memory, const void *address, FT_ULong size, FT_Error *p_error)
 
 ft_mem_strdup (FT_Memory memory, const char *str, FT_Error *p_error)
 
 ft_mem_strcpyn (char *dst, const char *src, FT_ULong size)
 
 FT_List_Find (FT_List list, void *data)
 
 FT_List_Add (FT_List list, FT_ListNode node)
 
 FT_List_Insert (FT_List list, FT_ListNode node)
 
 FT_List_Remove (FT_List list, FT_ListNode node)
 
 FT_List_Up (FT_List list, FT_ListNode node)
 
 FT_List_Iterate (FT_List list, FT_List_Iterator iterator, void *user)
 
 FT_List_Finalize (FT_List list, FT_List_Destructor destroy, FT_Memory memory, void *user)
 
 ft_highpow2 (FT_UInt32 value)
 

Macro Definition Documentation

◆ FT_COMPONENT [1/2]

#define FT_COMPONENT   trace_memory

Definition at line 237 of file ftutil.c.

◆ FT_COMPONENT [2/2]

#define FT_COMPONENT   trace_list

Definition at line 237 of file ftutil.c.

Function Documentation

◆ ft_highpow2()

ft_highpow2 ( FT_UInt32  value)

Definition at line 415 of file ftutil.c.

References error, FT_ALLOC, FT_BASE_DEF, FT_MEM_FREE, FT_QALLOC, FT_QREALLOC, FT_REALLOC, and void().

Referenced by pfr_face_get_kerning().

◆ FT_List_Add()

FT_List_Add ( FT_List  list,
FT_ListNode  node 
)

Definition at line 264 of file ftutil.c.

References FT_EXPORT_DEF, FT_ListNodeRec_::next, and FT_ListNodeRec_::prev.

Referenced by FT_New_Size().

◆ FT_List_Finalize()

FT_List_Finalize ( FT_List  list,
FT_List_Destructor  destroy,
FT_Memory  memory,
void user 
)

Definition at line 387 of file ftutil.c.

References FT_ListNodeRec_::data, FT_BASE_DEF, FT_FREE, and FT_ListNodeRec_::next.

◆ FT_List_Find()

FT_List_Find ( FT_List  list,
void data 
)

◆ FT_List_Insert()

FT_List_Insert ( FT_List  list,
FT_ListNode  node 
)

Definition at line 285 of file ftutil.c.

References FT_EXPORT_DEF, FT_ListNodeRec_::next, and FT_ListNodeRec_::prev.

◆ FT_List_Iterate()

FT_List_Iterate ( FT_List  list,
FT_List_Iterator  iterator,
void user 
)

Definition at line 360 of file ftutil.c.

References error, FT_Err_Ok, FT_EXPORT_DEF, and FT_ListNodeRec_::next.

◆ FT_List_Remove()

FT_List_Remove ( FT_List  list,
FT_ListNode  node 
)

Definition at line 306 of file ftutil.c.

References FT_EXPORT_DEF, FT_ListNodeRec_::next, and FT_ListNodeRec_::prev.

Referenced by FT_Done_Face(), and FT_Done_Size().

◆ FT_List_Up()

FT_List_Up ( FT_List  list,
FT_ListNode  node 
)

Definition at line 330 of file ftutil.c.

References FT_EXPORT_DEF, FT_ListNodeRec_::next, and FT_ListNodeRec_::prev.

Referenced by FT_Set_Renderer().

◆ ft_mem_alloc()

ft_mem_alloc ( FT_Memory  memory,
FT_Long  size,
FT_Error p_error 
)

Definition at line 50 of file ftutil.c.

References error, FT_BASE_DEF, ft_mem_qalloc(), and FT_MEM_ZERO.

Referenced by ft_mem_qrealloc().

◆ ft_mem_dup()

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

Definition at line 177 of file ftutil.c.

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

Referenced by ft_mem_strdup().

◆ ft_mem_free()

ft_mem_free ( FT_Memory  memory,
const void P 
)

Definition at line 168 of file ftutil.c.

References FT_BASE_DEF.

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

◆ ft_mem_qalloc()

ft_mem_qalloc ( FT_Memory  memory,
FT_Long  size,
FT_Error p_error 
)

Definition at line 66 of file ftutil.c.

References error, FT_BASE_DEF, FT_Err_Ok, FT_THROW(), and NULL.

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

◆ ft_mem_qrealloc()

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 114 of file ftutil.c.

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

Referenced by ft_mem_realloc().

◆ 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_BASE_DEF, FT_Err_Ok, ft_mem_qrealloc(), and FT_MEM_ZERO.

◆ ft_mem_strcpyn()

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

Definition at line 208 of file ftutil.c.

◆ ft_mem_strdup()

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

Definition at line 195 of file ftutil.c.

References FT_BASE_DEF, ft_mem_dup(), and ft_strlen.