diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-27 14:37:07 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-27 14:56:47 +0200 |
commit | e2fe881a87331e7e20dab95126a8860e42cdddf0 (patch) | |
tree | e792e1a31bc4e55a51606ab3526d191badb37da3 /cpukit/score/include/rtems/score/rbtree.h | |
parent | posix: Remove superfluous includes (diff) | |
download | rtems-e2fe881a87331e7e20dab95126a8860e42cdddf0.tar.bz2 |
score: Simplify red-black tree debug support
Make the RBTree_Node layout independent of RTEMS_DEBUG (and all other
build configuration options). This allows the use of this structure in
Newlib.
Update #3112.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/rbtree.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cpukit/score/include/rtems/score/rbtree.h b/cpukit/score/include/rtems/score/rbtree.h index 371fe9f5f8..15a3bc8913 100644 --- a/cpukit/score/include/rtems/score/rbtree.h +++ b/cpukit/score/include/rtems/score/rbtree.h @@ -49,9 +49,6 @@ struct RBTree_Control; */ typedef struct RBTree_Node { RB_ENTRY(RBTree_Node) Node; -#if defined(RTEMS_DEBUG) - const struct RBTree_Control *tree; -#endif } RBTree_Node; /** @@ -129,7 +126,6 @@ RTEMS_INLINE_ROUTINE void _RBTree_Initialize_node( RBTree_Node *the_node ) { #if defined(RTEMS_DEBUG) _RBTree_Set_off_tree( the_node ); - the_node->tree = NULL; #else (void) the_node; #endif @@ -408,10 +404,6 @@ RTEMS_INLINE_ROUTINE void _RBTree_Initialize_one( ) { _Assert( _RBTree_Is_node_off_tree( the_node ) ); -#if defined(RTEMS_DEBUG) - _Assert( the_node->tree == NULL ); - the_node->tree = the_rbtree; -#endif RB_ROOT( the_rbtree ) = the_node; RB_PARENT( the_node, Node ) = NULL; RB_LEFT( the_node, Node ) = NULL; |