fix mismatched signatures for strtod_l family
authorRich Felker <dalias@aerifal.cx>
Thu, 9 Dec 2021 20:35:13 +0000 (15:35 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 9 Dec 2021 20:35:13 +0000 (15:35 -0500)
commit8d404733e1314ef633aa09a90865e94fe711b4ca
tree7655aae5d6622c3505c92f4a444b3363614893a2
parent98e688a9da5e7b2925dda17a2d6820dddf1fb287
fix mismatched signatures for strtod_l family

strtod_l, strtof_l, and strtold_l originally existed only as
glibc-ABI-compat symbols. as noted in the commit which added them,
17a60f9d327c6f8b5707a06f9497d846e75c01f2, making them aliases for the
non-_l functions was a hack and not appropriate if they ever became
public API.

unfortunately, commit 35eb1a1a9b97577e113240cd65bf9fc44b8df030 did
make them public without undoing the hack. fix that now by moving the
the _l functions to their own file as wrappers that just throw away
the locale_t argument.
src/locale/strtod_l.c [new file with mode: 0644]
src/stdlib/strtod.c