This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Remove TRUE and FALSE


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]