And use to simplify stdlib/canonicalize.c implementation.
---
include/idx.h | 113 ++
stdlib/canonicalize.c | 5 +-
2 files changed, 114 insertions(+), 4 deletions(-)
create mode 100644 include/idx.h
diff --git a/include/idx.h b/include/idx.h
new
Thanks, this looks good. Also, the following "[PATCH 3/5] Import
filename.h from gnulib" looks good. I merged both changes into Gnulib here:
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=1013adf6bf48627f84a9043cf2631ff13d2a452f
* Adhemerval Zanella via Libc-alpha:
> diff --git a/include/idx.h b/include/idx.h
> new file mode 100644
> index 00..ad7d31a2bc
> --- /dev/null
> +++ b/include/idx.h
> @@ -0,0 +1,113 @@
> +/* A type for indices and sizes.
> +
> + Copyright (C) 2020 Free Software Foundation, Inc.
> +
> +
Florian Weimer wrote:
> > diff --git a/include/idx.h b/include/idx.h
> > new file mode 100644
> > index 00..ad7d31a2bc
> > --- /dev/null
> > +++ b/include/idx.h
> > @@ -0,0 +1,113 @@
> > +/* A type for indices and sizes.
> > +
> > + Copyright (C) 2020 Free Software Foundation, Inc.
> > +
On 12/25/20 12:34 PM, Florian Weimer wrote:
This file is linked into the library itself, so we can only accept
something that is under a compatible license (probably LGPLv2 or later).
I installed the attached patch to the Gnulib copy of idx.h to do that.
This uses the same wording as what's in
On Thu, 24 Dec 2020, Adhemerval Zanella via Libc-alpha wrote:
> + Copyright (C) 2020 Free Software Foundation, Inc.
> +
> + This program is free software; you can redistribute it and/or modify
> + it under the terms of the GNU General Public License as published by
> + the Free Software Fo
On 12/31/20 3:12 PM, Joseph Myers wrote:
Anything used in glibc libraries should be LGPLv2.1+, not GPL.
That was fixed in the most recently-published version of the patch:
https://sourceware.org/pipermail/libc-alpha/2020-December/121178.html