Casper.Dik at Sun.COM wrote:
>> 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?
>>>
>>>
>> I think the reason for wanting to be able to use enums rather than
>> defines is that that's what the code uses already... to change them to
>> #defines would entail modification of files that otherwise would remain
>> as they were.
>>
>
>
> That I understand; I was questionin gwhy the code was written like this
> originally.
>
To which I have to respond, I have NFI.
-- Garrett
> Casper
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris.org
>
--
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