Re: Soft return in XCode
Re: Soft return in XCode
- Subject: Re: Soft return in XCode
- From: Chris Ridd <email@hidden>
- Date: Fri, 28 May 2010 12:47:51 +0100
On 28 May 2010, at 09:24, Alastair Houghton wrote:
> 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).
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf> (the May 6 2005 committee draft) has this text:
5.1.1.2 Translation phases
[...]
2. Each instance of a backslash character (\) immediately followed by a new-line character is deleted, splicing physical source lines to form logical source lines. Only the last backslash on any physical source line shall be eligible for being part [...]
Cheers,
Chris
_______________________________________________
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