summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/src/rbtreeinsert.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-17 07:50:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-22 14:37:11 +0200
commit69a6802bfa8878d3e9a8296c1516ff5feac77bbc (patch)
tree13b6fa37a0858315315665621e2714b4a5d1caf2 /cpukit/sapi/src/rbtreeinsert.c
parentscore: Move _RBTree_Insert() (diff)
downloadrtems-69a6802bfa8878d3e9a8296c1516ff5feac77bbc.tar.bz2
score: Move _RBTree_Find()
The _RBTree_Find() is no longer used in the score. Move it to sapi and make it rtems_rbtree_find(). Move corresponding types and support functions to sapi.
Diffstat (limited to 'cpukit/sapi/src/rbtreeinsert.c')
-rw-r--r--cpukit/sapi/src/rbtreeinsert.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/sapi/src/rbtreeinsert.c b/cpukit/sapi/src/rbtreeinsert.c
index a4850ff4cf..38b2f5b4ca 100644
--- a/cpukit/sapi/src/rbtreeinsert.c
+++ b/cpukit/sapi/src/rbtreeinsert.c
@@ -14,19 +14,19 @@
#include <rtems/score/rbtreeimpl.h>
RTEMS_STATIC_ASSERT(
- sizeof( RBTree_Compare_result ) >= sizeof( intptr_t ),
- RBTree_Compare_result_intptr_t
+ sizeof( rtems_rbtree_compare_result ) >= sizeof( intptr_t ),
+ rtems_rbtree_compare_result_intptr_t
);
RTEMS_STATIC_ASSERT(
- sizeof( RBTree_Compare_result ) >= sizeof( int32_t ),
- RBTree_Compare_result_int32_t
+ sizeof( rtems_rbtree_compare_result ) >= sizeof( int32_t ),
+ rtems_rbtree_compare_result_int32_t
);
rtems_rbtree_node *rtems_rbtree_insert(
rtems_rbtree_control *the_rbtree,
rtems_rbtree_node *the_node,
- RBTree_Compare compare,
+ rtems_rbtree_compare compare,
bool is_unique
)
{
@@ -34,16 +34,16 @@ rtems_rbtree_node *rtems_rbtree_insert(
rtems_rbtree_node *parent = NULL;
while ( *which != NULL ) {
- RBTree_Compare_result compare_result;
+ rtems_rbtree_compare_result compare_result;
parent = *which;
compare_result = ( *compare )( the_node, parent );
- if ( is_unique && _RBTree_Is_equal( compare_result ) ) {
+ if ( is_unique && rtems_rbtree_is_equal( compare_result ) ) {
return parent;
}
- if ( _RBTree_Is_lesser( compare_result ) ) {
+ if ( rtems_rbtree_is_lesser( compare_result ) ) {
which = _RBTree_Left_reference( parent );
} else {
which = _RBTree_Right_reference( parent );