[libstdc++] intptr_t usage
Mark Mitchell
mark@codesourcery.com
Fri Mar 30 19:00:00 GMT 2007
Jakub Jelinek wrote:
> As stdint.h is provided by the various OSes, doing this is risky, you might
> very well define __INTPTR_TYPE__ or __UINTPTR_TYPE__ to a type that has the
> same precision as the real intptr_t or uintptr_t, but mangles differently.
Excellent point.
> IMHO it is far better to just use int __attribute__((__mode__ (__pointer__)))
> in libstdc++ headers and don't suggest that it is necessarily the same type
> as intptr_t or uintptr_t.
Yes, I agree. Paolo, sorry for the misleading suggestion.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Libstdc++
mailing list