]> Savannah Git Hosting - gnulib.git/commit
strtoul: Work around a bug on native Windows and Minix.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Apr 2021 17:56:28 +0000 (19:56 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Apr 2021 18:03:36 +0000 (20:03 +0200)
commitcbff21f910e678340da2cadf0bbf2bdc191c0eb9
treee2d71678fe7d114328bb500dbbb1512f3e308b4d
parent022521230ffa940a5428ee2a50120dc882920b16
strtoul: Work around a bug on native Windows and Minix.

Reported by Eric Blake <eblake@redhat.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00082.html>.

* lib/stdlib.in.h (strtoul): New declaration.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtoul is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOUL, HAVE_STRTOUL,
REPLACE_STRTOUL.
* m4/strtoul.m4 (gl_FUNC_STRTOUL): Require gl_STDLIB_H_DEFAULTS. Test
whether strtoul works. Set REPLACE_STRTOUL.
* modules/stdlib (Makefile.am): Substitute GNULIB_STRTOUL, HAVE_STRTOUL,
REPLACE_STRTOUL.
* modules/strtoul (Status, Notice): Remove.
(Depends-on): Add stdlib.
(configure.ac): Test HAVE_STRTOUL and REPLACE_STRTOUL. Invoke
gl_STDLIB_MODULE_INDICATOR.
* tests/test-strtoul.c (main): Add tests of hexadecimal integer syntax.
* doc/posix-functions/strtoul.texi: Mention the bug.
ChangeLog
doc/posix-functions/strtoul.texi
lib/stdlib.in.h
m4/stdlib_h.m4
m4/strtoul.m4
modules/stdlib
modules/strtoul
tests/test-strtoul.c