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/include/regex.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'newlib/libc/include/regex.h') diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h index 2ac78f4ca..fa3e26879 100644 --- a/newlib/libc/include/regex.h +++ b/newlib/libc/include/regex.h @@ -93,9 +93,10 @@ typedef struct { #define REG_BACKR 02000 /* force use of backref code */ __BEGIN_DECLS -int regcomp(regex_t *, const char *, int); -size_t regerror(int, const regex_t *, char *, size_t); -int regexec(const regex_t *, const char *, size_t, regmatch_t [], int); +int regcomp(regex_t *__restrict, const char *__restrict, int); +size_t regerror(int, const regex_t *__restrict, char *__restrict, size_t); +int regexec(const regex_t *__restrict, const char *__restrict, + size_t, regmatch_t [__restrict], int); void regfree(regex_t *); __END_DECLS -- cgit v1.2.3