Re: enable cmp macro for rb-trees in sys/tree.h

2013-06-10 Thread Philip Guenther
On Sun, Jun 9, 2013 at 3:22 PM, Franco Fichtner fra...@lastsummer.de wrote: I've had this patch in my tree for a while. It's just a consistency fix so that cmp can be a plain macro for rb-trees, too. ... - comp = cmp(elm, tmp); \ +

Re: enable cmp macro for rb-trees in sys/tree.h

2013-06-10 Thread Franco Fichtner
You are right, my mistake. The previous patch was the consistency patch, but this one actually does what the subject says. The motivation behind it was the fact that rb trees *almost* support this and I can't see any harm. The same could be done for splay trees, but I found this too intrusive

enable cmp macro for rb-trees in sys/tree.h

2013-06-09 Thread Franco Fichtner
Hi, I've had this patch in my tree for a while. It's just a consistency fix so that cmp can be a plain macro for rb-trees, too. Regards, Franco Index: tree.h === RCS file: /OpenBSD/src/sys/sys/tree.h,v retrieving revision 1.13