This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]