diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-20 16:25:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-20 16:25:50 +0000 |
commit | ea9d80921f04e6f4f2f97f0984f002a98acd92b0 (patch) | |
tree | 5258d827c2b2459da08583d6489b18c3323d8e13 /newlib/libc/include/regex.h | |
parent | a2c4eac5d02f3d35dc6c450b9f0bb6e71ce916cc (diff) | |
download | cygnal-ea9d80921f04e6f4f2f97f0984f002a98acd92b0.tar.gz cygnal-ea9d80921f04e6f4f2f97f0984f002a98acd92b0.tar.bz2 cygnal-ea9d80921f04e6f4f2f97f0984f002a98acd92b0.zip |
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/regex.h')
-rw-r--r-- | newlib/libc/include/regex.h | 7 |
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 |