This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++] intptr_t usage
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