mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
1999-12-30 Ulrich Drepper <drepper@cygnus.com> * wcsmbs/wcscoll.c: Use multibyte character version. * wcsmbs/wcsxfrm.c: Likewise. * string/strcoll.c: Prepare to be used for the wide character version. * string/strxfrm.c: Likewise. * locale/weightwc.h: New file.
This commit is contained in:
@ -19,26 +19,18 @@
|
||||
|
||||
#include <wchar.h>
|
||||
|
||||
#define STRING_TYPE wchar_t
|
||||
#define USTRING_TYPE wint_t
|
||||
#ifdef USE_IN_EXTENDED_LOCALE_MODEL
|
||||
# define STRCOLL __wcscoll_l
|
||||
#else
|
||||
# define STRCOLL wcscoll
|
||||
#endif
|
||||
#define STRCMP wcscmp
|
||||
#define STRLEN wcslen
|
||||
#define WEIGHT_H "../locale/weightwc.h"
|
||||
#define SUFFIX WC
|
||||
#define L(arg) L##arg
|
||||
#define WIDE_CHAR_VERSION 1
|
||||
|
||||
|
||||
#ifndef USE_IN_EXTENDED_LOCALE_MODEL
|
||||
int
|
||||
STRCOLL (s1, s2)
|
||||
const wchar_t *s1;
|
||||
const wchar_t *s2;
|
||||
#else
|
||||
int
|
||||
STRCOLL (s1, s2, l)
|
||||
const wchar_t *s1;
|
||||
const wchar_t *s2;
|
||||
__locale_t l;
|
||||
#endif
|
||||
{
|
||||
return STRCMP (s1, s2);
|
||||
}
|
||||
#include "../string/strcoll.c"
|
||||
|
Reference in New Issue
Block a user