]> Savannah Git Hosting - gnulib.git/log
gnulib.git
6 years agotests: Free allocated memory.
Bruno Haible [Sun, 10 Mar 2019 13:05:09 +0000 (14:05 +0100)]
tests: Free allocated memory.

Reported by <deltatau@protonmail.com> via Assaf Gordon.

* tests/test-astrxfrm.c (main): Free allocated memory.
* tests/test-bitset.c (compare, check_attributes): Free allocated
bitsets.
* tests/test-filenamecat.c (main): Free allocated memory.
* tests/test-freadahead.c (main): Free allocated memory and close stdin.
* tests/test-freadptr.c (main): Likewise.
* tests/test-freadptr2.c (main): Free allocated memory.
* tests/test-freadseek.c (main): Likewise.
* tests/test-gc-arcfour.c (main): Close allocated context.
* tests/test-gc-arctwo.c (main): Likewise.
* tests/test-gc-des.c (main): Close all allocated contexts.
* tests/test-pipe-filter-gi1.c (main): Free allocated memory.
* tests/test-pipe-filter-ii1.c (main): Likewise.
* tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
allocated file actions.
* tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
* tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
* tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
* tests/test-sameacls.c (main): Free allocated memory and ACLs.
* tests/test-strfmon_l.c (main): Free allocated locales.
* tests/test-striconveh.c (main): Free allocated iconv_t objects.
* tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
* tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
* tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
* tests/unistr/test-chr.h (main): Free input32.
* tests/unistr/test-strchr.h (test_strchr): Likewise.

6 years agoFix another test failure introduced by the same commit.
Bruno Haible [Sun, 10 Mar 2019 12:08:25 +0000 (13:08 +0100)]
Fix another test failure introduced by the same commit.

6 years agoFix test failure introduced by last commit.
Bruno Haible [Sun, 10 Mar 2019 12:01:33 +0000 (13:01 +0100)]
Fix test failure introduced by last commit.

6 years agotests: Prepare for using valgrind.
Bruno Haible [Sun, 10 Mar 2019 10:32:11 +0000 (11:32 +0100)]
tests: Prepare for using valgrind.

tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.

6 years agoget-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
Bruno Haible [Sun, 10 Mar 2019 00:28:42 +0000 (01:28 +0100)]
get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.

* lib/get-rusage-as.c (get_rusage_as): When compiled by
"gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
* tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
before exiting.

6 years agotest-userspec.c: don't print NULL
Jim Meyering [Sun, 10 Mar 2019 05:38:03 +0000 (21:38 -0800)]
test-userspec.c: don't print NULL

* tests/test-userspec.c (main): A test release of gcc,
9.0.1 20190310, warned that this test would attempt to
print a NULL pointer via a %s printf format.  Fix that
and remove the unnecessary preceding "!diag" conjunct.
Also add a comment.

6 years agogetloadavg: Write NULL for the null pointer.
Bruno Haible [Sun, 3 Mar 2019 18:36:14 +0000 (19:36 +0100)]
getloadavg: Write NULL for the null pointer.

Reported by Michal Privoznik <mprivozn@redhat.com>.

* lib/getloadavg.c (getloadavg): Write NULL instead of 0.

6 years agoalloca, tsearch-tests: Write NULL for the null pointer.
Michal Privoznik [Sun, 3 Mar 2019 18:34:57 +0000 (19:34 +0100)]
alloca, tsearch-tests: Write NULL for the null pointer.

* lib/alloca.c (i00afunc): Write NULL instead of 0.
* tests/test-tsearch.c (mangle_tree): Likewise.

6 years agostrfmon_l: Fix -fsanitize=address finding.
Bruno Haible [Sat, 9 Mar 2019 22:30:40 +0000 (23:30 +0100)]
strfmon_l: Fix -fsanitize=address finding.

* lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
<string.h>.
(MAX_ARGS): Renamed from MAX_ARG_WORDS.
(directive_t, directives_t): New types.
(fmon_parse): New function.
(rpl_strfmon_l): Don't call va_arg more often than needed for the
format string. Consume 'long double' arguments in places where the
format string indicates so.
* modules/strfmon_l (Depends-on): Add 'stdbool'.

6 years agocrypto/des: Fix undefined behaviour.
Bruno Haible [Sat, 9 Mar 2019 21:21:25 +0000 (22:21 +0100)]
crypto/des: Fix undefined behaviour.

* lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
shift operations on 'int'.

6 years agoFix undefined behaviour.
Bruno Haible [Sat, 9 Mar 2019 19:32:25 +0000 (20:32 +0100)]
Fix undefined behaviour.

* lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Case x to
'unsigned int', to avoid shift operations on 'int'.
* lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
* tests/test-count-leading-zeros.c (main): Use a random number that has
as many bits as TYPE, not only 2*15 or 2*31 bits.
* tests/test-count-trailing-zeros.c (main): Likewise.
* tests/test-count-one-bits.c (main): Likewise.
* tests/test-memmem.c: Don't include "null-ptr.h".
(main): Use zerosize_ptr() instead of null_ptr().
* modules/memmem-tests (Files): Remove tests/null-ptr.h.

6 years agounilbrk/u*-possible-linebreaks: Fix undefined behaviour.
Bruno Haible [Fri, 8 Mar 2019 23:27:19 +0000 (00:27 +0100)]
unilbrk/u*-possible-linebreaks: Fix undefined behaviour.

Reported by Jeffrey Walton <noloader@gmail.com>.

* lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
invoke memset with a zero size.
* lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
Likewise.
* lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
Adjust accordingly.

6 years agounistr/*, uniconv/*: Fix undefined behaviour.
Bruno Haible [Fri, 8 Mar 2019 23:01:47 +0000 (00:01 +0100)]
unistr/*, uniconv/*: Fix undefined behaviour.

Reported by Jeffrey Walton <noloader@gmail.com>.

* lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
* lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
* lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
* lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.

6 years agounistr/u8-cmp: Fix undefined behaviour.
Bruno Haible [Fri, 8 Mar 2019 19:38:22 +0000 (20:38 +0100)]
unistr/u8-cmp: Fix undefined behaviour.

Reported by Jeffrey Walton <noloader@gmail.com>.

* lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.

6 years agounictype/numeric: Fix undefined behaviour.
Bruno Haible [Fri, 8 Mar 2019 18:17:37 +0000 (19:17 +0100)]
unictype/numeric: Fix undefined behaviour.

Reported by Jeffrey Walton <noloader@gmail.com>.

* lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
on shift overflow, caught by "gcc -fsanitize=undefined".
* lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
* lib/unictype/categ_of.c (lookup_withtable): Likewise.
* lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.

6 years agoautoupdate
Karl Berry [Fri, 8 Mar 2019 17:27:47 +0000 (09:27 -0800)]
autoupdate

6 years agogit-version-gen: fix --version copyright year
Paul Eggert [Tue, 5 Mar 2019 23:05:33 +0000 (15:05 -0800)]
git-version-gen: fix --version copyright year

* build-aux/git-version-gen, build-aux/move-if-change (version):
--version output copyright year is now taken from script year,
so that it no longer needs to be updated by hand.

6 years agoautoupdate
Karl Berry [Mon, 4 Mar 2019 16:35:35 +0000 (08:35 -0800)]
autoupdate

6 years agorelocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
Bruno Haible [Mon, 4 Mar 2019 16:25:09 +0000 (17:25 +0100)]
relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.

This approach supports relocatable installation of shared libraries
which depend on other shared libraries from the same package.

* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
wrapper around the original LIBTOOL.
* build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
token '@loader_path' instead of '$ORIGIN'.
* build-aux/libtool-reloc: New file.
* modules/relocatable-prog (Files): Add it.
* doc/relocatable-maint.texi (Supporting Relocation): Update to match
the recent changes. Document the need to set the *_LDFLAGS of libraries.
RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
Makefile.am, not in configure.ac.

6 years agorelocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
Bruno Haible [Mon, 4 Mar 2019 16:25:04 +0000 (17:25 +0100)]
relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."

* build-aux/install-reloc: Revert change.
* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.

6 years agoautoupdate
Karl Berry [Sun, 3 Mar 2019 22:09:37 +0000 (14:09 -0800)]
autoupdate

6 years agoautoupdate
Karl Berry [Fri, 1 Mar 2019 16:42:42 +0000 (08:42 -0800)]
autoupdate

6 years agonstrftime: support the ‘+’ flag
Paul Eggert [Mon, 25 Feb 2019 07:32:07 +0000 (23:32 -0800)]
nstrftime: support the ‘+’ flag

* lib/nstrftime.c (add, __strftime_internal):
Add support for the ‘+’ flag introduced in POSIX.1-2017.
(__strftime_internal): New arg ‘width’.  All uses changed.
(DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.

6 years agoautoupdate
Karl Berry [Sun, 24 Feb 2019 16:05:56 +0000 (08:05 -0800)]
autoupdate

6 years agorelocatable-prog: Improve verbose output.
Bruno Haible [Sun, 24 Feb 2019 14:18:24 +0000 (15:18 +0100)]
relocatable-prog: Improve verbose output.

* build-aux/install-reloc (func_verbose): Escape characters that would
be interpreted by the shell.

6 years agostat, lstat: Fix conflict with relocatable-prog-wrapper module.
Bruno Haible [Sun, 24 Feb 2019 10:59:48 +0000 (11:59 +0100)]
stat, lstat: Fix conflict with relocatable-prog-wrapper module.

* lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
"sys/stat.h".
* lib/lstat.c: Likewise.
* lib/fstat.c: Likewise.
* lib/fstatat.c: Likewise.

6 years agolong-options: add parse_gnu_standard_options_only
Bernhard Voelker [Thu, 29 Nov 2018 08:06:26 +0000 (09:06 +0100)]
long-options: add parse_gnu_standard_options_only

Discussed in https://bugs.gnu.org/33468 .

* lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead
of 0.
(parse_gnu_standard_options_only): Add function to
process the GNU default options --help and --version and fail for any other
unknown long or short option. See
https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html .
* lib/long-options.h (parse_gnu_standard_options_only): Declare it.
* modules/long-options (depends-on): Add stdbool, exitfail.
* top/maint.mk (sc_prohibit_long_options_without_use): Update
syntax-check rule, add new function name.

6 years agorelocatable-prog: Update documentation.
Bruno Haible [Sun, 24 Feb 2019 00:52:19 +0000 (01:52 +0100)]
relocatable-prog: Update documentation.

* doc/relocatable-maint.texi (Supporting Relocation): Mention GNU/Hurd and
GNU/kFreeBSD as well.

6 years agorelocatable-prog: Update documentation.
Bruno Haible [Sun, 24 Feb 2019 00:49:15 +0000 (01:49 +0100)]
relocatable-prog: Update documentation.

* doc/relocatable-maint.texi (Supporting Relocation): Update to match
the recent changes.

6 years agorelocatable-prog: Use wrapper-free installation also on Mac OS X 10.4.
Bruno Haible [Sat, 23 Feb 2019 23:25:02 +0000 (00:25 +0100)]
relocatable-prog: Use wrapper-free installation also on Mac OS X 10.4.

* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat Mac OS X 10.4 like 10.5.

6 years agonstrftime: tweak arg order
Paul Eggert [Sat, 23 Feb 2019 23:07:47 +0000 (15:07 -0800)]
nstrftime: tweak arg order

* lib/nstrftime.c (__strftime_internal): Interchange arg order.
All callers changed.  Suggested by TAMUKI Shoichi in:
https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html

6 years agorelocatable-prog: Use wrapper-free installation also on Mac OS X.
Bruno Haible [Sat, 23 Feb 2019 21:42:54 +0000 (22:42 +0100)]
relocatable-prog: Use wrapper-free installation also on Mac OS X.

Reported by Paul Smith <psmith@gnu.org>.

* build-aux/install-reloc: Accept a 'mode' argument as first argument.
(func_relativize): New function, from gnulib-tool.
Handle mode 'macosx' through invocations of 'otool' and
'install_name_tool'.
* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
'install-reloc' invocation with mode 'macosx'.

6 years agorelocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
Bruno Haible [Sat, 23 Feb 2019 20:24:14 +0000 (21:24 +0100)]
relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.

* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
Hurd with glibc >= 2.27.

6 years agonstrftime: merge glibc strftime changes
Paul Eggert [Fri, 22 Feb 2019 04:07:21 +0000 (20:07 -0800)]
nstrftime: merge glibc strftime changes

This incorporates:
2019-02-11 Fix a few whitespace arrangement inconsistencies
2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
2019-01-11 strftime: use the "L_" macro with character literals
* lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
callers changed.  Default width of %Ey is now 2.  This is needed
for proper handling of Japanese dates starting on 2019-05-01.

6 years agorelocatable-prog: Use $ORIGIN trick on more platforms.
Bruno Haible [Wed, 20 Feb 2019 01:39:52 +0000 (02:39 +0100)]
relocatable-prog: Use $ORIGIN trick on more platforms.

* m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
Solaris >= 10, Haiku. But don't use it on Android.
* build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.

6 years agoprogreloc: Speed up executable lookup on various platforms.
Bruno Haible [Tue, 19 Feb 2019 20:42:54 +0000 (21:42 +0100)]
progreloc: Speed up executable lookup on various platforms.

* lib/progreloc.c: Include <errno.h>.
(safe_read, full_read): New functions.
(find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
prefer the information from the /proc file system to a PATH search.

6 years agoprogreloc: Simplify code for Android.
Bruno Haible [Tue, 19 Feb 2019 20:38:53 +0000 (21:38 +0100)]
progreloc: Simplify code for Android.

* lib/progreloc.c (executable_fd): Don't define on Android.
(maybe_executable, find_executable): Don't use executable_fd on Android.

6 years agoautoupdate
Karl Berry [Tue, 19 Feb 2019 16:54:45 +0000 (08:54 -0800)]
autoupdate

6 years agoautoupdate
Karl Berry [Mon, 18 Feb 2019 16:02:49 +0000 (08:02 -0800)]
autoupdate

6 years agognulib-tool: Support --import with just a few tests, not --with-tests.
Bruno Haible [Fri, 15 Feb 2019 20:27:44 +0000 (21:27 +0100)]
gnulib-tool: Support --import with just a few tests, not --with-tests.

* gnulib-tool (func_import): New variable 'gentests'. Use it instead of
'inctests' when generating files; use 'inctests' only for computing the
transitive closure.

6 years agognulib-tool: Improve handling of multiple --local-dir options.
Bruno Haible [Thu, 14 Feb 2019 19:50:57 +0000 (20:50 +0100)]
gnulib-tool: Improve handling of multiple --local-dir options.

* doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
options work.
* gnulib-tool (func_path_prepend): Remove function.
(func_path_foreach): Make IFS handling more robust.
(local_gnulib_path): Collect --local-dir values using func_path_append,
not func_path_prepend.
(func_determine_path_separator): Make IFS handling more robust.
(func_lookup_file_cb): New function.
(func_lookup_file): Rewritten to use func_lookup_file_cb instead of
func_lookup_local_file. Apply the patches in the reverse order of their
origin in $local_gnulib_path.
(func_count_relative_local_gnulib_path): Make IFS handling more robust.
* NEWS: Mention that the first --local-dir option is the one with
highest priority.

6 years agolibtextstyle: New module.
Bruno Haible [Sun, 10 Feb 2019 11:49:39 +0000 (12:49 +0100)]
libtextstyle: New module.

* m4/libtextstyle.m4: New file.
* modules/libtextstyle: New file.

6 years agodeclared.sh: Fix bug with variables of pointer type.
Bruno Haible [Wed, 6 Feb 2019 01:41:49 +0000 (02:41 +0100)]
declared.sh: Fix bug with variables of pointer type.

* build-aux/declared.sh (sed_extract_extern_declared): Allow the space
before the symbol to be omitted if the preceding character is a '*'.

6 years agoAdd script for running tests under valgrind.
Bruno Haible [Mon, 4 Feb 2019 21:35:38 +0000 (22:35 +0100)]
Add script for running tests under valgrind.

* build-aux/run-test: New file, from GNU libunistring.
* doc/valgrind-tests.texi: Rewritten to mention alternative approaches
as well.

6 years agodeclared.sh: Fix --version output.
Bruno Haible [Mon, 4 Feb 2019 20:37:28 +0000 (21:37 +0100)]
declared.sh: Fix --version output.

* build-aux/declared.sh (func_version): Update package name.

6 years agoAdd script for determining the set of symbols to export from a library.
Bruno Haible [Sun, 3 Feb 2019 20:44:16 +0000 (21:44 +0100)]
Add script for determining the set of symbols to export from a library.

* build-aux/declared.sh: New file, from GNU libunistring.
* doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
Mention it.

6 years agovla: add commentary about VLA_ELEMS
Paul Eggert [Sat, 2 Feb 2019 22:39:59 +0000 (14:39 -0800)]
vla: add commentary about VLA_ELEMS

* lib/vla.h (VLA_ELEMS): Add commentary,
some inspired by Bruno Haible’s proposal in:
https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html

6 years agodtoastr,ftoastr,ldtoastr: port to c-strtod changes
Paul Eggert [Sat, 2 Feb 2019 21:01:55 +0000 (13:01 -0800)]
dtoastr,ftoastr,ldtoastr: port to c-strtod changes

Decouple these modules from c-strtod.  Nowadays it’s reasonable to
assume the C99 signatures for strtod and strtold.  Programs that
require stricter adherence to C99 should also use the strtod and
strtold modules as needed, and we no longer need the
HAVE_C99_STRTOLD macro.
* NEWS: Mention this.
* lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
* m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
* modules/dtoastr, modules/ftoastr, modules/ldtoastr:
(Files): Remove m4/c-strtod.m4.
(configure.ac): Do not require gl_C99_STRTOLD, which no longer
exists.

6 years agoautoupdate
Karl Berry [Sat, 2 Feb 2019 16:04:06 +0000 (08:04 -0800)]
autoupdate

6 years agofma: Improve code style.
Bruno Haible [Sat, 2 Feb 2019 15:15:13 +0000 (16:15 +0100)]
fma: Improve code style.

* lib/fma.c: Include <limits.h>, for CHAR_BIT.

6 years ago*-map tests: Fix compilation error.
Colin Watson [Sat, 2 Feb 2019 15:12:09 +0000 (16:12 +0100)]
*-map tests: Fix compilation error.

* tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
* tests/test-hash_map.c: Likewise.
* tests/test-linkedhash_map.c: Likewise.

6 years agoc-strtod, c-strtold: Use the bug fixes for strtod, strtold.
Bruno Haible [Fri, 1 Feb 2019 03:34:37 +0000 (04:34 +0100)]
c-strtod, c-strtold: Use the bug fixes for strtod, strtold.

* lib/stdlib.in.h (GNULIB_defined_strtod_function,
GNULIB_defined_strtold_function): New macros.
* lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
(STRTOD): Ignore HAVE_C99_STRTOLD.
(c_locale): Don't define it on platforms where strtod_l/strtold_l is
deemed buggy. But do use it on platforms where uselocale exists and is
usable.
(C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
deemed buggy. On platforms where uselocale exists and is usable, use
uselocale and strtod/strtold.
* m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
(gl_C_STRTOD): Require gt_FUNC_USELOCALE.
(gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
* modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
(Depends-on): Add strtod.
* modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
(Depends-on): Add strtold.

6 years agostrtod, strtold: Use the locale's decimal point.
Bruno Haible [Fri, 1 Feb 2019 02:12:28 +0000 (03:12 +0100)]
strtod, strtold: Use the locale's decimal point.

* lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
(decimal_point_char): New function, copied from lib/vasnprintf.c.
(parse_number): Add a radixchar argument. Use it instead of '.'.
(STRTOD): Invoke decimal_point_char and pass the result to parse_number.
* m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
* m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
* tests/test-strtod1.c: New file.
* tests/test-strtod1.sh: New file.
* modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
locale-fr.m4 and its dependencies.
(configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
(Makefile.am): Arrange to compile test-strtod1.c and run
test-strtod1.sh.
* tests/test-strtold1.c: New file.
* tests/test-strtold1.sh: New file.
* modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
locale-fr.m4 and its dependencies.
(configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
(Makefile.am): Arrange to compile test-strtold1.c and run
test-strtold1.sh.

6 years agostrtod, strtold tests: Simplify tests.
Bruno Haible [Fri, 1 Feb 2019 01:51:20 +0000 (02:51 +0100)]
strtod, strtold tests: Simplify tests.

* tests/test-strtod.c (main): Assume no rounding errors for 0.5.
* tests/test-strtold.c (main): Likewise.

6 years agostrtod, strtold: Avoid unnecessary rounding errors.
Bruno Haible [Fri, 1 Feb 2019 00:43:41 +0000 (01:43 +0100)]
strtod, strtold: Avoid unnecessary rounding errors.

* lib/strtod.c (parse_number): Drop trailing zeroes before doing the
decimal to DOUBLE conversion.

6 years agostrtod, strtold: Work around HP-UX 11.31/ia64 bug.
Bruno Haible [Thu, 31 Jan 2019 23:18:57 +0000 (00:18 +0100)]
strtod, strtold: Work around HP-UX 11.31/ia64 bug.

* lib/strtod.c (STRTOD): When there is an extra character after the
exponent marker 'p', reparse the number.
* doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
* doc/posix-functions/strtold.texi: Likewise.

6 years agoautoupdate
Paul Eggert [Thu, 31 Jan 2019 21:24:44 +0000 (13:24 -0800)]
autoupdate

6 years agostrtold: Add tests.
Bruno Haible [Wed, 30 Jan 2019 02:53:43 +0000 (03:53 +0100)]
strtold: Add tests.

* tests/test-strtold.c: New file, based on tests/test-strtod.c.
* modules/strtold-tests: New file.

6 years agostrtold: New module.
Bruno Haible [Wed, 30 Jan 2019 02:52:31 +0000 (03:52 +0100)]
strtold: New module.

* lib/stdlib.in.h (strtold): New declaration.
* lib/strtold.c: New file.
* lib/strtod.c: Consider USE_LONG_DOUBLE.
(STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
USE_LDEXP): New macros.
(LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
USE_LONG_DOUBLE.
(underlying_strtod): Remove function. Replace with some macros.
Re-add the code for a missing underlying function that was removed on
2013-02-19.
* m4/strtold.m4: New file.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
REPLACE_STRTOLD.
* modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
REPLACE_STRTOLD.
* modules/strtold: New file.
* doc/posix-functions/strtold.texi: Document the new module.

6 years agostrtod: Fix compilation error on IRIX 6.5.
Bruno Haible [Tue, 29 Jan 2019 21:09:58 +0000 (22:09 +0100)]
strtod: Fix compilation error on IRIX 6.5.

* modules/strtod (Depends-on): Add 'math'.

6 years agoFix build error when building a shared libunistring on Android.
Bruno Haible [Mon, 28 Jan 2019 20:14:08 +0000 (21:14 +0100)]
Fix build error when building a shared libunistring on Android.

* tests/uninorm/test-nfc.c (n): Don't define on Android.
(main): Add 'volatile', to defeat a GCC optimization that would
eliminate the reference.
* tests/uninorm/test-nfd.c (n): Don't define on Android.
(main): Add 'volatile', to defeat a GCC optimization that would
eliminate the reference.
* tests/uninorm/test-nfkc.c (n): Don't define on Android.
(main): Add 'volatile', to defeat a GCC optimization that would
eliminate the reference.
* tests/uninorm/test-nfkd.c (n): Don't define on Android.
(main): Add 'volatile', to defeat a GCC optimization that would
eliminate the reference.

6 years agoAvoid build errors due to wrong references between modules.
Bruno Haible [Mon, 28 Jan 2019 00:20:11 +0000 (01:20 +0100)]
Avoid build errors due to wrong references between modules.

* lib/uninorm/canonical-decomposition.c: Include
"uninorm/decomposition-table.h", not "decomposition-table.h".
* lib/uninorm/decomposition.c: Likewise.
* lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
not "decompose-internal.h".
* lib/uninorm/u16-normalize.c: Likewise.
* lib/uninorm/u32-normalize.c: Likewise.
* lib/uninorm/uninorm-filter.c: Likewise.
* lib/uninorm/nfkc.c: Likewise.
* lib/uninorm/nfkd.c: Likewise.
* lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
"caseprop.h".
* lib/unicase/u8-ct-totitle.c: Likewise.
* lib/unicase/u8-prefix-context.c: Likewise.
* lib/unicase/u8-suffix-context.c: Likewise.
* lib/unicase/u16-casemap.c: Likewise.
* lib/unicase/u16-ct-totitle.c: Likewise.
* lib/unicase/u16-prefix-context.c: Likewise.
* lib/unicase/u16-suffix-context.c: Likewise.
* lib/unicase/u32-casemap.c: Likewise.
* lib/unicase/u32-ct-totitle.c: Likewise.
* lib/unicase/u32-prefix-context.c: Likewise.
* lib/unicase/u32-suffix-context.c: Likewise.
* lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
"unicasemap.h".
* lib/unicase/u8-toupper.c: Likewise.
* lib/unicase/u8-ct-tolower.c: Likewise.
* lib/unicase/u8-ct-toupper.c: Likewise.
* lib/unicase/u16-tolower.c: Likewise.
* lib/unicase/u16-toupper.c: Likewise.
* lib/unicase/u16-ct-tolower.c: Likewise.
* lib/unicase/u16-ct-toupper.c: Likewise.
* lib/unicase/u32-tolower.c: Likewise.
* lib/unicase/u32-toupper.c: Likewise.
* lib/unicase/u32-ct-tolower.c: Likewise.
* lib/unicase/u32-ct-toupper.c: Likewise.
* lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
"unicasemap.h", and "unicase/casefold.h", not "casefold.h".
* lib/unicase/u16-ct-casefold.c: Likewise.
* lib/unicase/u32-ct-casefold.c: Likewise.

6 years agotmpfile: Add support for Android, part 2.
Bruno Haible [Sun, 27 Jan 2019 23:10:21 +0000 (00:10 +0100)]
tmpfile: Add support for Android, part 2.

6 years agogperf: Fix error when this module is required by some test module.
Bruno Haible [Sun, 27 Jan 2019 22:57:16 +0000 (23:57 +0100)]
gperf: Fix error when this module is required by some test module.

* modules/gperf (Applicability): Set to 'all'.

6 years agotmpfile: Add support for Android.
Bruno Haible [Sun, 27 Jan 2019 21:03:14 +0000 (22:03 +0100)]
tmpfile: Add support for Android.

* m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
works.
* lib/tmpfile.c (tmpfile): Add an alternative implementation for
Android.
* modules/tmpfile (Depends-on): Add 'stdbool'.
* doc/posix-functions/tmpfile.texi: Mention the Android bug.
* modules/argv-iter-tests (Depends-on): Add 'tmpfile'.

6 years agobitsetv: allow free on NULL.
Akim Demaille [Sun, 27 Jan 2019 17:49:36 +0000 (18:49 +0100)]
bitsetv: allow free on NULL.

* lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.

6 years agotest-framework-sh: Improve maintainability.
Bruno Haible [Sun, 27 Jan 2019 15:55:27 +0000 (16:55 +0100)]
test-framework-sh: Improve maintainability.

* tests/init.sh: Clarify what belongs together. Reorder definitions.

6 years agotests: Don't assume that /tmp exists.
Bruno Haible [Sun, 27 Jan 2019 15:15:39 +0000 (16:15 +0100)]
tests: Don't assume that /tmp exists.

* tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
* tests/test-copy-acl-1.sh: Likewise.
* tests/test-file-has-acl-1.sh: Likewise.
* tests/test-copy-file-1.sh: Likewise.

6 years agotests: Accommodate a shell that is not in /bin/sh.
Bruno Haible [Sun, 27 Jan 2019 15:01:23 +0000 (16:01 +0100)]
tests: Accommodate a shell that is not in /bin/sh.

* tests/init.sh (setup_): Set srcdir and builddir.
(BOURNE_SHELL): New variable.
* modules/acl-tests (Depends-on): Add 'test-framework-sh'.
* modules/file-has-acl-tests (Depends-on): Likewise.
* modules/copy-file-tests (Depends-on): Likewise.
* tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
scripts through $BOURNE_SHELL.
* tests/test-set-mode-acl-2.sh: Likewise.
* tests/test-copy-acl-1.sh: Likewise.
* tests/test-copy-acl-2.sh: Likewise.
* tests/test-file-has-acl-1.sh: Likewise.
* tests/test-file-has-acl-2.sh: Likewise.
* tests/test-copy-file-1.sh: Likewise.
* tests/test-copy-file-2.sh: Likewise.
* tests/test-set-mode-acl.sh (builddir): Consider value set by the
invoker.
* tests/test-copy-acl.sh (builddir): Likewise.
* tests/test-file-has-acl.sh (builddir): Likewise.
* tests/test-copy-file.sh (builddir): Likewise.
* tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
* tests/test-vc-list-files-git.sh: Likewise.

6 years agotests: Fix some "unused variable" warnings.
Bruno Haible [Sun, 27 Jan 2019 11:24:47 +0000 (12:24 +0100)]
tests: Fix some "unused variable" warnings.

* tests/test-fts.c (fts_dealloc): Remove unused variable.
* tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
* tests/test-striconveh.c (main): Move some variable into the
'#if HAVE_ICONV'.
* tests/test-striconveha.c (main): Likewise.
* tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
* tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
* tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
* tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
* tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
* tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
* tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
* tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
* tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
* tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
* tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
* tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
* tests/test-tsearch.c (main): Move some variable into the
'#if HAVE_INITSTATE'.

6 years agounigbrk/uc-grapheme-breaks: Fix build failure.
Bruno Haible [Sun, 27 Jan 2019 11:49:12 +0000 (12:49 +0100)]
unigbrk/uc-grapheme-breaks: Fix build failure.

* lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
* modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.

6 years agomountlist: Merge two .m4 files.
Bruno Haible [Sun, 27 Jan 2019 10:45:28 +0000 (11:45 +0100)]
mountlist: Merge two .m4 files.

* m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
(AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
* m4/ls-mntd-fs.m4: Remove file.
* modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.

6 years agotests: Enable Linux specific tests on Android.
Bruno Haible [Sun, 27 Jan 2019 10:39:56 +0000 (11:39 +0100)]
tests: Enable Linux specific tests on Android.

* tests/test-flock.c (main): Treat Android like Linux.
* tests/test-openat-safer.c (main): Likewise.

6 years agorelocatable-prog: Use Linux code on Android.
Bruno Haible [Sun, 27 Jan 2019 10:37:46 +0000 (11:37 +0100)]
relocatable-prog: Use Linux code on Android.

* lib/progreloc.c: Treat Android like Linux.

6 years agogetloadavg: Add support for Android.
Bruno Haible [Sun, 27 Jan 2019 03:57:32 +0000 (04:57 +0100)]
getloadavg: Add support for Android.

* lib/getloadavg.c: Treat Android like Linux.

6 years agovma-iter: Add support for Android.
Bruno Haible [Sun, 27 Jan 2019 03:57:29 +0000 (04:57 +0100)]
vma-iter: Add support for Android.

* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
* lib/vma-iter.c: Treat Android like Linux.
* lib/get-rusage-data.c (get_rusage_data): Likewise.

6 years agofts: Optimize on Android.
Bruno Haible [Sun, 27 Jan 2019 03:57:27 +0000 (04:57 +0100)]
fts: Optimize on Android.

* lib/fts.c: Treat Android like Linux.

6 years agofts: Add support for Android.
Bruno Haible [Sun, 27 Jan 2019 03:57:24 +0000 (04:57 +0100)]
fts: Add support for Android.

* m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
defined by this module and the ones in libc.
* tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.

6 years agomountlist: Use Linux code on Android.
Bruno Haible [Sat, 26 Jan 2019 23:21:17 +0000 (00:21 +0100)]
mountlist: Use Linux code on Android.

* lib/mountlist.c (setmntent, endmntent): Define fallbacks.
(unescape_tab, read_file_system_list): Enable Linux code on Android
as well.
* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
and endmntent.
* modules/mountlist (Depends-on): Add 'getline'.

6 years agolocalename tests: Fix test failure on Android.
Bruno Haible [Sat, 26 Jan 2019 22:40:44 +0000 (23:40 +0100)]
localename tests: Fix test failure on Android.

* modules/localename-tests (Depends-on): Add 'setlocale'.

6 years agomountlist: Port better to Android.
Bruno Haible [Sat, 26 Jan 2019 21:49:57 +0000 (22:49 +0100)]
mountlist: Port better to Android.

* lib/mountlist.c (MOUNTED): Redefine on Android.
* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
Android.

6 years agostriconveh: Fix use of uninitialized iconv_t.
Bruno Haible [Sat, 26 Jan 2019 20:46:40 +0000 (21:46 +0100)]
striconveh: Fix use of uninitialized iconv_t.

Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.

* lib/striconveh.c (iconveh_open): Correct the iconv_close argument.

6 years agononblocking-socket-tests: Fix test failure on Android 4.3.
Bruno Haible [Sat, 26 Jan 2019 17:55:39 +0000 (18:55 +0100)]
nonblocking-socket-tests: Fix test failure on Android 4.3.

* tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
also on Android.

6 years agosh-filename: Add support for Android 4.3.
Bruno Haible [Sat, 26 Jan 2019 14:40:31 +0000 (15:40 +0100)]
sh-filename: Add support for Android 4.3.

* m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.

6 years agoptsname_r: Work around bug on Android 4.3.
Bruno Haible [Sat, 26 Jan 2019 14:23:19 +0000 (15:23 +0100)]
ptsname_r: Work around bug on Android 4.3.

* m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
correct.
* lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
is defined, just fix the return value.
* doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
The behaviour of musl libc is nothing to be "fixed", since it is
compliant with the next POSIX standard.

6 years agottyname_r: Work around bug on Android 4.3.
Bruno Haible [Sat, 26 Jan 2019 10:56:31 +0000 (11:56 +0100)]
ttyname_r: Work around bug on Android 4.3.

* m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
* lib/ttyname_r.c (ttyname_r): Implement for Android.
* doc/posix-functions/ttyname_r.texi: Mention the Android bug.
* doc/posix-functions/ttyname.texi: Likewise.

6 years agogetprogname: Port to Android 4.3.
Bruno Haible [Fri, 25 Jan 2019 23:03:51 +0000 (00:03 +0100)]
getprogname: Port to Android 4.3.

* lib/getprogname.c (getprogname): On Android, take only the last
component of __progname.

6 years agowcrtomb: Work around bug on Android 4.3.
Bruno Haible [Fri, 25 Jan 2019 22:39:28 +0000 (23:39 +0100)]
wcrtomb: Work around bug on Android 4.3.

* m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
the C locale.
* lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
which does not have the 'wctomb' function.
* doc/posix-functions/wcrtomb.texi: Mention the Android bug.
* tests/test-wcrtomb.c (main): Accept argument '5'.
* tests/test-wcrtomb.sh: Add tests in the POSIX locale.

6 years agosetlocale: Work around bug on Android 4.3.
Bruno Haible [Fri, 25 Jan 2019 22:26:24 +0000 (23:26 +0100)]
setlocale: Work around bug on Android 4.3.

* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
the "C" locale.
* lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
* doc/posix-functions/setlocale.texi: Mention the Android bug.

6 years agomemchr: Work around bug on Android <= 5.0.
Bruno Haible [Fri, 25 Jan 2019 02:54:09 +0000 (03:54 +0100)]
memchr: Work around bug on Android <= 5.0.

* m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
* doc/posix-functions/memchr.texi: Mention the Android bug.

6 years agorandom: Fix compilation error on Android 4.3.
Bruno Haible [Fri, 25 Jan 2019 00:36:26 +0000 (01:36 +0100)]
random: Fix compilation error on Android 4.3.

* lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
(initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
(setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
* m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
* modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
* modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
REPLACE_INITSTATE, REPLACE_SETSTATE.
* doc/posix-functions/random.texi: Correct the description of the
situation on Android.
* doc/posix-functions/srandom.texi: Likewise.
* doc/posix-functions/rand.texi: Likewise.
* doc/posix-functions/srand.texi: Likewise.

6 years agombtowc: Fix compilation error on Android 4.3.
Bruno Haible [Thu, 24 Jan 2019 23:42:40 +0000 (00:42 +0100)]
mbtowc: Fix compilation error on Android 4.3.

* lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
* m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
HAVE_MBTOWC.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
(gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
* modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
* modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
* doc/posix-functions/mbtowc.texi: Mention the change.

6 years agofdatasync: Fix compilation error on Android 4.3.
Bruno Haible [Thu, 24 Jan 2019 23:15:50 +0000 (00:15 +0100)]
fdatasync: Fix compilation error on Android 4.3.

* m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
test whether fdatasync() exists.

6 years agounlinkat: Fix compilation error on Android 4.3.
Bruno Haible [Thu, 24 Jan 2019 23:08:52 +0000 (00:08 +0100)]
unlinkat: Fix compilation error on Android 4.3.

* lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
also on Android.
* doc/posix-functions/unlinkat.texi: Mention the issue.

6 years agorenameat: Fix compilation error on Android 4.3.
Bruno Haible [Thu, 24 Jan 2019 23:03:12 +0000 (00:03 +0100)]
renameat: Fix compilation error on Android 4.3.

* lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
* doc/posix-functions/renameat.texi: Mention the issue.

6 years agofchownat: Fix compilation error on Android 4.3.
Bruno Haible [Thu, 24 Jan 2019 22:51:11 +0000 (23:51 +0100)]
fchownat: Fix compilation error on Android 4.3.

* lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
use.
* m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
* doc/posix-functions/fchownat.texi: Mention the issue.

6 years agognulib-tool: Support running testdirs on Android.
Bruno Haible [Wed, 23 Jan 2019 04:11:54 +0000 (05:11 +0100)]
gnulib-tool: Support running testdirs on Android.

* build-aux/test-driver.diff: New file.
* gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
build-aux/test-driver after running automake.

6 years agorelocatable-prog: add a comment
Akim Demaille [Thu, 24 Jan 2019 06:37:10 +0000 (07:37 +0100)]
relocatable-prog: add a comment

* modules/relocatable-prog: Explain the previous commit.
Suggested by Bruno Haible.

6 years agorelocatable-prog: avoid warnings from Automake
Akim Demaille [Wed, 23 Jan 2019 21:42:04 +0000 (22:42 +0100)]
relocatable-prog: avoid warnings from Automake

* modules/relocatable-prog: Don't declare PHONY dependencies in
Automake conditionals.

6 years agoarray-list: Pacify warnings about unused arguments (-Wunused-parameter)
Akim Demaille [Wed, 23 Jan 2019 21:36:54 +0000 (22:36 +0100)]
array-list: Pacify warnings about unused arguments (-Wunused-parameter)

* lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.