Re: 2.4.9 does not compile [PATCH]

Alan Cox
2001-08-16T23:12:56Z

> > The args and semantics of min/max changed to take
> > a type first argument,
>
> They did? This three argument min is butt-ugly, not to mention a completely
> original way of expressing the idea that is very much in conflict with every
> other expression of min I have ever seen.
>
> What is wrong with using typeof? If you must have a three argument min,
> could it please be called "type_min" of similar.

It also doesnt solve all the cases. Basically its just ensuring everyone
doing portable code has to go and change all their macros to MIN and MAX
instead. Or use if statements, which with all the subtle suprises of
type casting is actually often a far far better idea and probably should
be encouraged a lot more in the kernel

Alan