• 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: gcc and extended character source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc and extended character source code


  • Subject: Re: gcc and extended character source code
  • From: David Dunham <email@hidden>
  • Date: Sun, 10 Feb 2008 22:48:25 -0800


On 10 Feb 2008, at 21:01, Peter Mulholland wrote:

I'm porting some code that a German guy has written under VC2005. He
frequently makes use of German characters in symbol names, enums etc.
While this works absolutely fine on VC, gcc just wont swallow it out
of the box.


C For Dummies: "Buried somewhere in one of the massive tomes that came with your compiler are the official rules for naming variables. These rules are unique to each compiler."

"Variable names have one to eight characters, chosen from A-Z, a-z, 0-9, and _, and start with a non-digit." Programming in C: A Tutorial, Brian W. Kernighan, <http://www.lysator.liu.se/c/bwk-tutor.html >

Variable names that don't use ASCII are illegal -- doesn't matter what encoding the source code file has, the compiler won't parse the A- umlaut.

If you don't want to change it, have the original author do so, because it's not standard.

David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus Wirth



_______________________________________________ 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[2]: gcc and extended character source code
      • From: Peter Mulholland <email@hidden>
References: 
 >gcc and extended character source code (From: Peter Mulholland <email@hidden>)

  • Prev by Date: Re: Xcode 3.0, is it missing the Close Project menu item?
  • Next by Date: XCode Static Libraries
  • Previous by thread: gcc and extended character source code
  • Next by thread: Re[2]: gcc and extended character source code
  • Index(es):
    • Date
    • Thread