PATCH: Define wildcardp as a macro with strpbrk

Alan Modra amodra@bigpond.net.au
Wed Aug 25 01:14:00 GMT 2004


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



More information about the Binutils mailing list