gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple string tokens


From: kai . extern
Subject: Re: multiple string tokens
Date: Mon, 29 Aug 2011 18:37:36 +0200

Hello Riccardo,

Am Wed, 17 Aug 2011 19:32:55 +0200
schrieb Riccardo Mottola <address@hidden>:

> Hi,
> 
> David is making many log statements more portable / 64 bit compliant by 
> using a macro like this:
> 
>        NSLog(@"_dispatch with unexpected status %" PRIdPTR, [self 
> streamStatus]);
> 
> 
> PRIdPTR will expand to the correct string.
> 
> gcc 2.95 on my sparc box barks
> 
> NSStream.m:198: syntax error before string constant
> 
> I think, but it is just a guess, that for some reason @"" and "" don't 
> get joined properly, while "" and "" do. Anyone has a better idea or 
> some memory about old compiler quirks or generally another 32/64 bit option?

True. IIRC, using @PRIdPTR will convince that gcc to concatenate the
strings. Have not tested this with the newest gcc versions, though.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]