This is the mail archive of the binutils@sourceware.org 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: ld error message %C format


On Wed, May 18, 2011 at 12:03:42PM -0400, Jason Duerstock wrote:
> >+                     fprintf (fp, "%u%s", linenumber, ":" + done);
> 
> Isn't this a C++ism?  Shouldn't it be:

No, just an old C trick.  ":"+done is either ":" or "".

-- 
Alan Modra
Australia Development Lab, IBM


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