• 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
Specifying "enum" data size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Specifying "enum" data size


  • Subject: Specifying "enum" data size
  • From: Mark Wagner <email@hidden>
  • Date: Fri, 23 Sep 2005 17:04:28 -0700

How do I specify the size of an "enum" value?  I've got a program that
links to a number of static libraries.  In one of them, an "enum" for
the typedef'd "BoolEnum" type is one bit, while in another, it's 32
bits.  Needless to say, this causes problems when passing structs
containing BoolEnums back and forth.

Does GCC recognize the "#pragma enumsalwaysint" pragma?  Might the
presence of this in some of the source files be causing problems?

I'm using XCode 1.5 and GCC 3.3, and I'm writing in C.

Thanks,
Mark Wagner
 _______________________________________________
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: Specifying "enum" data size
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: in-class initialization of fundamental types
  • Next by Date: Re: Specifying "enum" data size
  • Previous by thread: Re: in-class initialization of fundamental types
  • Next by thread: Re: Specifying "enum" data size
  • Index(es):
    • Date
    • Thread