>
>
>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.
Casper