Support defining strtof32, wcstof32 aliases

System Internals / glibc - Joseph Myers [codesourcery.com] - 6 December 2017 23:06 EST

This patch adds support for defining strtof32, wcstof32, strtof32_l and wcstof32_l functions as aliases of the corresponding float functions when _Float32 support is enabled.

Tested for x86_64; also tested with build-many-glibcs.py in conjunction with other _Float32 changes.

- stdlib/strtof.c: Include [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
- stdlib/strtof_l.c: Include [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR].

fb1ca2aa3e Support defining strtof32, wcstof32 aliases.
ChangeLog | 15 +++++++++++++++
stdlib/strtof.c | 17 +++++++++++++++++
stdlib/strtof_l.c | 17 +++++++++++++++++
3 files changed, 49 insertions(+)

Upstream: sourceware.org


  • Share