change log for rtems (2011-08-02)
Gedare Bloom
gedare at gwmail.gwu.edu
Thu Aug 4 18:34:17 UTC 2011
On Wed, Aug 3, 2011 at 1:49 AM, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
> 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)?
>
Good point, we will add something. We will want the typedef both in
the score and the sapi, since users may well register their own custom
functions.
> --
> 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.
> _______________________________________________
> rtems-vc mailing list
> rtems-vc at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-vc
>
More information about the vc
mailing list