[cfe-dev] Removing some built-in __*_TYPE__ macros

Chris Lattner clattner at apple.com
Thu Nov 19 21:06:45 PST 2009


My opinion is that these should be considered an internal interface  
and removed.  If anyone complains, we can always add them back.  You  
could also do a google code search for them.

-Chris

On Nov 19, 2009, at 10:04 PM, Ken Dyck <Ken.Dyck at onsemi.com> wrote:

> The following built-in macros were once used, but are no longer  
> required
> by stdint.h:
>
>  __INTMAX_TYPE__
>  __UINTMAX_TYPE__
>  __PTRDIFF_TYPE__
>  __INTPTR_TYPE__
>  __SIZE_TYPE__
>  __WCHAR_TYPE__
>  __WINT_TYPE__
>
> For the most part, the only references to these macros are in the
> preprocessor initialization test case, test/Preprocessor/init.c. A
> couple of them, namely __INTPTR_TYPE__ and __SIZE_TYPE__, are used  
> in a
> few other tests besides. Provided these references can be removed or
> replaced with their standard counterparts (eg. intmax_t), would  
> there be
> any objection to removing these definitions from the built-in
> definitions? That is, does anybody write code that uses them? And do  
> we
> want them to continue doing so?
>
> -Ken
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list