This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Replace strdup with xstrdup in tic30-dis.c
- From: Doug Evans <dje at transmeta dot com>
- To: ac131313 at redhat dot com
- Cc: binutils at sources dot redhat dot com, gdb at sources dot redhat dot com
- Date: Tue, 26 Nov 2002 16:23:29 -0800
- Subject: 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?