This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Replace strdup with xstrdup in tic30-dis.c


Andrew writes:
 > In C, there is zero and non-zero.  There is no true or false.
 > 
 > What ever the function's type, its the avoidance of:
 > 
 >      if (bfd_foo_p() == TRUE)
 > 
 > that is important.

s/There is no true or false./There is only false and !false./

I like bfd_boolean,
though recognizing the pitfalls of foo_p() == TRUE is important.

What if one didn't define TRUE and instead defined CANONICAL_TRUE?


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