What GCC version had <stdint.h> defined?

Tim Peters tim.peters at gmail.com
Thu Aug 26 23:48:07 EDT 2004


[Jeff Epler]
...
> I'm not sure why uintptr_t or intptr_t are all that useful, since the
> spellings "unsigned *" and "int *" are going to work everywhere
> anyway.

intptr_t isn't a pointer type, it's a signed integer type wide enough
so that, for every valid void* P,

    (void*)(intptr_t)P == P

C99 refuses to guarantee that such a type exists, but Python requires
one (and int, long or "long long" is big enough on all Python
platforms to date).

Similarly for uintptr_t.



More information about the Python-list mailing list