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
On Tue, Aug 24, 2004 at 04:34:40PM -0700, H. J. Lu wrote:
> On Tue, Aug 24, 2004 at 07:24:30PM -0400, DJ Delorie wrote:
> >
> > > +#define wildcardp(pattern) strpbrk ((pattern), "?*[")
> >
> > This doesn't return a bfd_boolean.
>
> I can do
>
> #define wildcardp(pattern) (strpbrk ((pattern), "?*[") != NULL)
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre