Re: small patch for pty.c

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Mon Apr 17 2000 - 12:23:25 EST


On Mon, 17 Apr 2000, Horst von Brand wrote:

> "Richard B. Johnson" <root@chaos.analogic.com> said:
>
> [...]
>
> > Shouldn't the macro be fixed (if broken)? MIN is used a lot in the
> > source. Several years ago I made one in which the input parameters were
> > not evaluated twice and it was __static__ __inline__. This was not
> > accepted, perhaps it's time?
>
> An inline function call will cast it's arguments to the type given. This
> isn't right if somebody wants to get MIN(unsigned, unsigned) and others
> want MIN(int, int).
> --

They why did you just post a response that does just that by using
gcc's 'typeof' ?

Cheers,
Dick Johnson

Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:11 EST