This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH v3] Initial support for C11 Annex K Bounds checking functions
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: Ulrich Bayer <ubayer at sba-research dot org>, libc-alpha at sourceware dot org, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Fri, 14 Jun 2013 15:42:31 -0700 (PDT)
- Subject: Re: [RFC][PATCH v3] Initial support for C11 Annex K Bounds checking functions
- References: <51B1B444 dot 8080608 at sba-research dot org> <51B43794 dot 1020300 at cs dot ucla dot edu> <51BAF465 dot 4010203 at sba-research dot org> <51BB406C dot 10903 at cs dot ucla dot edu> <51BB4CC9 dot 8050402 at sba-research dot org> <51BB4F14 dot 9020603 at cs dot ucla dot edu>
> It could be, but it's so short that we can just
> put it in each of the affected headers.
We have features.h for exactly this sort of thing. It boils everything
down to simple __USE_* macros so that individual header files only ever use
"#ifdef __USE_FOO". There is no reason to depart from that now, and every
reason to continue to avoid #if complexity in individual header files.
Thanks,
Roland