ext2_types.h in package e2fslibs-dev is whacked
Sylvain Defresne
sdefresne at gmail.com
Sat Jan 7 15:08:00 GMT 2006
Le samedi 07 janvier 2006 à 01:29 -0500, Phillip Susi a écrit :
> I just found this header because I'm trying to get the defrag package to
> compile from source on amd64, and this thing is insane. First off, it
> seems to duplicate definitions of basic data types that are already
> defined in asm/types.h, but it does so wrongly. Take a look at this:
>
> #if (4 == 2)
> typedef int __s16;
> typedef unsigned int __u16;
> #else
>
> WTF? How many drugs over what period of time would you have to consume
> for 4 to equal 2?
>
> Where did this craziness come from and can we please nuke it?
If you look at the build process of this package, you'll see that it is
indeed an auto-generated file, and the 4 is coming from the detected
size of the int type at configuration time. And indeed, sizeof(int) == 2
on some platform (this is valid by the C99 standard). I will guess it is
used to define platform independent type with known size.
BTW, the ext2_types.h.in files read as:
#if (@SIZEOF_INT@ == 4)
typedef int __s16;
typedef unsigned int __u16;
#else
However, I don't think this is the right list to discuss this.
Bye,
--
Sylvain Defresne <sdefresne at gmail.com>
1024D/A036DDB1 -- 6AB9 B65F 7C44 819F DD42 62D2 A093 2840 A036 DDB1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060107/114224d6/attachment.pgp
More information about the ubuntu-devel
mailing list