#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; \
\
\
if ( _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 ); \
} \
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()
Definition at line 169 of file ftcmru.c.
174 {
176 list->max_nodes = max_nodes;
178 list->clazz = *clazz;
181 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static char memory[1024 *256]
Referenced by ftc_gcache_init(), and FTC_Manager_New().
◆ FTC_MruList_New()
Definition at line 236 of file ftcmru.c.
239 {
243
244
245 if (
list->num_nodes >=
list->max_nodes &&
list->max_nodes > 0 )
246 {
248
250
251 if (
list->clazz.node_reset )
252 {
254
258 }
259
262
263 if (
list->clazz.node_done )
265 }
268
272
275
279
281 if (
list->clazz.node_done )
283
286 }
FTC_MruNode_Up(FTC_MruNode *plist, FTC_MruNode node)
FTC_MruNode_Prepend(FTC_MruNode *plist, FTC_MruNode node)
FTC_MruNode_Remove(FTC_MruNode *plist, FTC_MruNode node)
#define FT_ASSERT(condition)
#define FT_ALLOC(ptr, size)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
◆ FTC_MruList_Remove()
◆ FTC_MruList_RemoveSelection()
◆ FTC_MruList_Reset()
◆ FTC_MruNode_Prepend()
Definition at line 29 of file ftcmru.c.
31 {
33
34
36 {
38
39
40#ifdef FT_DEBUG_ERROR
41 {
43
44
45 do
46 {
48 {
51 }
52 cnode = cnode->next;
53
54 }
while ( cnode !=
first );
55 }
56#endif
57
62 }
63 else
64 {
67 }
69 }
_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()
◆ FTC_MruNode_Up()
Definition at line 73 of file ftcmru.c.
75 {
77
78
80
82 {
84
85
86#ifdef FT_DEBUG_ERROR
87 {
89 do
90 {
93 cnode = cnode->next;
94
95 }
while ( cnode !=
first );
96
100 }
101#endif
104
107
109
112
115
117 }
118 }
Referenced by FTC_MruList_New().