提交 4b0306c8 编写于 作者: R Rich Felker

prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols

上级 17a60f9d
#include <string.h>
#include <locale.h>
#include "libc.h"
int strcoll(const char *l, const char *r)
int __strcoll_l(const char *l, const char *r, locale_t loc)
{
return strcmp(l, r);
}
int strcoll(const char *l, const char *r)
{
return __strcoll_l(l, r, LC_GLOBAL_LOCALE);
}
weak_alias(__strcoll_l, strcoll_l);
#include <string.h>
#include <locale.h>
int strcoll_l(const char *l, const char *r, locale_t loc)
{
return strcoll(l, r);
}
#include <wchar.h>
#include <locale.h>
#include "libc.h"
/* FIXME: stub */
int wcscoll(const wchar_t *l, const wchar_t *r)
int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
{
return wcscmp(l, r);
}
int wcscoll(const wchar_t *l, const wchar_t *r)
{
return __wcscoll_l(l, r, LC_GLOBAL_LOCALE);
}
weak_alias(__wcscoll_l, wcscoll_l);
#include <wchar.h>
int wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
{
return wcscoll(l, r);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册