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/include
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/include')
-rw-r--r--newlib/libc/include/regex.h7
1 files changed, 4 insertions, 3 deletions
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