list: check against double node insertion
Tighten debug consistency checks in ADDHEAD(), ADDTAIL() and ENQUEUE()
through the macro LIST_ASSERT_NOT_CONTAINS(). Suggestions for a
better name very welcome.
This check is expensive (O(n)) and too permissive, as what we should
really check for is the node not being already part of *any* list.
This could be simplified by changing the list API to demand
pre-initialization of the node pointers to NULL.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1772
38d2e660-2303-0410-9eaa-
f027e97ec537