aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-09-07 04:03:28 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-09-07 04:03:28 +0000
commit9c261371ec47f7816494872a643102749cebefc3 (patch)
treea279e2290fe85a207d939cd961e8e37ddb3a6aee
parentc58bfeb53b9121271d8c3be6d018e1e181c300fa (diff)
downloadsrc-9c261371ec47f7816494872a643102749cebefc3.tar.gz
src-9c261371ec47f7816494872a643102749cebefc3.zip
Add restrict qualifiers where C99 permits them. All of these already had
restrict qualifiers on their prototypes in <wchar.h>.
Notes
Notes: svn path=/head/; revision=103059
-rw-r--r--lib/libc/string/wcscat.c4
-rw-r--r--lib/libc/string/wcscpy.c4
-rw-r--r--lib/libc/string/wcsncat.c4
-rw-r--r--lib/libc/string/wcsncpy.c4
-rw-r--r--lib/libc/string/wcsstr.c4
-rw-r--r--lib/libc/string/wmemcpy.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/string/wcscat.c b/lib/libc/string/wcscat.c
index 62752eee9799..1568c2ce1d30 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 fbe56d61c3d6..9e72738ffed4 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 11e0281c6b3d..d10278892847 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 8f155650a949..dc77ee377acc 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 546ae9b9a963..8d37979f30e3 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 787e07c83e64..6d11e459de45 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;
{