Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-20 20:25:50 +0400
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-20 20:25:50 +0400
commitea9d80921f04e6f4f2f97f0984f002a98acd92b0 (patch)
tree5258d827c2b2459da08583d6489b18c3323d8e13 /newlib/libc/posix/regerror.c
parenta2c4eac5d02f3d35dc6c450b9f0bb6e71ce916cc (diff)
2013-11-20 Chirayu Desai <chirayudesai1@gmail.com>
* libc/include/regex.h, libc/posix/regcomp.c, libc/posix/regerror.c, libc/posix/regex.3 libc/posix/regexec.c: Add restrict keyword.
Diffstat (limited to 'newlib/libc/posix/regerror.c')
-rw-r--r--newlib/libc/posix/regerror.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/posix/regerror.c b/newlib/libc/posix/regerror.c
index 3ae1c2586..a48d37c72 100644
--- a/newlib/libc/posix/regerror.c
+++ b/newlib/libc/posix/regerror.c
@@ -107,14 +107,15 @@ static struct rerr {
/*
- regerror - the interface to error numbers
- = extern size_t regerror(int, const regex_t *, char *, size_t);
+ = extern size_t regerror(int, const regex_t *__restrict,
+ = char *__restrict, size_t);
*/
/* ARGSUSED */
size_t
regerror(errcode, preg, errbuf, errbuf_size)
int errcode;
-const regex_t *preg;
-char *errbuf;
+const regex_t *__restrict preg;
+char *__restrict errbuf;
size_t errbuf_size;
{
struct rerr *r;