Add restrict qualifiers where C99 permits them. All of these already had
restrict qualifiers on their prototypes in <wchar.h>.
This commit is contained in:
parent
c58bfeb53b
commit
9c261371ec
@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
wchar_t *
|
||||
wcscat(s1, s2)
|
||||
wchar_t *s1;
|
||||
const wchar_t *s2;
|
||||
wchar_t * __restrict s1;
|
||||
const wchar_t * __restrict s2;
|
||||
{
|
||||
wchar_t *p;
|
||||
wchar_t *q;
|
||||
|
@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
wchar_t *
|
||||
wcscpy(s1, s2)
|
||||
wchar_t *s1;
|
||||
const wchar_t *s2;
|
||||
wchar_t * __restrict s1;
|
||||
const wchar_t * __restrict s2;
|
||||
{
|
||||
wchar_t *p;
|
||||
const wchar_t *q;
|
||||
|
@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
wchar_t *
|
||||
wcsncat(s1, s2, n)
|
||||
wchar_t *s1;
|
||||
const wchar_t *s2;
|
||||
wchar_t * __restrict s1;
|
||||
const wchar_t * __restrict s2;
|
||||
size_t n;
|
||||
{
|
||||
wchar_t *p;
|
||||
|
@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
wchar_t *
|
||||
wcsncpy(s1, s2, n)
|
||||
wchar_t *s1;
|
||||
const wchar_t *s2;
|
||||
wchar_t * __restrict s1;
|
||||
const wchar_t * __restrict s2;
|
||||
size_t n;
|
||||
{
|
||||
wchar_t *p;
|
||||
|
@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
wchar_t *
|
||||
wcsstr(big, little)
|
||||
const wchar_t *big;
|
||||
const wchar_t *little;
|
||||
const wchar_t * __restrict big;
|
||||
const wchar_t * __restrict little;
|
||||
{
|
||||
const wchar_t *p;
|
||||
const wchar_t *q;
|
||||
|
@ -40,8 +40,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
wchar_t *
|
||||
wmemcpy(d, s, n)
|
||||
wchar_t *d;
|
||||
const wchar_t *s;
|
||||
wchar_t * __restrict d;
|
||||
const wchar_t * __restrict s;
|
||||
size_t n;
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user