summaryrefslogtreecommitdiffstats
path: root/newlib/libc/posix/regcomp.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-20 16:25:50 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-20 16:25:50 +0000
commitea9d80921f04e6f4f2f97f0984f002a98acd92b0 (patch)
tree5258d827c2b2459da08583d6489b18c3323d8e13 /newlib/libc/posix/regcomp.c
parenta2c4eac5d02f3d35dc6c450b9f0bb6e71ce916cc (diff)
downloadcygnal-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/posix/regcomp.c')
-rw-r--r--newlib/libc/posix/regcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/posix/regcomp.c b/newlib/libc/posix/regcomp.c
index bd90d2cdf..002f978cd 100644
--- a/newlib/libc/posix/regcomp.c
+++ b/newlib/libc/posix/regcomp.c
@@ -174,7 +174,7 @@ static int never = 0; /* for use in asserts; shuts lint up */
/*
- regcomp - interface for parser and compilation
- = extern int regcomp(regex_t *, const char *, int);
+ = extern int regcomp(regex_t *__restrict, const char *__restrict, int);
= #define REG_BASIC 0000
= #define REG_EXTENDED 0001
= #define REG_ICASE 0002
@@ -186,8 +186,8 @@ static int never = 0; /* for use in asserts; shuts lint up */
*/
int /* 0 success, otherwise REG_something */
regcomp(preg, pattern, cflags)
-regex_t *preg;
-const char *pattern;
+regex_t *__restrict preg;
+const char *__restrict pattern;
int cflags;
{
struct parse pa;