[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#251572: typedef of size_t on amd64.



Kurt Roeckx <Q@ping.be> writes:

> Package: gcc-3.3
> Version: 3.3.3-9
>
> A preprocessed file says:
> # 213 "/usr/lib/gcc-lib/x86_64-linux/3.3.3/include/stddef.h"
> typedef long unsigned int size_t;
>
> This seems to work, and it's probably valid too, but I've never
> seen it written that way.
>
> Can this please be changed to:
> typedef unsigned long int size_t;
>
> If I change this, it fixes a build failure where python converts
> it to a ctypedef and then fails.

"unsigned", "long", and "int" are all type-specifiers; if the Python
parser doesn't get that, it implements the grammar wrong.

> Or should I take this up with python instead?

I'd suggest so.

> PS: changing the __SIZE_TYPE__ didn't seem to change the
> preprocessed result and I couldn't find any other places that
> defines it.

It's built into the compiler.

-- 
	Falk



Reply to: