Re: [patch 1/9]#2 Rename `enum target_signal' to target_signal_t

Joseph S. Myers
2010-09-01T20:51:17Z

On Wed, 1 Sep 2010, Jan Kratochvil wrote:

> enum a is not compatible with enum b in C++; while it is compatible in C.

No, enum a is not compatible with enum b in C. They may both be
compatible with int, or both be compatible with unsigned int, depending on
which is chosen as the underlying type, but type compatibility is not
transitive. (enum constants, however, always have type int in C, and you
can assign between integer and enum types without needing compatibility,
so incompatibility doesn't help detect problem assignments.)

--
Joseph S. Myers
joseph@codesourcery.com