Changeset 64939bc in rtems for cpukit/posix/src/key.c


Ignore:
Timestamp:
Jul 12, 2014, 7:22:22 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ed7a028
Parents:
7e119990
git-author:
Sebastian Huber <sebastian.huber@…> (07/12/14 19:22:22)
git-committer:
Joel Sherrill <joel.sherrill@…> (07/15/14 15:03:48)
Message:

rbtree: Reduce RBTree_Control size

Remove compare function and is unique indicator from the control
structure. Rename RBTree_Compare_function to RBTree_Compare. Rename
rtems_rbtree_compare_function to rtems_rbtree_compare. Provide C++
compatible initializers. Add compare function and is unique indicator
to _RBTree_Find(), _RBTree_Insert(), rtems_rbtree_find() and
rtems_rbtree_insert(). Remove _RBTree_Is_unique() and
rtems_rbtree_is_unique(). Remove compare function and is unique
indicator from _RBTree_Initialize_empty() and
rtems_rbtree_initialize_empty().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/key.c

    r7e119990 r64939bc  
    2727#include <rtems/score/wkspace.h>
    2828
     29RBTREE_DEFINE_EMPTY( _POSIX_Keys_Key_value_lookup_tree );
     30
    2931/**
    3032 * @brief This routine compares the rbtree node by comparing POSIX key first
     
    4345 */
    4446
    45 int _POSIX_Keys_Key_value_lookup_tree_compare_function(
     47int _POSIX_Keys_Key_value_compare(
    4648  const RBTree_Node *node1,
    4749  const RBTree_Node *node2
     
    154156  );
    155157
    156   _RBTree_Initialize_empty(
    157       &_POSIX_Keys_Key_value_lookup_tree,
    158       _POSIX_Keys_Key_value_lookup_tree_compare_function,
    159       true
    160   );
    161 
    162158  _POSIX_Keys_Initialize_keypool();
    163159}
Note: See TracChangeset for help on using the changeset viewer.