]> Savannah Git Hosting - gnulib.git/commit
strtol: Work around a bug on native Windows and Minix.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Apr 2021 18:42:13 +0000 (20:42 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Apr 2021 18:42:13 +0000 (20:42 +0200)
commit705c23696fcaf5bd9d4f0aaecd106b4a2c1417b2
tree44bd091848a15c9d7bf43f6230982491bd449709
parent837ffb5ee4585ce6947e1013d03c7d6f21cbd635
strtol: Work around a bug on native Windows and Minix.

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