[libc] Fix bugs found when testing with all headers (#144049)
Fixes a couple of bugs found when building. The PR to enable the headers can be found here: #144114. - math.yaml: float128 guard - wchar.yaml: __restrict keyword order
This commit is contained in:
@@ -734,7 +734,7 @@ functions:
|
||||
- type: float128
|
||||
- type: float128
|
||||
- type: float128
|
||||
guards: LIBC_TYPES_HAS_FLOAT128
|
||||
guard: LIBC_TYPES_HAS_FLOAT128
|
||||
- name: ffmal
|
||||
standards:
|
||||
- stdc
|
||||
|
||||
@@ -109,8 +109,8 @@ functions:
|
||||
- stdc
|
||||
return_type: wchar_t *
|
||||
arguments:
|
||||
- type: __restrict wchar_t *
|
||||
- type: const __restrict wchar_t *
|
||||
- type: wchar_t *__restrict
|
||||
- type: const wchar_t *__restrict
|
||||
- type: size_t
|
||||
- name: wmemmove
|
||||
standards:
|
||||
@@ -125,16 +125,16 @@ functions:
|
||||
- stdc
|
||||
return_type: wchar_t *
|
||||
arguments:
|
||||
- type: __restrict wchar_t *
|
||||
- type: const __restrict wchar_t *
|
||||
- type: wchar_t *__restrict
|
||||
- type: const wchar_t *__restrict
|
||||
- type: size_t
|
||||
- name: wcscat
|
||||
standards:
|
||||
- stdc
|
||||
return_type: wchar_t *
|
||||
arguments:
|
||||
- type: __restrict wchar_t *
|
||||
- type: const __restrict wchar_t *
|
||||
- type: wchar_t *__restrict
|
||||
- type: const wchar_t *__restrict
|
||||
- name: wcsstr
|
||||
standards:
|
||||
- stdc
|
||||
@@ -147,13 +147,13 @@ functions:
|
||||
- stdc
|
||||
return_type: wchar_t *
|
||||
arguments:
|
||||
- type: __restrict wchar_t *
|
||||
- type: const __restrict wchar_t *
|
||||
- type: wchar_t *__restrict
|
||||
- type: const wchar_t *__restrict
|
||||
- type: size_t
|
||||
- name: wcscpy
|
||||
standards:
|
||||
- stdc
|
||||
return_type: wchar_t *
|
||||
arguments:
|
||||
- type: __restrict wchar_t *
|
||||
- type: const __restrict wchar_t *
|
||||
- type: wchar_t *__restrict
|
||||
- type: const wchar_t *__restrict
|
||||
|
||||
@@ -124,7 +124,7 @@ TEST_F(LlvmLibcPrintfConverterTest, StringConversionSimple) {
|
||||
TEST_F(LlvmLibcPrintfConverterTest, StringConversionPrecisionHigh) {
|
||||
LIBC_NAMESPACE::printf_core::FormatSection high_precision_conv;
|
||||
high_precision_conv.has_conv = true;
|
||||
high_precision_conv.raw_string = "%4s";
|
||||
high_precision_conv.raw_string = "%.4s";
|
||||
high_precision_conv.conv_name = 's';
|
||||
high_precision_conv.precision = 4;
|
||||
high_precision_conv.conv_val_ptr = const_cast<char *>("456");
|
||||
|
||||
Reference in New Issue
Block a user