gnu.gcc.help
[Top] [All Lists]

Re: What have I done wrong?

Subject: Re: What have I done wrong?
From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
Date: Sat, 26 Jul 2008 18:34:49 +0100
Newsgroups: gnu.gcc.help

Pilcrow <pilcrow@xxxxxxx> writes:

> On Sat, 26 Jul 2008 08:27:49 -0700, Pilcrow <pilcrow@xxxxxxx> wrote:
>
>>On Sat, 26 Jul 2008 12:11:24 +0100, Ben Bacarisse <ben.usenet@xxxxxxxxx>
>>wrote:
<snip>
>>>A tip:  If you have literal formats and want to this conditionally you
>>>can write:
>>>
>>>  printf("N = %"LL_MOD"d\n", ll_var);
>>>
>>>and
>>>
>>>#define LL_MOD "I64"
>>>
>>>when using mingw.
>>
>>Not sure I understand all of that.  What is 'literal formats'?
<snip>
>>Won't there be trouble with the nested quotes?
>
> Tried it, works exactly as you said, nested quotes and all.  weird.
> Oh, now I see. The compiler concatenates the quotes.

Sometimes being slow to reply is better!  Exactly.  May not help if
you have other portability issues, but it is a device worth knowing.

-- 
Ben.

<Prev in Thread] Current Thread [Next in Thread>