From ad5ac67c75cb6f81419d285b0cf5e7bd559c2098 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 7 Sep 2002 04:03:28 +0000 Subject: Add restrict qualifiers where C99 permits them. All of these already had restrict qualifiers on their prototypes in . --- lib/libc/string/wcscat.c | 4 ++-- lib/libc/string/wcscpy.c | 4 ++-- lib/libc/string/wcsncat.c | 4 ++-- lib/libc/string/wcsncpy.c | 4 ++-- lib/libc/string/wcsstr.c | 4 ++-- lib/libc/string/wmemcpy.c | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) (limited to 'lib') diff --git a/lib/libc/string/wcscat.c b/lib/libc/string/wcscat.c index 62752ee..1568c2c 100644 --- a/lib/libc/string/wcscat.c +++ b/lib/libc/string/wcscat.c @@ -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; diff --git a/lib/libc/string/wcscpy.c b/lib/libc/string/wcscpy.c index fbe56d6..9e72738 100644 --- a/lib/libc/string/wcscpy.c +++ b/lib/libc/string/wcscpy.c @@ -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; diff --git a/lib/libc/string/wcsncat.c b/lib/libc/string/wcsncat.c index 11e0281..d102788 100644 --- a/lib/libc/string/wcsncat.c +++ b/lib/libc/string/wcsncat.c @@ -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; diff --git a/lib/libc/string/wcsncpy.c b/lib/libc/string/wcsncpy.c index 8f15565..dc77ee3 100644 --- a/lib/libc/string/wcsncpy.c +++ b/lib/libc/string/wcsncpy.c @@ -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; diff --git a/lib/libc/string/wcsstr.c b/lib/libc/string/wcsstr.c index 546ae9b..8d37979 100644 --- a/lib/libc/string/wcsstr.c +++ b/lib/libc/string/wcsstr.c @@ -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; diff --git a/lib/libc/string/wmemcpy.c b/lib/libc/string/wmemcpy.c index 787e07c..6d11e45 100644 --- a/lib/libc/string/wmemcpy.c +++ b/lib/libc/string/wmemcpy.c @@ -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; { -- cgit v1.1