Re: Soft return in XCode
Re: Soft return in XCode
- Subject: Re: Soft return in XCode
- From: Alastair Houghton <email@hidden>
- Date: Fri, 28 May 2010 09:24:05 +0100
On 27 May 2010, at 19:45, Marco S Hyman wrote:
> On May 27, 2010, at 6:54 AM, Scott Ribe wrote:
>
>> On May 27, 2010, at 3:22 AM, Alastair Houghton wrote:
>>
>>> Isn't that a GCC extension? I don't think that one made it into C99...
>>
>> Yes, I think.
>
> The GCC extension is to allow whitespace between the backslash and
> the newline. Using backslash newline as a line continuation goes
> back to at least PCC (1978).
I can well believe it.
> However, I don't see it mentioned in K&R.
Or in the ANSI standard, unless I missed it (though I'm happy to be proven wrong if someone knows otherwise).
>> I think what people are confusing is that \ line termination is standard for multi-line macros.
>
> It's not line termination, it's line continuation. It is pretty
> much standard for just about everything from awk to shell.
That's quite an important point, actually, because occasionally (especially when using the preprocessor with assembly language) you need to add separators since the \<newline> combination is *not* equivalent to a newline---it is, as you rightly say, a continuation.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden