mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Updated __nonnull annotations for wcscat, wcsncat, wcscmp and wcsncmp [BZ #18265]
This patch adds __nonnull annotations for wcscat, wcsncat, wcscmp and wcsncmp. These added annotations match the annoations for strcat, strncat, strcmp, strncmp in glibc.
This commit is contained in:
parent
496405af79
commit
aeb47bbc06
@ -1,3 +1,11 @@
|
|||||||
|
2015-08-05 Daniel Marjamäki <daniel.marjamaki@evidente.se>
|
||||||
|
|
||||||
|
[BZ #18265]
|
||||||
|
* wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
|
||||||
|
(wcsncat): Likewise.
|
||||||
|
(wcscmp): Likewise.
|
||||||
|
(wcsncmp): Likewise.
|
||||||
|
|
||||||
2015-08-05 Mike Frysinger <vapier@gentoo.org>
|
2015-08-05 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* test-skeleton.c (usage): New function.
|
* test-skeleton.c (usage): New function.
|
||||||
|
5
NEWS
5
NEWS
@ -5,6 +5,11 @@ See the end for copying conditions.
|
|||||||
Please send GNU C library bug reports via <http://sourceware.org/bugzilla/>
|
Please send GNU C library bug reports via <http://sourceware.org/bugzilla/>
|
||||||
using `glibc' in the "product" field.
|
using `glibc' in the "product" field.
|
||||||
|
|
||||||
|
Version 2.23
|
||||||
|
|
||||||
|
* The following bugs are resolved with this release:
|
||||||
|
18265
|
||||||
|
|
||||||
Version 2.22
|
Version 2.22
|
||||||
|
|
||||||
* The following bugs are resolved with this release:
|
* The following bugs are resolved with this release:
|
||||||
|
@ -155,18 +155,19 @@ extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
|
|||||||
|
|
||||||
/* Append SRC onto DEST. */
|
/* Append SRC onto DEST. */
|
||||||
extern wchar_t *wcscat (wchar_t *__restrict __dest,
|
extern wchar_t *wcscat (wchar_t *__restrict __dest,
|
||||||
const wchar_t *__restrict __src) __THROW;
|
const wchar_t *__restrict __src)
|
||||||
|
__THROW __nonnull ((1, 2));
|
||||||
/* Append no more than N wide-characters of SRC onto DEST. */
|
/* Append no more than N wide-characters of SRC onto DEST. */
|
||||||
extern wchar_t *wcsncat (wchar_t *__restrict __dest,
|
extern wchar_t *wcsncat (wchar_t *__restrict __dest,
|
||||||
const wchar_t *__restrict __src, size_t __n)
|
const wchar_t *__restrict __src, size_t __n)
|
||||||
__THROW;
|
__THROW __nonnull ((1, 2));
|
||||||
|
|
||||||
/* Compare S1 and S2. */
|
/* Compare S1 and S2. */
|
||||||
extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2)
|
extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2)
|
||||||
__THROW __attribute_pure__;
|
__THROW __attribute_pure__ __nonnull ((1, 2));
|
||||||
/* Compare N wide-characters of S1 and S2. */
|
/* Compare N wide-characters of S1 and S2. */
|
||||||
extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
|
extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
|
||||||
__THROW __attribute_pure__;
|
__THROW __attribute_pure__ __nonnull ((1, 2));
|
||||||
__END_NAMESPACE_STD
|
__END_NAMESPACE_STD
|
||||||
|
|
||||||
#ifdef __USE_XOPEN2K8
|
#ifdef __USE_XOPEN2K8
|
||||||
|
Loading…
Reference in New Issue
Block a user