summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/rbtreeiterate.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rbtree: API changes. Remove rbtree control node from RBTree_Next.Gedare Bloom2012-05-081-1/+1
| | | | | | | | | | | | The implementation of RBTree_Next was using an awkward construction to detect and avoid accessing the false root of the red-black tree. To deal with the false root, RBTree_Next was comparing node parents with the control node. Instead the false root can be detected by checking if the grandparent of a node exists; the grandparent of the tree's true root is NULL by definition so the root of the tree is found while walking up the tree by checking for the non-existence of a grandparent. This change propagates into the predecessor/successor and iterate functions.
* rbtree: New function _RBTree_Iterate_unprotected()Sebastian Huber2012-04-111-0/+45