This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Define wildcardp as a macro with strpbrk
DJ Delorie <dj@redhat.com> writes:
> There was no implied smiley; I really am that paranoid. I fear the
> day someone does "foo_p() != TRUE"
That has always been broken. C before C99 does not have a true boolean
type.
> and discovers that foo_p() returns FALSE and some random other non-zero
> value that's != TRUE.
Just look at the <ctype.h> isfoo functions. Many implementations return
arbitrary non-zero values for a true result.
Btw., AFAIK Pascal does not define <> and = for boolean operands.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."