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/posix/regexec.c | |
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/posix/regexec.c')
-rw-r--r-- | newlib/libc/posix/regexec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/posix/regexec.c b/newlib/libc/posix/regexec.c index 98f5ef611..6e39e9ead 100644 --- a/newlib/libc/posix/regexec.c +++ b/newlib/libc/posix/regexec.c @@ -140,8 +140,8 @@ static int nope = 0; /* for use in asserts; shuts lint up */ /* - regexec - interface for matching - = extern int regexec(const regex_t *, const char *, size_t, \ - = regmatch_t [], int); + = extern int regexec(const regex_t *__restrict, const char *__restrict, + = size_t, regmatch_t [__restrict], int); = #define REG_NOTBOL 00001 = #define REG_NOTEOL 00002 = #define REG_STARTEND 00004 @@ -155,10 +155,10 @@ static int nope = 0; /* for use in asserts; shuts lint up */ */ int /* 0 success, REG_NOMATCH failure */ regexec(preg, string, nmatch, pmatch, eflags) -const regex_t *preg; -const char *string; +const regex_t *__restrict preg; +const char *__restrict string; size_t nmatch; -regmatch_t pmatch[]; +regmatch_t pmatch[__restrict]; int eflags; { struct re_guts *g = preg->re_g; |