[PATCH] allow macros with variable number of arguments
Alan Modra
amodra@bigpond.net.au
Fri May 6 07:12:00 GMT 2005
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
More information about the Binutils
mailing list