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 168 of file ftcmru.c.
173 {
175 list->max_nodes = max_nodes;
177 list->clazz = *clazz;
180 }
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 235 of file ftcmru.c.
238 {
242
243
244 if (
list->num_nodes >=
list->max_nodes &&
list->max_nodes > 0 )
245 {
247
249
250 if (
list->clazz.node_reset )
251 {
253
257 }
258
261
262 if (
list->clazz.node_done )
264 }
267
271
274
278
280 if (
list->clazz.node_done )
282
285 }
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 28 of file ftcmru.c.
30 {
32
33
35 {
37
38
39#ifdef FT_DEBUG_ERROR
40 {
42
43
44 do
45 {
47 {
50 }
51 cnode = cnode->next;
52
53 }
while ( cnode !=
first );
54 }
55#endif
56
61 }
62 else
63 {
66 }
68 }
int WINAPIV fprintf(FILE *file, const char *format,...)
Referenced by FTC_MruList_New(), and ftc_node_mru_link().
◆ FTC_MruNode_Remove()
◆ FTC_MruNode_Up()
Definition at line 72 of file ftcmru.c.
74 {
76
77
79
81 {
83
84
85#ifdef FT_DEBUG_ERROR
86 {
88 do
89 {
92 cnode = cnode->next;
93
94 }
while ( cnode !=
first );
95
99 }
100#endif
103
106
108
111
114
116 }
117 }
Referenced by FTC_MruList_New().