diff options
author | Stephan T. Lavavej <stl@microsoft.com> | 2019-10-23 11:45:36 -0700 |
---|---|---|
committer | Stephan T. Lavavej <stl@microsoft.com> | 2019-10-23 11:49:43 -0700 |
commit | 7c9844b66e5e0cca1424e0688b4384d4ec23325a (patch) | |
tree | 5f914be387c2769f1fe29758006e4bae80558b0f /libcxx/src/support | |
parent | bf2975eca0a1176b0256ba538debf121c2f7f11c (diff) | |
download | bcm5719-llvm-7c9844b66e5e0cca1424e0688b4384d4ec23325a.tar.gz bcm5719-llvm-7c9844b66e5e0cca1424e0688b4384d4ec23325a.zip |
[libcxx][NFC] Strip trailing whitespace, fix typo.
Diffstat (limited to 'libcxx/src/support')
-rw-r--r-- | libcxx/src/support/solaris/xlocale.cpp | 2 | ||||
-rw-r--r-- | libcxx/src/support/win32/support.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libcxx/src/support/solaris/xlocale.cpp b/libcxx/src/support/solaris/xlocale.cpp index b6a2bfe2161..d68a39f4dfe 100644 --- a/libcxx/src/support/solaris/xlocale.cpp +++ b/libcxx/src/support/solaris/xlocale.cpp @@ -25,7 +25,7 @@ int iswxdigit_l(wint_t __c, locale_t __l) { // FIXME: This disregards the locale, which is Very Wrong #define vsnprintf_l(__s, __n, __l, __format, __va) \ - vsnprintf(__s, __n, __format, __va) + vsnprintf(__s, __n, __format, __va) int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) { diff --git a/libcxx/src/support/win32/support.cpp b/libcxx/src/support/win32/support.cpp index 4c9a4b3a507..d156e02e3e8 100644 --- a/libcxx/src/support/win32/support.cpp +++ b/libcxx/src/support/win32/support.cpp @@ -40,13 +40,13 @@ int __libcpp_vasprintf( char **sptr, const char *__restrict format, va_list ap ) return count; } -// Returns >= 0: the number of wide characters found in the -// multi byte sequence src (of src_size_bytes), that fit in the buffer dst +// Returns >= 0: the number of wide characters found in the +// multi byte sequence src (of src_size_bytes), that fit in the buffer dst // (of max_dest_chars elements size). The count returned excludes the -// null terminator. When dst is NULL, no characters are copied +// null terminator. When dst is NULL, no characters are copied // and no "out" parameters are updated. // Returns (size_t) -1: an incomplete sequence encountered. -// Leaves *src pointing the next character to convert or NULL +// Leaves *src pointing the next character to convert or NULL // if a null character was converted from *src. size_t mbsnrtowcs( wchar_t *__restrict dst, const char **__restrict src, size_t src_size_bytes, size_t max_dest_chars, mbstate_t *__restrict ps ) @@ -103,7 +103,7 @@ size_t mbsnrtowcs( wchar_t *__restrict dst, const char **__restrict src, // Returns >= 0: the number of bytes in the sequence // converted from *src, excluding the null terminator. // Returns size_t(-1) if an error occurs, also sets errno. -// If dst is NULL dst_size_bytes is ignored and no bytes are copied to dst +// If dst is NULL dst_size_bytes is ignored and no bytes are copied to dst // and no "out" parameters are updated. size_t wcsnrtombs( char *__restrict dst, const wchar_t **__restrict src, size_t max_source_chars, size_t dst_size_bytes, mbstate_t *__restrict ps ) @@ -132,7 +132,7 @@ size_t wcsnrtombs( char *__restrict dst, const wchar_t **__restrict src, result = wcrtomb_s( &char_size, dst + dest_converted, dest_remaining, c, ps); else result = wcrtomb_s( &char_size, NULL, 0, c, ps); - // If result is zero there is no error and char_size contains the + // If result is zero there is no error and char_size contains the // size of the multi-byte-sequence converted. // Otherwise result indicates an errno type error. if ( result == no_error ) { |