Temporarily enable wcsftime and wcsxfrm

This commit is contained in:
Wildan M
2026-01-27 15:27:45 +07:00
parent 2c522c355f
commit 1acf1d83cc
2 changed files with 18 additions and 6 deletions
+11 -1
View File
@@ -1,9 +1,19 @@
sys_includes = ["stddef.h", "stdint.h", "stdio.h", "time.h", "bits/wchar.h", "features.h"]
sys_includes = [
"stddef.h",
"stdint.h",
"stdio.h",
"time.h",
"bits/wchar.h",
"features.h",
]
include_guard = "_RELIBC_WCHAR_H"
language = "C"
style = "Type"
no_includes = true
cpp_compat = true
[export.rename]
"tm" = "struct tm"
[enum]
prefix_with_name = true
+7 -5
View File
@@ -550,14 +550,15 @@ pub unsafe extern "C" fn wcscspn(wcs: *const wchar_t, set: *const wchar_t) -> si
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcsftime.html>.
// #[unsafe(no_mangle)]
#[unsafe(no_mangle)]
pub extern "C" fn wcsftime(
wcs: *mut wchar_t,
maxsize: size_t,
format: *const wchar_t,
timptr: *mut tm,
timptr: *const tm,
) -> size_t {
unimplemented!();
todo_skip!(0, "wcsftime is not implemented");
0
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcslen.html>.
@@ -1014,9 +1015,10 @@ pub unsafe extern "C" fn wcswidth(pwcs: *const wchar_t, n: size_t) -> c_int {
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcsxfrm.html>.
// #[unsafe(no_mangle)]
#[unsafe(no_mangle)]
pub extern "C" fn wcsxfrm(ws1: *mut wchar_t, ws2: *const wchar_t, n: size_t) -> size_t {
unimplemented!();
todo_skip!(0, "wcsxfrm is not implemented");
0
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wctob.html>.