Re: GLogLevelFlags enum and g_log

2014-05-28 Thread Paul Davis
On Wed, May 28, 2014 at 6:55 PM, Morten Welinder wrote: > > enum GLogLevel { > >... existing, expected values ... > >_require_int = INT_MAX > > } > > > That actually makes the whole thing undefined rather than implementation > defined by section 7.1.3 in C99. > maybe it would be helpful

Re: GLogLevelFlags enum and g_log

2014-05-28 Thread Morten Welinder
> enum GLogLevel { >... existing, expected values ... >_require_int = INT_MAX > } That actually makes the whole thing undefined rather than implementation defined by section 7.1.3 in C99. M. ___ gtk-devel-list mailing list gtk-devel-list@gnome.

Re: GLogLevelFlags enum and g_log

2014-05-28 Thread Jonathan S. Shapiro
Sorry to respond late on this. Let's look at what the standard actually says and then figure out where the difference matters. Bold in the standard quotes is mine. First, C enums are different from C++ enums. From C99 secdion 6.7.2.2/4: Each enumerated type shall be compatible with char, a signed