Re: libiberty patch committed: Add strnlen

2012-09-18 Thread Ian Lance Taylor
On Tue, Sep 18, 2012 at 9:25 AM, Jakub Jelinek wrote: > On Tue, Sep 18, 2012 at 09:03:03AM -0700, Ian Lance Taylor wrote: >> +*/ >> + >> +#include "config.h" > > Shouldn't this #include for size_t, or is config.h providing > size_t? Or #include ? From what I can see, config.h doesn't > always

Re: libiberty patch committed: Add strnlen

2012-09-18 Thread Jakub Jelinek
On Tue, Sep 18, 2012 at 09:03:03AM -0700, Ian Lance Taylor wrote: > --- strnlen.c (revision 0) > +++ strnlen.c (revision 0) > @@ -0,0 +1,28 @@ > +/* Portable version of strnlen. > + This function is in the public domain. */ > + > +/* > + > +@deftypefn Supplemental size_t strnlen (const char *@va

libiberty patch committed: Add strnlen

2012-09-18 Thread Ian Lance Taylor
This patch to libiberty adds support for strnlen if it is not already present. I rebuilt the Makefile dependencies. This revealed that maint-tool wasn't recognizing that files that include dwarf2.h also depend on dwarf2.def, so I fixed maint-tool. I also rebuilt functions.texi, which had not bee