This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] allow macros with variable number of arguments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]