From ea9d80921f04e6f4f2f97f0984f002a98acd92b0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 20 Nov 2013 16:25:50 +0000 Subject: 2013-11-20 Chirayu Desai * libc/include/regex.h, libc/posix/regcomp.c, libc/posix/regerror.c, libc/posix/regex.3 libc/posix/regexec.c: Add restrict keyword. --- newlib/libc/posix/regex.3 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'newlib/libc/posix/regex.3') diff --git a/newlib/libc/posix/regex.3 b/newlib/libc/posix/regex.3 index d87164177..d0b45a8e7 100644 --- a/newlib/libc/posix/regex.3 +++ b/newlib/libc/posix/regex.3 @@ -51,16 +51,16 @@ .In sys/types.h .In regex.h .Ft int -.Fn regcomp "regex_t *preg" "const char *pattern" "int cflags" +.Fn regcomp "regex_t *restrict preg" "const char *_restrictpattern" "int cflags" .Ft int .Fo regexec -.Fa "const regex_t *preg" "const char *string" -.Fa "size_t nmatch" "regmatch_t pmatch[]" "int eflags" +.Fa "const regex_t *_restrict preg" "const char *_restrict string" +.Fa "size_t nmatch" "regmatch_t pmatch[_restrict]" "int eflags" .Fc .Ft size_t .Fo regerror -.Fa "int errcode" "const regex_t *preg" -.Fa "char *errbuf" "size_t errbuf_size" +.Fa "int errcode" "const regex_t *_restrict preg" +.Fa "char *_restrict errbuf" "size_t errbuf_size" .Fc .Ft void .Fn regfree "regex_t *preg" -- cgit v1.2.3