Collin Funk [Tue, 12 Mar 2024 20:01:50 +0000 (13:01 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 56.
Follow gnulib-tool change
2021-04-26 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: port better to current Autoconf
* pygnulib/GLImport.py (GLImport.execute): Remove exit() call before
printing reminders. Suggest replacing AC_PROG_CC_STDC and
AC_PROG_CC_C99, as per current Autoconf.
Collin Funk [Tue, 12 Mar 2024 18:45:53 +0000 (11:45 -0700)]
gnulib-tool.py: Fix last commit.
* pygnulib/GLEmiter.py (GLEmiter.initmacro_end): Silence Python
warnings about invalid escape. Make sure to escape the backslash
character we want to print.
Collin Funk [Tue, 12 Mar 2024 01:50:28 +0000 (18:50 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 55.
Follow gnulib-tool changes
2022-01-05 Bruno Haible <bruno@clisp.org>
gnulib-tool: Avoid known warnings that reflect Gnulib's coding style.
2022-01-08 Bruno Haible <bruno@clisp.org>
gnulib-tool: Remove all *.Po files upon distclean (regr. 2022-01-05).
* pygnulib/GLEmiter.py (GLEmiter.initmacro_end): Collect the *.Po or
*.Plo files to remove into an AC_SUBSTed variable gl_LIBOBJDEPS. Use
Python f-strings instead of string replacements.
(GLEmiter.lib_Makefile_am): Add the GL_CFLAG_GNULIB_WARNINGS to the
CFLAGS of all the compilation units of the library. Extend the distclean
and maintainer-clean rules.
(GLEmiter.tests_Makefile_am): Add the GL_CFLAG_GNULIB_WARNINGS to the
CFLAGS.
* pygnulib/GLImport.py (GLImport.gnulib_comp): Emit an invocation of
gl_CC_GNULIB_WARNINGS.
* pygnulib/GLEmiter.py (_eliminate_NMD_from_line): New private function
to remove @NMD@ occurrences from the line of an Automake snippet.
(_eliminate_NMD): New private function which uses
_eliminate_NMD_from_line on each line of the Automake snippet.
(GLEmiter.lib_Makefile_am, GLEmiter.tests_Makefile_am): Use
_eliminate_NMD on the Automake snippet.
Bruno Haible [Sun, 10 Mar 2024 22:47:58 +0000 (23:47 +0100)]
gnulib-tool.py: Tweak last commit.
* pygnulib/GLEmiter.py (GLEmiter.initmacro_end): Avoid an implicit str
to bool conversion.
* pygnulib/GLImport.py (GLImport.__init__): Add a comment. Don't allow
a '|' in place of whitespace. Don't emit redundant gl_source_base
assignments.
Collin Funk [Sun, 10 Mar 2024 21:07:35 +0000 (14:07 -0700)]
gnulib-tool.py: Follow gnulib-tool changes, part 51.
Follow gnulib-tool change
2021-12-15 Bruno Haible <bruno@clisp.org>
Accommodate non-recursive Automake in a less hacky way.
* pygnulib/GLConfig.py (GLConfig.__init__): Add 'automake_subdir' to the
parameter list.
(GLConfig.default): Set the default value of automake_subdir to a
boolean False.
(GLConfig.getAutomakeSubdir, GLConfig.setAutomakeSubdir)
(GLConfig.resetAutomakeSubdir): New functions to access and manipulate
the automake_subdir option.
* pygnulib/GLEmiter.py (GLEmiter.shellvars_init): New function.
(GLEmiter.initmacro_end): Add second parameter 'gentests'. Use it to prefix each
object file name in *_LIBOBJS and *_LTLIBOBJS.
* pygnulib/GLError.py (GLError.__init__, GLError.__repr__): Add new
error for if --automake-subdir is used without the 'subdir-objects'
Automake option.
* pygnulib/GLImport.py (GLImport.__init__): Check for 'subdir-objects'
in Makefile.am.
(GLImport.actioncmd): Emit --automake-subdir in actioncmd.
(GLImport.gnulib_cache): Add gl_AUTOMAKE_SUBDIR to gnulib-cache.m4 if
--automake-subdir is used.
(GLImport.gnulib_comp): Update calls to GLEmiter.initmacro_end. Call
GLEmiter.shellvars_init.
(GLImport.execute): Likewise. Use the build-aux/prefix-gnulib-mk script.
* pygnulib/GLInfo.py (GLInfo.usage): Add --automake-subdir to the usage
message.
* pygnulib/GLTestDir.py (GLTestDir.execute): Update calls to
GLEmiter.initmacro_end. Call GLEmiter.shellvars_init.
* pygnulib/main.py (main): Add support for --automake-subdir.
Collin Funk [Sat, 9 Mar 2024 09:41:02 +0000 (01:41 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 50.
Follow gnulib-tool changes
2021-12-12 Bruno Haible <bruno@clisp.org>
gnulib-tool: Try to support non-recursive-gnulib-prefix-hack with tests.
2021-12-13 Bruno Haible <bruno@clisp.org>
gnulib-tool: Fix mistake in last commit.
* pygnulib/GLImport.py (GLImport.gnulib_comp): Expect the filetable as a
parameter instead of a list of all files. Add type checks. Invoke
AC_CONFIG_LIBOBJ_DIR based on the location of alloca.c.
(GLImport.execute): Adjust call to GLImport.gnulib_comp to reflect
parameter changes.
Collin Funk [Sat, 9 Mar 2024 06:30:03 +0000 (22:30 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 49.
Follow gnulib-tool change
2021-08-07 Bruno Haible <bruno@clisp.org>
gnulib-tool: Add support for Automake 1.16.4.
* pygnulib/GLTestDir.py (_patch_test_driver): If patching
build-aux/test-driver fails with build-aux/test-driver.diff try again
with build-aux/test-driver-1.16.3.diff.
Collin Funk [Sat, 9 Mar 2024 04:59:16 +0000 (20:59 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 48.
Follow gnulib-tool change
2019-01-23 Bruno Haible <bruno@clisp.org>
gnulib-tool: Support running testdirs on Android.
* pygnulib/GLError.py (GLError.__init__, GLError.__repr__): Add errno 20
to print an error if patching build-aux/test-driver fails.
* pygnulib/main.py (main): Likewise.
* pygnulib/GLTestDir.py (_patch_test_driver): New private function which
runs patch on build-aux/test-driver with build-aux/test-driver.diff.
(GLTestDir.execute, GLMegaTestDir.execute): Check for
build-aux/test-driver in each testdir and patch it after running
automake.
Collin Funk [Fri, 8 Mar 2024 09:43:26 +0000 (01:43 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 47.
Follow gnulib-tool changes
2021-12-15 Bruno Haible <bruno@clisp.org>
Fix creation of build directories with non-recursive-gnulib-prefix-hack.
2021-12-18 Bruno Haible <bruno@clisp.org>
Fix support for --gnu-make in tests (regression 2021-12-15).
* pygnulib/GLEmiter.py (_CONVERT_TO_GNU_MAKE): New variable which is a
list of tuples which are used with re.sub.
(_convert_to_gnu_make): New function which converts an input snippet
from Automake to GNU Make syntax using the regular expressions stored in
_CONVERT_TO_GNU_MAKE.
(GLEmiter.lib_Makefile_am): Use _convert_to_gnu_make. Replace '%reldir%'
tokens.
(GLEmiter.tests_Makefile_am): Likewise.
Collin Funk [Thu, 7 Mar 2024 11:11:55 +0000 (03:11 -0800)]
gnulib-tool.py: Fix errors when executing --create-megatestdir.
* pygnulib/GLTestDir.py (GLMegaTestDir.execute): Create a testdir for
each module in its own subdirectory. Create a testdir with all modules
in 'ALL'. Add missing join call on str object. Don't emit 'configure.ac'
into 'Makefile.am'. Make sure commands are executed in the proper
directory.
Collin Funk [Thu, 7 Mar 2024 05:49:21 +0000 (21:49 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 45.
Follow gnulib-tool changes
2021-12-12 Bruno Haible <bruno@clisp.org>
gnulib-tool: Support different basenames for the lib/,tests/ Makefiles.
2022-01-08 Bruno Haible <bruno@clisp.org>
gnulib-tool: Fix "Don't forget" messages (regression 2021-12-12).
* pygnulib/GLConfig.py (GLConfig.__init__): Add 'tests_makefile_name'
argument.
(GLConfig.getMakefileName, GLConfig.setMakefileName)
(GLConfig.resetMakefileName): Remove references to tests Makefile.am in
doc strings.
(GLConfig.getTestsMakefileNamem, GLConfig.setTestsMakefileName)
(GLConfig.resetTestsMakefileName): New methods used to access value
passed with the '--tests-makefile-name' option.
* pygnulib/GLImport.py (GLImport.__init__): Check for
'gl_TESTS_MAKEFILE_NAME' in cache.
(GLImport.actioncmd): Output --tests-makefile-name when describing
gnulib-tool invocation.
(GLImport.gnulib_cache): Output 'gl_TESTS_MAKEFILE_NAME' to cache.
(GLImport.execute): Use two local variables, source_makefile_am and
tests_makefile_am, which are passed to gnulib-tool.py or given default
values.
* pygnulib/GLInfo.py (GLInfo.usage): Add '--tests-makefile-name' to
usage message.
* pygnulib/GLMakefileTable.py (GLMakefileTable.parent): Reduce code
duplication by expecting Makefile names passed as arguments.
* pygnulib/main.py (main): Add support for '--tests-makefile-name'.
Collin Funk [Wed, 6 Mar 2024 08:09:20 +0000 (00:09 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 44.
Follow gnulib-tool changes
2021-06-10 Bruno Haible <bruno@clisp.org>
Clarify where to report test failures from Gnulib tests.
2021-06-11 Bruno Haible <bruno@clisp.org>
Make message in last commit more precise.
* pygnulib/GLEmiter.py (GLEmiter.tests_Makefile_am): Emit a dependency
of 'check-am' on 'check-notice' that prints a notice describing where to
report test failures.
Collin Funk [Wed, 6 Mar 2024 07:47:08 +0000 (23:47 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 43.
Follow gnulib-tool change
2021-06-10 Bruno Haible <bruno@clisp.org>
Clarify that compiler warnings in the Gnulib tests can be ignored.
* pygnulib/GLEmiter.py (GLEmiter.initmacro_start): Add boolean argument
to control whether gl_CC_ALLOW_WARNINGS and gl_CXX_ALLOW_WARNINGS should
be required.
(GLEmiter.tests_Makefile_am): Emit overrides for CFLAGS and CXXFLAGS.
Emit a dependency of 'all' on 'all-notice' that prints a warning that
compiler warnings can be ignored for tests.
* pygnulib/GLImport.py (GLImport.gnulib_comp): Add boolean argument to
tell whether a tests Makefile.am is being emitted. Update calls to
GLEmiter.initmacro_start.
(GLImport.execute): Update calls to GLEmiter.initmacro_start.
* pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.
Collin Funk [Wed, 6 Mar 2024 04:32:29 +0000 (20:32 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 42.
Follow gnulib-tool change
2019-02-15 Bruno Haible <bruno@clisp.org>
gnulib-tool: Support --import with just a few tests, not --with-tests.
* pygnulib/GLImport.py (GLImport.execute): Use 'gentests' instead of
'inctests' when generating files.
* pygnulib/GLMakefileTable.py (GLMakefileTable.parent): Add 'gentests'
argument and use it instead of 'inctests'.
Collin Funk [Wed, 6 Mar 2024 00:30:20 +0000 (16:30 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 41.
Follow gnulib-tool change
2018-09-03 Bruno Haible <bruno@clisp.org>
gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): Consider the dotfirst
flag.
(GLEmiter.tests_Makefile_am): Don't consider the dotfirst flag.
* pygnulib/GLImport.py (GLImport.execute): Set the dotfirst for tests.
* pygnulib/GLMakefileTable.py (GLMakefileTable.editor): Add optional
dotfirst flag to fix build order when $testsbase is a subdir of
$sourcebase.
Collin Funk [Tue, 5 Mar 2024 05:26:08 +0000 (21:26 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 40.
Follow gnulib-tool change
2021-12-18 Bruno Haible <bruno@clisp.org>
stdint: Fix handling of limits.h (regression 2021-12-16).
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am)
(GLEmiter.tests_Makefile_am): If --gnu-make is used, assume that
AC_SUBSTed variables for conditionals are constructed by appending the
suffix '_CONDITION'.
* pygnulib/GLImport.py: Call GLEmiter.tests_Makefile_am instead of
GLEmiter.lib_Makefile_am when creating the tests Makefile. Replace
incorrect actioncmd argument with witness_macro.
Bruno Haible [Tue, 5 Mar 2024 16:10:38 +0000 (17:10 +0100)]
c-strtof, c-strtod, c-strtold: Make multithread-safe.
* lib/c-strtod.c: Include <langinfo.h>, c-ctype.h.
(decimal_point_char): New function, copied from lib/vasnprintf.c.
(C_STRTOD): On platforms that don't have STRTOD_L nor a working
uselocale(), pre-parse the number and call STRTOD after having replaced
the '.' with the locale-dependent decimal point character.
* m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOF, gl_C_STRTOLD): Test for
nl_langinfo().
* modules/c-strtof (Depends-on): Add c-ctype. Remove strdup-posix.
* modules/c-strtod (Depends-on): Likewise.
* modules/c-strtold (Depends-on): Likewise.
Bruno Haible [Tue, 5 Mar 2024 12:44:13 +0000 (13:44 +0100)]
c-strtold: Add multithread-safety test.
* tests/test-c-strtold-mt.c: New file.
* tests/test-c-strtold-mt.sh: New file, based on
tests/test-c-strtold1.sh.
* modules/c-strtold-tests (Files): Add them.
(Depends-on): Add thread, nanosleep.
(Makefile.am): Arrange to build test-c-strtold-mt and run
test-c-strtold-mt.sh.
Bruno Haible [Tue, 5 Mar 2024 12:35:08 +0000 (13:35 +0100)]
c-strtod: Add multithread-safety test.
* tests/test-c-strtod-mt.c: New file.
* tests/test-c-strtod-mt.sh: New file, based on tests/test-c-strtod1.sh.
* modules/c-strtod-tests (Files): Add them.
(Depends-on): Add thread, nanosleep.
(Makefile.am): Arrange to build test-c-strtod-mt and run
test-c-strtod-mt.sh.
Bruno Haible [Tue, 5 Mar 2024 12:42:27 +0000 (13:42 +0100)]
c-strtof: Add multithread-safety test.
* tests/test-c-strtof-mt.c: New file.
* tests/test-c-strtof-mt.sh: New file, based on tests/test-c-strtof1.sh.
* modules/c-strtof-tests (Files): Add them.
(Depends-on): Add thread, nanosleep.
(Makefile.am): Arrange to build test-c-strtof-mt and run
test-c-strtof-mt.sh.
Bruno Haible [Tue, 5 Mar 2024 11:21:36 +0000 (12:21 +0100)]
c-strtold: Add tests.
* tests/test-strtold.h: New file, extracted from tests/test-strtold.c.
* tests/test-strtold.c: Include test-strtold.h.
(FABSL): Remove unused macro.
(main): Just invoke test_function.
* tests/test-strtold1.c: Add comment.
* modules/strtold-tests (Files): Add tests/test-strtold.h.
* tests/test-c-strtold.c: New file, based on tests/test-strtold.c.
* tests/test-c-strtold1.c: New file, based on tests/test-strtold1.c.
* tests/test-c-strtold1.sh: New file, based on tests/test-strtold1.sh.
* modules/c-strtold-tests: New file, based on modules/strtold-tests.
Bruno Haible [Tue, 5 Mar 2024 11:19:29 +0000 (12:19 +0100)]
c-strtod: Add tests.
* tests/test-strtod.h: New file, extracted from tests/test-strtod.c.
* tests/test-strtod.c: Include test-strtod.h.
(FABS): Remove unused macro.
(main): Just invoke test_function.
* tests/test-strtod1.c: Add comment.
* modules/strtod-tests (Files): Add tests/test-strtod.h.
* tests/test-c-strtod.c: New file, based on tests/test-strtod.c.
* tests/test-c-strtod1.c: New file, based on tests/test-strtod1.c.
* tests/test-c-strtod1.sh: New file, based on tests/test-strtod1.sh.
* modules/c-strtod-tests: New file, based on modules/strtod-tests.
Bruno Haible [Tue, 5 Mar 2024 11:18:01 +0000 (12:18 +0100)]
c-strtof: Add tests.
* tests/test-strtof.h: New file, extracted from tests/test-strtof.c.
* tests/test-strtof.c: Include test-strtof.h.
(FABS): Remove unused macro.
(main): Just invoke test_function.
* tests/test-strtof1.c: Add comment.
* modules/strtof-tests (Files): Add tests/test-strtof.h.
* tests/test-c-strtof.c: New file, based on tests/test-strtof.c.
* tests/test-c-strtof1.c: New file, based on tests/test-strtof1.c.
* tests/test-c-strtof1.sh: New file, based on tests/test-strtof1.sh.
* modules/c-strtof-tests: New file, based on modules/strtof-tests.
Collin Funk [Mon, 4 Mar 2024 20:35:15 +0000 (12:35 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 39.
Follow gnulib-tool change
2017-12-28 Bruno Haible <bruno@clisp.org>
gnulib-tool: Make --conditional-dependencies work better.
* pygnulib/GLEmiter.py (GLEmiter.autoconfSnippets): Add argument
referenceable_modules. Use referencable_modules for dependencies.
* pygnulib/GLImport.py (GLImport.__init__): Don't reject the combination
of --conditional-dependencies with --with-tests when mode is 'import'.
(GLImport.gnulib_comp): Pass it.
* pygnulib/GLTestDir.py (GLTestDir.execute): Pass it.
Bruno Haible [Sun, 3 Mar 2024 09:52:53 +0000 (10:52 +0100)]
doc: Update regarding --create-megatestdir.
Reported by Alexei Sholomitskiy <asholomitskiy84@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-07/msg00071.html>
and by Collin Funk <collin.funk1@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00007.html>.
* doc/build-automation.texi (Building gnulib): Discourage the use of
--create-megatestdir with all modules.
Collin Funk [Fri, 1 Mar 2024 02:37:53 +0000 (18:37 -0800)]
gnulib-tool.py: Fix GNU Make conversion regular expressions.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): Reduce code
duplication. Use re.MULTILINE so '^' matches the start of each line
instead of only the start of a string.
Collin Funk [Thu, 29 Feb 2024 03:05:16 +0000 (19:05 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 33.
Follow gnulib-tool change
2017-03-14 Bruno Haible <bruno@clisp.org>
gnulib-tool: Don't produce a tests directory with only snippet .h files.
* pygnulib/GLModuleSystem.py
(GLModuleTable.transitive_closure_separately): Don't create a test
directory if all test related modules have applicability 'all'.
Collin Funk [Wed, 28 Feb 2024 21:12:05 +0000 (13:12 -0800)]
gnulib-tool.py: Emit year range on file copyright notices.
* pygnulib/GLInfo.py (GLInfo.copyright_range): New function. Return a
copyright string with a year range.
* pygnulib/GLEmiter.py (GLEmiter.copyright_notice): Use the new function
for file copyright headers.
Collin Funk [Wed, 28 Feb 2024 11:33:15 +0000 (03:33 -0800)]
gnulib-tool.py: Make module sorting more similar to gnulib-tool.
* pygnulib/GLImport.py (GLImport.__init__): Sort modules when mode is
'import'.
(GLImport.actioncmd): Don't sort modules while creating actioncmd. Use
preferred quoting style.
Bruno Haible [Wed, 28 Feb 2024 10:52:33 +0000 (11:52 +0100)]
gnulib-tool: Make --version output independent of git's configuration.
Reported by Collin Funk <collin.funk1@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00268.html>.
* pygnulib/GLInfo.py (GLInfo.date): Pass --format and --date options, to
override the user's git configuration.
* gnulib-tool (func_version): Likewise. Also pass options '-n 1', to
speed up the operation.
Bruno Haible [Wed, 28 Feb 2024 10:38:00 +0000 (11:38 +0100)]
gnulib-tool.py: Avoid exception when 'git log' output is unexpected.
* pygnulib/GLInfo.py (GLInfo.date): When the 'git log' output does not
contain a line with the expected 'Date:' pattern, pass the empty string
to GNU date.
Collin Funk [Tue, 27 Feb 2024 05:22:23 +0000 (21:22 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 29.
Follow gnulib-tool change
2021-03-06 Paul Eggert <eggert@cs.ucla.edu>
parse-datetime2: fix licensing
* pygnulib/GLModuleSystem.py (GLModule.getLicense): Handle the special
licensing case for parse-datetime2 or any other module starting with
"parse-datetime". Update comment.
Bruno Haible [Mon, 26 Feb 2024 22:44:01 +0000 (23:44 +0100)]
gnulib-tool.py: Reorganize code.
* pygnulib/main.py: New file, moved here from gnulib-tool.py.
* pygnulib/constants.py: Change the way APP['name'] and DIRS['root'] are
computed.
* gnulib-tool.py: New file, based on gnulib-tool.
Bruno Haible [Sun, 25 Feb 2024 15:12:57 +0000 (16:12 +0100)]
bitset: Don't access errno when it's not set.
* lib/bitset/stats.c (bitset_stats_read): Don't use errno after neither
fread() nor ferror() has set it. On native Windows, don't use errno
after fclose().
Bruno Haible [Sun, 25 Feb 2024 14:48:47 +0000 (15:48 +0100)]
bitset: Avoid newlines at the end of translatable strings.
* lib/bitset/stats.c (bitset_percent_histogram_print,
bitset_log_histogram_print): Print a newline after msg.
(bitset_stats_print_1): Don't include a newline in the argument of
bitset_percent_histogram_print or bitset_log_histogram_print.
(bitset_stats_print): Move newlines outside of translatable strings.
Collin Funk [Sat, 24 Feb 2024 04:52:15 +0000 (20:52 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 28.
Follow gnulib-tool change
2018-07-17 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: limit line length for git send-email
* pygnulib/GLImport.py (GLImport.actioncmd): Break actioncmd into
multiple lines. Reorder emitting of arguments to match gnulib-tool. Emit
"--witness-c-macro" instead of "--witness_c_macro". Emit "--po-domain"
instead of "--podomain". Document ordering of unimplemented options. Add
updated comments documenting line length limitations of git send-email
and some implementations of AWK.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): Remove comment which
was moved to pygnulib/GLImport.py. Remove length limitation on actioncmd
since it now spans multiple lines.
Bruno Haible [Fri, 23 Feb 2024 17:34:08 +0000 (18:34 +0100)]
unictype/mirror: Update to Unicode 15.1.0.
Reported by Daurnimator <quae@daurnimator.com> in
<https://lists.gnu.org/archive/html/bug-libunistring/2016-11/msg00010.html>.
* lib/gen-uni-tables.c (struct mirror_pair): New type.
(mirror_pairs): Don't initialize statically.
(mirror_pairs_count): New variable.
(fill_mirror): New function.
(get_mirror_value): Update.
(main): Expect the file name of BidiMirroring.txt as command-line
argument. Invoke fill_mirror.
* lib/unictype/mirror.h: Regenerated.
Collin Funk [Fri, 23 Feb 2024 04:16:18 +0000 (20:16 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 27.
Follow gnulib-tool changes
2017-03-12 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: new option --gnu-make
2017-03-13 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: minor --gnu-make fixups
2017-03-14 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: fix typo in comment output
2017-05-14 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: improve GNU Make debugging
2018-07-04 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: minor tweaks for --gnu-make
* gnulib-tool.py (main): Add --gnu-make option. Do not allow --gnu-make
in test modes, since they all require Automake.
* pygnulib/GLConfig.py: Add gnu_make argument to constructor.
(getGnuMake, setGnuMake, resetGnuMake): New methods for accessing the
gnu_make instance variable.
* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): Use the "+=" operator
with GNU Make and Automake. Transform conditionals to GNU Make syntax if
--gnu-make is in use. Use a Autoconf subprocess to define values and
check the return code for errors.
(GLEmiter.tests_Makefile_am): Likewise.
* pygnulib/GLImport.py (GLImport.actioncmd): Add "--gnu-make" to the
output comment if it is in use.
(GLImport.gnulib_comp): Don't require "AM_PROG_CC_C_O" when using GNU
Make.
* pygnulib/GLInfo.py (GLInfo.usage): Update help message to reflect
addition of --gnu-make.
* pygnulib/GLModuleSystem.py (GLModuleTable.transitive_closure): Don't
add Automake snippets as unconditional dependencies when using
--gnu-make.
Bruno Haible [Fri, 23 Feb 2024 12:07:48 +0000 (13:07 +0100)]
unistdio/*printf tests: Update expected test results regarding %n.
* tests/unistdio/test-u8-printf1.h (test_xfunction): If
NEED_PRINTF_WITH_N_DIRECTIVE is not defined, expect a NULL result in the
%n test.
* tests/unistdio/test-u16-printf1.h (test_xfunction): Likewise.
* tests/unistdio/test-u32-printf1.h (test_xfunction): Likewise.
* tests/unistdio/test-ulc-printf1.h (test_xfunction): Likewise.
Collin Funk [Thu, 22 Feb 2024 19:27:42 +0000 (11:27 -0800)]
gnulib-tool.py: Follow gnulib-tool changes, part 26.
Follow gnulib-tool change
2017-04-20 Bruno Haible <bruno@clisp.org>
verify tests: Fix spurious failure with parallel make.
* pygnulib/GLEmiter.py (GLEmiter.tests_Makefile_am): Emit initialization
of EXTRA_PROGRAMS so that the verify-tests module does not cause
Automake to warn about the use of "+=" instead of "=".
Bruno Haible [Thu, 22 Feb 2024 00:52:05 +0000 (01:52 +0100)]
c-strtof: New module.
* lib/c-strtod.h (c_strtof): New declaration.
* lib/c-strtod.c: Support FLOAT.
* lib/c-strtof.c: New file.
* m4/c-strtod.m4 (gl_C_STRTOF): New macro.
* modules/c-strtof: New file.
Bruno Haible [Thu, 22 Feb 2024 00:27:30 +0000 (01:27 +0100)]
strtof: Add tests.
* tests/test-strtof.c: New file, based on tests/test-strtod.c.
* tests/test-strtof1.sh: New file, based on tests/test-strtod1.sh.
* tests/test-strtof1.c: New file, based on tests/test-strtod1.c.
* modules/strtof-tests: New file, based on modules/strtod-tests.
Bruno Haible [Wed, 21 Feb 2024 21:45:47 +0000 (22:45 +0100)]
strtof: New module.
* lib/stdlib.in.h (strtof): New declaration.
* lib/strtod.c: Support USE_FLOAT.
* lib/strtof.c: New file.
* m4/strtof.m4: New file, based on m4/strtod.m4.
* m4/ldexpf.m4 (gl_CHECK_LDEXPF_NO_LIBM): New macro, based on
m4/ldexp.m4.
* m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize
GNULIB_STRTOF.
* modules/stdlib (Makefile.am): Substitute GNULIB_STRTOF, HAVE_STRTOF,
REPLACE_STRTOF.
* modules/strtof: New file.
* tests/test-stdlib-c++.cc (strtof): Check signature.
* doc/posix-functions/strtof.texi: Mention the new module and the bugs
that it fixes.
(gl_STDLIB_H_DEFAULTS): Initialize HAVE_STRTOF, REPLACE_STRTOF.