• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Soft return in XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Soft return in XCode
      • From: Alastair Houghton <email@hidden>
References: 
 >Soft return in XCode (From: Lorenzo Thurman <email@hidden>)
 >Re: Soft return in XCode (From: Jens Alfke <email@hidden>)
 >Re: Soft return in XCode (From: Alastair Houghton <email@hidden>)
 >Re: Soft return in XCode (From: Scott Ribe <email@hidden>)
 >Re: Soft return in XCode (From: Marco S Hyman <email@hidden>)
 >Re: Soft return in XCode (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Soft return in XCode
  • Next by Date: Re: Soft return in XCode
  • Previous by thread: Re: Soft return in XCode
  • Next by thread: Re: Soft return in XCode
  • Index(es):
    • Date
    • Thread