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, Aug 8, 2017 at 10:58 AM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> Thanks, that patch looks good as far as it goes. How about deprecating
> __ptr_t while we're at it? Although we can't deprecate a macro directly, we
> can do this:
>
> typedef void __ptr_t_void __attribute_deprecated__;
> /* This is not a typedef so 'const __ptr_t' does the right thing.  */
> #define __ptr_t __ptr_t_void *

Macros can be deprecated using _Pragma("GCC message \"...\"").  Have a
look at what I did in sysmacros.h.

zw


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