"Incompatible" typedefs
Dave Korn
dave.korn.cygwin@googlemail.com
Wed Feb 4 14:37:00 GMT 2009
Charles Wilson wrote:
> I would have thought that these two:
>
> typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
> typedef unsigned short int uint16_t;
>
> are very different.
I wouldn't have. They're both unsigned, they're both integers, and they're
both 16 bits. HImode is the internal GCC type that gets mapped to C short
ints. Why do you think they would differ?
> I'm not sure what useful conclusions we can draw from looking at how
> linux does it, Or maybe I just need some sleep.
I think we just add 'int' where it's missing from longs and long longs and
we're done. And there should be a handy test-case to reduce from the octave
sources.
cheers,
DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list