• 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: 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

  • Follow-Ups:
    • Re: Soft return in XCode
      • From: Chris Ridd <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>)

  • Prev by Date: Re: Defining custom build configurations for multiple projects
  • 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