• 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: Marco S Hyman <email@hidden>
  • Date: Thu, 27 May 2010 11:45:16 -0700

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).

My 1984 version of Harbison & Steele (the C bible of its day) says:

"A string constant must be contained on one source program line
except if the last character of the line is a backslash \ character,
in which case the backslash and end-of-line character(s) are
ignored."

However, I don't see it mentioned in K&R.

> 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.

/\/\arc

 _______________________________________________
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>)

  • Prev by Date: Defining custom build configurations for multiple projects
  • Next by Date: Re: managing xcode projects vs going back to makefiles
  • Previous by thread: Re: Soft return in XCode
  • Next by thread: Re: Soft return in XCode
  • Index(es):
    • Date
    • Thread