This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] allow macros with variable number of arguments
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jan Beulich <JBeulich at novell dot com>
- Cc: nickc at redhat dot com, binutils at sources dot redhat dot com
- Date: Fri, 6 May 2005 16:22:58 +0930
- Subject: Re: [PATCH] allow macros with variable number of arguments
- References: <s27b2067.034@emea1-mh.id2.novell.com>
On Fri, May 06, 2005 at 08:44:39AM +0200, Jan Beulich wrote:
> >> + formal = (formal_entry *) xmalloc (sizeof (formal_entry));
> >
> > The cast is not necessary.
>
> I always wondered why these casts are present in so many places, and
> since I just moved code around here I originally kept it. So you're
> saying there's no policy or anything else requiring these? In that
> case I'd strip these where appropriate in future patches...
They used to be necessary for K&R compilers. We now require an ISO C
compiler.
--
Alan Modra
IBM OzLabs - Linux Technology Centre