[patch] Don't duplicate declarations between string.h and strings.h

Joseph Myers joseph@codesourcery.com
Thu Nov 17 01:03:00 GMT 2016


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



More information about the Libc-alpha mailing list