Revert "Convert strtold to Rust"

This reverts commit 08485648f6.
This commit is contained in:
Jeremy Soller
2026-01-15 18:31:47 -07:00
parent c8b4a03b45
commit 40c9c14ea8
6 changed files with 42 additions and 10 deletions
-3
View File
@@ -5,8 +5,5 @@ style = "Type"
no_includes = true
cpp_compat = true
[export.rename]
"c_longdouble" = "long double"
[enum]
prefix_with_name = true
+1 -5
View File
@@ -1479,11 +1479,7 @@ pub unsafe extern "C" fn strtol(s: *const c_char, endptr: *mut *mut c_char, base
)
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtold.html>.
#[unsafe(no_mangle)]
pub unsafe extern "C" fn strtold(s: *const c_char, endptr: *mut *mut c_char) -> c_longdouble {
strto_float_impl!(c_longdouble, s, endptr)
}
// TODO: strtold(), when long double is available
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtol.html>.
#[unsafe(no_mangle)]