summaryrefslogtreecommitdiff
path: root/include/regexp.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-18 06:17:03 -0500
committerMike Frysinger <vapier@gentoo.org>2012-11-18 06:17:03 -0500
commit290e19f8147d9b3c0166d3520e718ae5603e4cef (patch)
tree3c77d58f8cd8115b861809560e644699341c14ee /include/regexp.h
parent266bdc1f623fe6fe489e5115e0f8ef723705d949 (diff)
drop support for pre ISO-C compilers
This drops __signed, __volatile, and __const. Only the latter was used in the code base, and for uClibc, not consistently. Much of the code used plain "const" which meant "__const" was useless. Really, the point of this is to stay in sync with what glibc did. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/regexp.h')
-rw-r--r--include/regexp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/regexp.h b/include/regexp.h
index 22894f2c8..17879aed1 100644
--- a/include/regexp.h
+++ b/include/regexp.h
@@ -102,7 +102,7 @@ extern char *locs;
on the macros. */
char *
compile (char *__restrict instring, char *__restrict expbuf,
- __const char *__restrict endbuf, int eof)
+ const char *__restrict endbuf, int eof)
{
char *__input_buffer = NULL;
size_t __input_size = 0;
@@ -215,14 +215,14 @@ compile (char *__restrict instring, char *__restrict expbuf,
found in the buffer starting at EXPBUF. `loc1' will return the
first character matched and `loc2' points to the next unmatched
character. */
-extern int step (__const char *__restrict __string,
- __const char *__restrict __expbuf) __THROW;
+extern int step (const char *__restrict __string,
+ const char *__restrict __expbuf) __THROW;
/* Match the beginning of STRING with the compiled regular expression
in EXPBUF. If the match is successful `loc2' will contain the
position of the first unmatched character. */
-extern int advance (__const char *__restrict __string,
- __const char *__restrict __expbuf) __THROW;
+extern int advance (const char *__restrict __string,
+ const char *__restrict __expbuf) __THROW;
#endif