This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Don't duplicate declarations between string.h and strings.h
On Wed, 16 Nov 2016, Zack Weinberg wrote:
> On 11/16/2016 03:55 PM, Zack Weinberg wrote:
> > I was looking into something else and noticed that all of the
> > declarations in strings.h are duplicated in string.h, but not quite
> > consistently. This patch cleans that all up
>
> And as a follow-on, here is a patch that makes declaring const-covariant
> string functions much tidier. The macros involved are messy, but I
> think the reduced duplication in the public header file is worth it.
const-covariance applies equally to wchar.h. Have you designed the macros
to be usable there as well?
--
Joseph S. Myers
joseph@codesourcery.com