version 1.33, 2021/03/04 09:45:31 |
version 1.34, 2023/09/05 14:05:41 |
|
|
#define Lst_Adv(ln) ((ln)->nextPtr) |
#define Lst_Adv(ln) ((ln)->nextPtr) |
#define Lst_Rev(ln) ((ln)->prevPtr) |
#define Lst_Rev(ln) ((ln)->prevPtr) |
|
|
|
static inline LstNode |
/* Inlines are preferable to macros here because of the type checking. */ |
|
#ifdef HAS_INLINES |
|
static INLINE LstNode |
|
Lst_FindConst(Lst l, FindProcConst cProc, const void *d) |
Lst_FindConst(Lst l, FindProcConst cProc, const void *d) |
{ |
{ |
return Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d); |
return Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d); |
} |
} |
|
|
static INLINE LstNode |
static inline LstNode |
Lst_FindFromConst(LstNode ln, FindProcConst cProc, const void *d) |
Lst_FindFromConst(LstNode ln, FindProcConst cProc, const void *d) |
{ |
{ |
return Lst_FindFrom(ln, (FindProc)cProc, (void *)d); |
return Lst_FindFrom(ln, (FindProc)cProc, (void *)d); |
} |
} |
#else |
|
#define Lst_FindConst(l, cProc, d) \ |
|
Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d) |
|
#define Lst_FindFromConst(ln, cProc, d) \ |
|
Lst_FindFrom(ln, (FindProc)cProc, (void *)d) |
|
#endif |
|
|
|
#endif /* _LST_H_ */ |
#endif /* _LST_H_ */ |