diff options
| author | Xin LI <delphij@FreeBSD.org> | 2007-06-11 03:05:54 +0000 | 
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2007-06-11 03:05:54 +0000 | 
| commit | 54a648d1e5d7baa2e89f141baa263d1e7df70838 (patch) | |
| tree | 5849b25e51eef9dee63d6cd51bae20607313a4be /lib/libc/regex/regexec.c | |
| parent | 41b23fe0b29bc3f6c71f4376d01145b9ead3d1da (diff) | |
Notes
Diffstat (limited to 'lib/libc/regex/regexec.c')
| -rw-r--r-- | lib/libc/regex/regexec.c | 29 | 
1 files changed, 11 insertions, 18 deletions
| diff --git a/lib/libc/regex/regexec.c b/lib/libc/regex/regexec.c index a6a3c4853a7e5..1cf87b810471c 100644 --- a/lib/libc/regex/regexec.c +++ b/lib/libc/regex/regexec.c @@ -62,12 +62,7 @@ __FBSDID("$FreeBSD$");  static int nope __unused = 0;	/* for use in asserts; shuts lint up */  static __inline size_t -xmbrtowc(wi, s, n, mbs, dummy) -wint_t *wi; -const char *s; -size_t n; -mbstate_t *mbs; -wint_t dummy; +xmbrtowc(wint_t *wi, const char *s, size_t n, mbstate_t *mbs, wint_t dummy)  {  	size_t nr;  	wchar_t wc; @@ -87,12 +82,11 @@ wint_t dummy;  }  static __inline size_t -xmbrtowc_dummy(wi, s, n, mbs, dummy) -wint_t *wi; -const char *s; -size_t n __unused; -mbstate_t *mbs __unused; -wint_t dummy __unused; +xmbrtowc_dummy(wint_t *wi, +		const char *s, +		size_t n __unused, +		mbstate_t *mbs __unused, +		wint_t dummy __unused)  {  	if (wi != NULL) @@ -210,12 +204,11 @@ wint_t dummy __unused;   * have been prototyped.   */  int				/* 0 success, REG_NOMATCH failure */ -regexec(preg, string, nmatch, pmatch, eflags) -const regex_t * __restrict preg; -const char * __restrict string; -size_t nmatch; -regmatch_t pmatch[__restrict]; -int eflags; +regexec(const regex_t * __restrict preg, +	const char * __restrict string, +	size_t nmatch, +	regmatch_t pmatch[__restrict], +	int eflags)  {  	struct re_guts *g = preg->re_g;  #ifdef REDEBUG | 
