]> Savannah Git Hosting - gnulib.git/commit
setlocale-null: Make API more useful.
authorBruno Haible <bruno@clisp.org>
Wed, 18 Dec 2019 15:30:09 +0000 (16:30 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 18 Dec 2019 15:33:48 +0000 (16:33 +0100)
commit3a310962887322e0b94708984886de643f94f8a5
treed17f7545cbae02461db7cc47a219396a6faf7a33
parentf7efd84ea3e6ff2be5932b5213ac60c5c022f5b9
setlocale-null: Make API more useful.

* lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
callers changed.
(setlocale_null): New declaration.
* lib/setlocale_null.c (setlocale_null_androidfix): New function,
extracted from setlocale_null_unlocked.
(setlocale_null_unlocked): Invoke it.
(setlocale_null_r): Renamed from setlocale_null.
(setlocale_null): New function, extracted from setlocale_mtsafe in
setlocale.c.
* lib/setlocale.c: Don't include <errno.h>.
(setlocale_mtsafe): Invoke setlocale_null.
* lib/setlocale-lock.c: Update comments.
* doc/posix-functions/setlocale.texi: Mention both functions.
12 files changed:
ChangeLog
doc/posix-functions/setlocale.texi
lib/duplocale.c
lib/hard-locale.c
lib/locale.in.h
lib/nl_langinfo.c
lib/setlocale-lock.c
lib/setlocale.c
lib/setlocale_null.c
tests/test-setlocale_null-all.c
tests/test-setlocale_null-one.c
tests/test-setlocale_null.c