change log for rtems (2011-08-02)
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Aug 3 05:49:23 UTC 2011
On 08/02/2011 10:10 PM, rtems-vc at rtems.org wrote:
> diff -u rtems/cpukit/score/include/rtems/score/rbtree.h:1.4 rtems/cpukit/score/include/rtems/score/rbtree.h:1.5
> --- rtems/cpukit/score/include/rtems/score/rbtree.h:1.4 Fri Jun 17 10:40:09 2011
> +++ rtems/cpukit/score/include/rtems/score/rbtree.h Tue Aug 2 14:25:59 2011
> @@ -75,8 +75,6 @@
> RBTree_Node *parent;
> /** child[0] points to the left child, child[1] points to the right child */
> RBTree_Node *child[2];
> - /** This is the integer value stored by this node, used for sorting */
> - unsigned int value;
> /** The color of the node. Either red or black */
> RBTree_Color color;
> };
> @@ -127,6 +125,12 @@
> RBTree_Node *root;
> /** This points to the min and max nodes of this RBT. */
> RBTree_Node *first[2];
> + /**
> + * Comparison function pointer. Keys to compare has to be found
> + * inside to maintain generality. It has to return 1 if first node
> + * has higher key than second, -1 if lower, 0 if equal.
> + */
> + int (*compare_function) (RBTree_Node*, RBTree_Node*);
> } RBTree_Control;
>
Why do we not have a typedef for this function and why do we not use this type
in the initialization routines (here void * is used, this prevents a type
mismatch warning)?
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the vc
mailing list