• 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: Help porting from codewarrior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help porting from codewarrior?


  • Subject: Re: Help porting from codewarrior?
  • From: Marshall Clow <email@hidden>
  • Date: Wed, 21 Sep 2005 13:41:28 -0700

At 10:34 PM +0200 9/21/05, Markus Hitter wrote:
Am 21.09.2005 um 20:20 schrieb Bob Sabiston:

error: 'Boolean' does not name a type

In earlier days, a

    #define Boolean char

would be a way conformant to the C standard.

C++ since it's birth and C since ANSI C99 has the "bool" type. In case of C, you need to

    #include <stdbool.h>

which is one of the conflicts between ANSI C and ANSI C++.

There are yet more forms: Carbon, X11 and a few others use "Boolean", possibly because their inventors didn't have a look at the then upcoming C++ standard. Objective-C has the "BOOL" type as part of it's language definition - Obj-C is at least as old as C++. (Merging language features seems to be a big no-no)

It's true. When the C interfaces to the Mac Toolbox were being developed (in 1984 and 1985) the people doing the work were clearly not tracking the C99 Working Group. Shame on them. Shame!


--
-- Marshall

Marshall Clow     Idio Software   <mailto:email@hidden>

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
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


References: 
 >Help porting from codewarrior? (From: Bob Sabiston <email@hidden>)
 >Re: Help porting from codewarrior? (From: Cameron Hayne <email@hidden>)
 >Re: Help porting from codewarrior? (From: Bob Sabiston <email@hidden>)
 >Re: Help porting from codewarrior? (From: Markus Hitter <email@hidden>)

  • Prev by Date: Specifying Where The Build Product Should Be Placed
  • Next by Date: Re: why can't you initialize variable in case statements
  • Previous by thread: Re: Help porting from codewarrior?
  • Next by thread: Re: Help porting from codewarrior?
  • Index(es):
    • Date
    • Thread