[haiku-commits] Re: haiku: hrev44687 - src/bin/desklink

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 9 Oct 2012 15:05:31 -0400

On Tue, Oct 9, 2012 at 2:57 PM, John Scipione <jscipione@xxxxxxxxx> wrote:
> It didn't break the build, it is legal to split a string across lines like
> that, but you don't want to split the string into 2 lines like that because
> you'll get a newline and a bunch of extra space in your comment.

Yes it did: 
http://mmadia.dyndns.org:8010/builders/x86-debug-any-host/builds/805/steps/%5Bx86gcc4%5D-debug/logs/stdio

gcc2 might have accepted it but that's flat out broken parsing, you're
not allowed to split them with a newline like that according to the
standard. In order to break a string across multiple lines for
formatting purposes you have to do, e.g.

BString label = B_TRANSLATE_COMMENT("Open %name", "Don't translate "
                       "variable %name");

Regards,

Rene

Other related posts: