#include <ft2build.h>
Go to the source code of this file.
|
#define | xxFT_DEBUG_ERROR |
|
#define | FTC_INLINE |
|
#define | FTC_MRULIST_LOOKUP_CMP(list, key, compare, node, error) |
|
#define | FTC_MRULIST_LOOKUP(list, key, node, error) FTC_MRULIST_LOOKUP_CMP( list, key, (list)->clazz.node_compare, node, error ) |
|
#define | FTC_MRULIST_LOOP(list, node) |
|
#define | FTC_MRULIST_LOOP_END() |
|
|
| FTC_MruNode_Prepend (FTC_MruNode *plist, FTC_MruNode node) |
|
| FTC_MruNode_Up (FTC_MruNode *plist, FTC_MruNode node) |
|
| FTC_MruNode_Remove (FTC_MruNode *plist, FTC_MruNode node) |
|
| FTC_MruList_Init (FTC_MruList list, FTC_MruListClass clazz, FT_UInt max_nodes, FT_Pointer data, FT_Memory memory) |
|
| FTC_MruList_Reset (FTC_MruList list) |
|
| FTC_MruList_Done (FTC_MruList list) |
|
| FTC_MruList_New (FTC_MruList list, FT_Pointer key, FTC_MruNode *anode) |
|
| FTC_MruList_Remove (FTC_MruList list, FTC_MruNode node) |
|
| FTC_MruList_RemoveSelection (FTC_MruList list, FTC_MruNode_CompareFunc selection, FT_Pointer key) |
|
◆ FTC_INLINE
◆ FTC_MRULIST_LOOKUP
◆ FTC_MRULIST_LOOKUP_CMP
◆ FTC_MRULIST_LOOP
Value:FT_BEGIN_STMNT \
FTC_MruNode _first = (
list)->nodes;
\ { \
FTC_MruNode _node = _first; \
\
\
do \
{ \
typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
Definition at line 218 of file ftcmru.h.
◆ FTC_MRULIST_LOOP_END
#define FTC_MRULIST_LOOP_END |
( |
| ) |
|
Value:_node = _node->next; \
\
} while ( _node != _first ); \
} \
FT_END_STMNT
Definition at line 233 of file ftcmru.h.
◆ xxFT_DEBUG_ERROR
◆ FTC_MruList
◆ FTC_MruListClass
◆ FTC_MruListClassRec
◆ FTC_MruListRec
◆ FTC_MruNode
◆ FTC_MruNode_CompareFunc
◆ FTC_MruNode_DoneFunc
◆ FTC_MruNode_InitFunc
◆ FTC_MruNode_ResetFunc
◆ FTC_MruNodeRec
◆ FTC_MruList_Done()
◆ FTC_MruList_Init()
◆ FTC_MruList_New()
Definition at line 236 of file ftcmru.c.
245 if (
list->num_nodes >=
list->max_nodes &&
list->max_nodes > 0 )
251 if (
list->clazz.node_reset )
263 if (
list->clazz.node_done )
281 if (
list->clazz.node_done )
#define FT_ALLOC(ptr, size)
typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
static char memory[1024 *256]
FTC_MruNode_Remove(FTC_MruNode *plist, FTC_MruNode node)
#define FT_ASSERT(condition)
FTC_MruNode_Up(FTC_MruNode *plist, FTC_MruNode node)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FTC_MruNode_Prepend(FTC_MruNode *plist, FTC_MruNode node)
◆ FTC_MruList_Remove()
◆ FTC_MruList_RemoveSelection()
◆ FTC_MruList_Reset()
◆ FTC_MruNode_Prepend()
Definition at line 29 of file ftcmru.c.
54 }
while ( cnode !=
first );
typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
Referenced by FTC_MruList_New(), and ftc_node_mru_link().
◆ FTC_MruNode_Remove()
Definition at line 122 of file ftcmru.c.
131 #ifdef FT_DEBUG_ERROR 142 }
while ( cnode !=
first );
typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
#define FT_ASSERT(condition)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
static unsigned __int64 next
Referenced by FTC_MruList_New(), FTC_MruList_Remove(), and ftc_node_mru_unlink().
◆ FTC_MruNode_Up()
Definition at line 73 of file ftcmru.c.
95 }
while ( cnode !=
first );
typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
#define FT_ASSERT(condition)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
static unsigned __int64 next
Referenced by FTC_MruList_New().