Re: [RFC] B+Tree library

From: Geert Uytterhoeven
Date: Fri Oct 31 2008 - 05:16:49 EST


On Fri, 31 Oct 2008, JÃrn Engel wrote:
> 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,
> };

Where's the MIN/MAX? ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds