Casper.Dik at Sun.COM wrote:
>> I would like to convince the Sun Studio compiler to us an unsigned
>> integer to represent enumeration types. Specifically, the new HAL has
>> some bit fields defined using enums containing definitions like this:
>>
>> enum { BITVALUE = 0x80000000 }
>>
>
>
> So there's a believe that using enums is better than #defines?
> And then you *or* them together?
>
> Casper
>
Hey, I didn't write this code, Sam Leffler did. I don't know why he
used enums, I nearly always use #define for things like this.
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191