Re: [RFC] B+Tree library

From: JÃrn Engel
Date: Fri Oct 31 2008 - 03:35:35 EST


On Fri, 31 October 2008 07:38:46 +0100, Christian Borntraeger wrote:
> Am Donnerstag, 30. Oktober 2008 schrieb JÃrn Engel:
> > Except that min/max in include/linux/kernel.h have some type-safety
> > added. In this particular case that is actually a disadvantage:
>
> So what about min_t and max_t from include/linux/kernel.h? Can that be used?

Sorry, no. The problems comes from using MAX in structure initializers.

struct btree_geo btree_geo32 = {
.keylen = 1,
.no_pairs = NODESIZE / sizeof(long) / 2,
};

JÃrn

--
Correctness comes second.
Features come third.
Performance comes last.
Maintainability is easily forgotten.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/