Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions libc/include/wchar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ macros:
- macro_name: NULL
macro_header: null-macro.h
types:
- type_name: FILE
- type_name: size_t
- type_name: wint_t
- type_name: wchar_t
Expand Down Expand Up @@ -104,9 +105,9 @@ functions:
- name: wmemset
standards:
- stdc
return_type: wchar_t*
return_type: wchar_t *
arguments:
- type: wchar_t*
- type: wchar_t *
- type: wchar_t
- type: size_t
- name: wcschr
Expand Down Expand Up @@ -246,7 +247,7 @@ functions:
- type: const wchar_t **__restrict
- type: size_t
- type: size_t
- type: mbstate_t
- type: mbstate_t *__restrict
- name: wcsrtombs
standards:
- stdc
Expand All @@ -255,7 +256,7 @@ functions:
- type: char *__restrict
- type: const wchar_t **__restrict
- type: size_t
- type: mbstate_t
- type: mbstate_t *__restrict
- name: wcrtomb
standards:
- stdc
Expand Down Expand Up @@ -299,7 +300,7 @@ functions:
arguments:
- type: wchar_t *__restrict
- type: const wchar_t *__restrict
- type: wchar_t** __restrict
- type: wchar_t **__restrict
- name: wcpcpy
standards:
- stdc
Expand Down
2 changes: 1 addition & 1 deletion libc/src/wchar/wcsnrtombs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace LIBC_NAMESPACE_DECL {

LLVM_LIBC_FUNCTION(size_t, wcsnrtombs,
(char *__restrict s, const wchar_t **__restrict pwcs,
size_t nwc, size_t len, mbstate_t *ps)) {
size_t nwc, size_t len, mbstate_t *__restrict ps)) {
LIBC_CRASH_ON_NULLPTR(pwcs);
static internal::mbstate internal_mbstate;
auto result = internal::wcsnrtombs(
Expand Down
2 changes: 1 addition & 1 deletion libc/src/wchar/wcsnrtombs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace LIBC_NAMESPACE_DECL {

size_t wcsnrtombs(char *__restrict s, const wchar_t **__restrict pwcs,
size_t nwc, size_t len, mbstate_t *ps);
size_t nwc, size_t len, mbstate_t *__restrict ps);

} // namespace LIBC_NAMESPACE_DECL

Expand Down
2 changes: 1 addition & 1 deletion libc/src/wchar/wcsrtombs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace LIBC_NAMESPACE_DECL {

LLVM_LIBC_FUNCTION(size_t, wcsrtombs,
(char *__restrict s, const wchar_t **__restrict pwcs,
size_t n, mbstate_t *ps)) {
size_t n, mbstate_t *__restrict ps)) {
LIBC_CRASH_ON_NULLPTR(pwcs);
static internal::mbstate internal_mbstate;
auto result = internal::wcsnrtombs(
Expand Down
2 changes: 1 addition & 1 deletion libc/src/wchar/wcsrtombs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace LIBC_NAMESPACE_DECL {

size_t wcsrtombs(char *__restrict s, const wchar_t **__restrict pwcs, size_t n,
mbstate_t *ps);
mbstate_t *__restrict ps);

} // namespace LIBC_NAMESPACE_DECL

Expand Down
Loading