
29 Sep
2012
29 Sep
'12
4:49 a.m.
Dear Joe Hershberger,
[...]
While ll_entry_count is great and all, it is more natural to compare your list pointer to The End (tm) or not. It would make client code capable of being cleaner if you also include ll_entry_end() as well.
Ain't that
#define ll_entry_end(_type, u) \ ll_entry_start(_type, u) + ll_entry_count(_type, u)
...
_type *end = ll_entry_end(_type, u);
?
Thanks, -Joe
Best regards, Marek Vasut