This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Do not use __ptr_t


On Tue, 8 Aug 2017, Paul Eggert wrote:

> Zack Weinberg wrote:
> > Macros can be deprecated using _Pragma("GCC message \"...\"").
> 
> Thanks, good to know. So, something like this instead:
> 
> /* This is not a typedef so 'const __ptr_t' does the right thing.  */
> #define __ptr_t void * __glibc_macro_warning ("__ptr_t is deprecated")

Would you like to propose a patch (that deprecates __ptr_t like that, and 
documents the deprecation in the NEWS section for features deprecated in 
2.27)?

-- 
Joseph S. Myers
joseph@codesourcery.com


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