sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ftcmru.h File Reference

Go to the source code of this file.

Classes

struct  FTC_MruNodeRec_
struct  FTC_MruListClassRec_
struct  FTC_MruListRec_

Macros

#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)
#define FTC_MRULIST_LOOP(list, node)
#define FTC_MRULIST_LOOP_END()

Typedefs

typedef typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
typedef struct FTC_MruNodeRec_ FTC_MruNodeRec
typedef struct FTC_MruListRec_ * FTC_MruList
typedef struct FTC_MruListClassRec_ const * FTC_MruListClass
typedef FT_Bool(*) FTC_MruNode_CompareFunc(FTC_MruNode node, FT_Pointer key)
typedef FT_Error(*) FTC_MruNode_InitFunc(FTC_MruNode node, FT_Pointer key, FT_Pointer data)
typedef void(*) FTC_MruNode_DoneFunc(FTC_MruNode node, FT_Pointer data)
typedef struct FTC_MruListClassRec_ FTC_MruListClassRec
typedef struct FTC_MruListRec_ FTC_MruListRec

Functions

 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)

Macro Definition Documentation

◆ FTC_INLINE

#define FTC_INLINE

Definition at line 61 of file ftcmru.h.

◆ FTC_MRULIST_LOOKUP

#define FTC_MRULIST_LOOKUP ( list,
key,
node,
error )
Value:
FTC_MRULIST_LOOKUP_CMP( list, key, (list)->clazz.node_compare, node, error )

Definition at line 196 of file ftcmru.h.

◆ FTC_MRULIST_LOOKUP_CMP

#define FTC_MRULIST_LOOKUP_CMP ( list,
key,
compare,
node,
error )

Definition at line 162 of file ftcmru.h.

◆ FTC_MRULIST_LOOP

#define FTC_MRULIST_LOOP ( list,
node )
Value:
FT_BEGIN_STMNT \
FTC_MruNode _first = (list)->nodes; \
\
\
if ( _first ) \
{ \
FTC_MruNode _node = _first; \
\
\
do \
{ \
*(FTC_MruNode*)&(node) = _node;

Definition at line 216 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 231 of file ftcmru.h.

◆ xxFT_DEBUG_ERROR

#define xxFT_DEBUG_ERROR

Definition at line 60 of file ftcmru.h.

Typedef Documentation

◆ FTC_MruList

typedef struct FTC_MruListRec_* FTC_MruList

Definition at line 88 of file ftcmru.h.

◆ FTC_MruListClass

typedef struct FTC_MruListClassRec_ const* FTC_MruListClass

Definition at line 90 of file ftcmru.h.

◆ FTC_MruNode

typedef typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_* FTC_MruNode

Definition at line 65 of file ftcmru.h.

◆ FTC_MruNode_CompareFunc

typedef FT_Bool(*) FTC_MruNode_CompareFunc(FTC_MruNode node, FT_Pointer key)

Definition at line 93 of file ftcmru.h.

◆ FTC_MruNode_DoneFunc

typedef void(*) FTC_MruNode_DoneFunc(FTC_MruNode node, FT_Pointer data)

Definition at line 102 of file ftcmru.h.

◆ FTC_MruNode_InitFunc

typedef FT_Error(*) FTC_MruNode_InitFunc(FTC_MruNode node, FT_Pointer key, FT_Pointer data)

Definition at line 97 of file ftcmru.h.

Function Documentation

◆ FTC_MruList_Done()

FTC_MruList_Done ( FTC_MruList list)

Definition at line 194 of file ftcmru.c.

◆ FTC_MruList_Init()

FTC_MruList_Init ( FTC_MruList list,
FTC_MruListClass clazz,
FT_UInt max_nodes,
FT_Pointer data,
FT_Memory memory )

Definition at line 168 of file ftcmru.c.

◆ FTC_MruList_New()

FTC_MruList_New ( FTC_MruList list,
FT_Pointer key,
FTC_MruNode * anode )

Definition at line 235 of file ftcmru.c.

◆ FTC_MruList_Remove()

FTC_MruList_Remove ( FTC_MruList list,
FTC_MruNode node )

Definition at line 300 of file ftcmru.c.

◆ FTC_MruList_RemoveSelection()

FTC_MruList_RemoveSelection ( FTC_MruList list,
FTC_MruNode_CompareFunc selection,
FT_Pointer key )

Definition at line 317 of file ftcmru.c.

◆ FTC_MruList_Reset()

FTC_MruList_Reset ( FTC_MruList list)

Definition at line 184 of file ftcmru.c.

◆ FTC_MruNode_Prepend()

FTC_MruNode_Prepend ( FTC_MruNode * plist,
FTC_MruNode node )

Definition at line 28 of file ftcmru.c.

◆ FTC_MruNode_Remove()

FTC_MruNode_Remove ( FTC_MruNode * plist,
FTC_MruNode node )

Definition at line 121 of file ftcmru.c.

◆ FTC_MruNode_Up()

FTC_MruNode_Up ( FTC_MruNode * plist,
FTC_MruNode node )

Definition at line 72 of file ftcmru.c.