Remove TRUE and FALSE

Jason Merrill jason@redhat.com
Tue Feb 27 05:23:00 GMT 2001


>>>>> "David" == David Korn <dkorn@pixelpower.com> writes:

>   Isn't #defining TRUE just asking for future trouble because sooner
> or later somebody is liable to write "if ((condition) == TRUE)" ?

Oh, probably, but if they don't they'll write some other broken code.
And that's pretty easy to grep for.

> And if so, doesn't that really mean that the only use of TRUE is for
> initializing variables?

And function parameters.  The main use of this is to make function calls
more readable.

Jason



More information about the Gcc-patches mailing list