declaring C enum types

Michael Weber michaelw at foldr.org
Thu Oct 17 06:31:44 EDT 2002


On Thu, Oct 17, 2002 at 02:25:44AM -0700, John Meacham wrote:
> I am pretty sure that ISO C says that enums are equivalant to ints
> always. of course, not all implementations may be ISO C compliant.
> 	John

Right.

C99#6.4.4.3:
[...]
[#2] An identifier declared as an enumeration  constant  has
     type int.
     
     
Cheers,
M/
     



More information about the FFI mailing list