X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fctype%2Ftowctrans.c;h=6af618758bcb853096fa74b8a54d820cd1626ec2;hb=04b8360adbb6487f61aa0c00e53ec3a90a5a0d29;hp=2842d690e7dfbe35c1a6088b5d9d0bac366d6648;hpb=1a63a9fc30e7a1f1239e3cedcb5041e5ec1c5351;p=musl diff --git a/src/ctype/towctrans.c b/src/ctype/towctrans.c index 2842d690..6af61875 100644 --- a/src/ctype/towctrans.c +++ b/src/ctype/towctrans.c @@ -1,6 +1,5 @@ -#include #include -#include +#include "libc.h" #define CASEMAP(u1,u2,l) { (u1), (l)-(u1), (u2)-(u1)+1 } #define CASELACE(u1,u2) CASEMAP((u1),(u2),(u1)+1) @@ -152,7 +151,6 @@ static const unsigned short pairs[][2] = { { 0x03f7, 0x03f8 }, { 0x03fa, 0x03fb }, { 0x1e60, 0x1e9b }, - { 0xdf, 0xdf }, { 0x1e9e, 0xdf }, { 0x1f59, 0x1f51 }, @@ -266,3 +264,16 @@ wint_t towlower(wint_t wc) { return __towcase(wc, 1); } + +wint_t __towupper_l(wint_t c, locale_t l) +{ + return towupper(c); +} + +wint_t __towlower_l(wint_t c, locale_t l) +{ + return towlower(c); +} + +weak_alias(__towupper_l, towupper_l); +weak_alias(__towlower_l, towlower_l);