Re: [RFC] B+Tree library

From: Pavel Machek
Date: Thu Oct 30 2008 - 15:13:32 EST


On Thu 2008-10-30 18:58:44, Jörn Engel wrote:
> On Thu, 30 October 2008 18:43:00 +0100, Pavel Machek wrote:
> >
> > + * Disks have fulfilled the prerequite for a long time. More recently DRAM
> >
> > prerequisite?
>
> In the paragraph above:

I don't thing "prerequite" is valid english word... is it?

> > +#define MAX(a, b) ((a) > (b) ? (a) : (b))
> >
> > We already have that in the headers somewhere.
>
> Except that min/max in include/linux/kernel.h have some type-safety
> added. In this particular case that is actually a disadvantage:
> CC lib/btree.o
> lib/btree.c:56: error: braced-group within expression allowed only inside a function
> lib/btree.c:62: error: braced-group within expression allowed only inside a function
> lib/btree.c:67: error: braced-group within expression allowed only inside a function
>
> So I need something more stupid. :)

Aha, ok.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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/