diff options
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/wcscasecmp.c | 9 | ||||
-rw-r--r-- | wcsmbs/wcsncase.c | 10 |
2 files changed, 4 insertions, 15 deletions
diff --git a/wcsmbs/wcscasecmp.c b/wcsmbs/wcscasecmp.c index 043a8cd268..d82d0838ba 100644 --- a/wcsmbs/wcscasecmp.c +++ b/wcsmbs/wcscasecmp.c @@ -35,21 +35,16 @@ #endif #ifdef USE_IN_EXTENDED_LOCALE_MODEL -# define LOCALE_PARAM , loc -# define LOCALE_PARAM_DECL __locale_t loc; +# define LOCALE_PARAM , __locale_t loc #else # define LOCALE_PARAM -# define LOCALE_PARAM_DECL #endif /* Compare S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ int -__wcscasecmp (s1, s2 LOCALE_PARAM) - const wchar_t *s1; - const wchar_t *s2; - LOCALE_PARAM_DECL +__wcscasecmp (const wchar_t *s1, const wchar_t *s2 LOCALE_PARAM) { wint_t c1, c2; diff --git a/wcsmbs/wcsncase.c b/wcsmbs/wcsncase.c index 25507d80d7..0c92d02270 100644 --- a/wcsmbs/wcsncase.c +++ b/wcsmbs/wcsncase.c @@ -37,11 +37,9 @@ #endif #ifdef USE_IN_EXTENDED_LOCALE_MODEL -# define LOCALE_PARAM , loc -# define LOCALE_PARAM_DECL __locale_t loc; +# define LOCALE_PARAM , __locale_t loc #else # define LOCALE_PARAM -# define LOCALE_PARAM_DECL #endif /* Compare no more than N wide characters of S1 and S2, @@ -49,11 +47,7 @@ greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ int -__wcsncasecmp (s1, s2, n LOCALE_PARAM) - const wchar_t *s1; - const wchar_t *s2; - size_t n; - LOCALE_PARAM_DECL +__wcsncasecmp (const wchar_t *s1, const wchar_t *s2, size_t n LOCALE_PARAM) { wint_t c1, c2; |