Loading...
Searching...
No Matches
68#define SlInitHead(_head) \
79#define SlAddNodeToHead(_head, _node) \
80 SlInsertNodeAfter(_head, _node)
120#define SlIsListEmpty(_head) \
121 ((_head)->Next == NULL)
131void SlInsertNodeAfter(
SlNode_t *Marker,
143void SlInsertNodeBefore(
SlNode_t *Head,
166#define OFFSET_OF(_type, _field) \
167 ((size_t)&((_type *)0)->_field)
179#ifndef CONTAINING_RECORD
180#define CONTAINING_RECORD(_address, _type, _field) \
181 ((_type *)((unsigned char *)(_address) - OFFSET_OF(_type, _field)))
195#define SlForEachNode(_head, _node) \
196 for ((_node) = (_head)->Next; (_node) != NULL; (_node) = (_node)->Next)
struct SlNode_t_ * Next
Definition: slist.h:58