source: rtems/cpukit/score/src/rbtreeextract.c @ 1506658c

5
Last change on this file since 1506658c was e9fbaa3b, checked in by Sebastian Huber <sebastian.huber@…>, on 08/21/15 at 03:59:49

rbtree: Replace implementation

Use the BSD <sys/tree.h> implementation since it is faster, more
flexible and uses less storage. See https://github.com/sebhub/rb-bench.

  • Property mode set to 100644
File size: 564 bytes
Line 
1/*
2 *  Copyright (c) 2010 Gedare Bloom.
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.org/license/LICENSE.
7 */
8
9#if HAVE_CONFIG_H
10#include "config.h"
11#endif
12
13#include <rtems/score/rbtreeimpl.h>
14
15RB_GENERATE_REMOVE_COLOR( RBTree_Control, RBTree_Node, Node, static )
16
17RB_GENERATE_REMOVE( RBTree_Control, RBTree_Node, Node, static )
18
19void _RBTree_Extract(
20  RBTree_Control *the_rbtree,
21  RBTree_Node    *the_node
22)
23{
24  RB_REMOVE( RBTree_Control, the_rbtree, the_node );
25}
Note: See TracBrowser for help on using the repository browser.