Re: 2.4.9 does not compile [PATCH]

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 17 Aug 2001 10:11:17 +0100 (BST)


> From: Anton Altaparmakov <aia21@cam.ac.uk>
> Date: Fri, 17 Aug 2001 00:22:43 +0100
>
> IMHO, it would have been more elegant to use the typeof construct provided
> by gcc in the new macro instead of introducing a type parameter like this...
>
> The whole point was to make users explicitly state the type so they
> would have to think about it.

And doing it by forcing them all to change their macro names isnt the
right solution. Its actually basically impossible to do back compat macros
with this mess. Your original smin() umin() proposal was _much_ saner.

As I've said, -ac will use typed_min(a,b,c), and that way I can propogate
back compatibility glue.

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/