add more of the locale_t interfaces, all dummied out to ignore the locale
authorRich Felker <dalias@aerifal.cx>
Tue, 7 Feb 2012 02:29:31 +0000 (21:29 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 7 Feb 2012 02:29:31 +0000 (21:29 -0500)
19 files changed:
include/wctype.h
src/locale/iswalnum_l.c [new file with mode: 0644]
src/locale/iswalpha_l.c [new file with mode: 0644]
src/locale/iswblank_l.c [new file with mode: 0644]
src/locale/iswcntrl_l.c [new file with mode: 0644]
src/locale/iswctype_l.c [new file with mode: 0644]
src/locale/iswdigit_l.c [new file with mode: 0644]
src/locale/iswgraph_l.c [new file with mode: 0644]
src/locale/iswlower_l.c [new file with mode: 0644]
src/locale/iswprint_l.c [new file with mode: 0644]
src/locale/iswpunct_l.c [new file with mode: 0644]
src/locale/iswspace_l.c [new file with mode: 0644]
src/locale/iswupper_l.c [new file with mode: 0644]
src/locale/iswxdigit_l.c [new file with mode: 0644]
src/locale/towctrans_l.c [new file with mode: 0644]
src/locale/towlower_l.c [new file with mode: 0644]
src/locale/towupper_l.c [new file with mode: 0644]
src/locale/wctrans_l.c [new file with mode: 0644]
src/locale/wctype_l.c [new file with mode: 0644]

index 3a5af6e7416db7191272685c09c5b92be1811efe..ee5be7c650fbc4ffc410f1beaa2dfec19382e6a1 100644 (file)
@@ -9,6 +9,11 @@ extern "C" {
 #define __NEED_wctrans_t
 #define __NEED_wctype_t
 
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#define __NEED_locale_t
+#endif
+
 #include <bits/alltypes.h>
 
 #undef WEOF
diff --git a/src/locale/iswalnum_l.c b/src/locale/iswalnum_l.c
new file mode 100644 (file)
index 0000000..8aaf1be
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswalnum_l(wint_t c, locale_t l)
+{
+       return iswalnum(c);
+}
diff --git a/src/locale/iswalpha_l.c b/src/locale/iswalpha_l.c
new file mode 100644 (file)
index 0000000..ebe5a05
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswalpha_l(wint_t c, locale_t l)
+{
+       return iswalpha(c);
+}
diff --git a/src/locale/iswblank_l.c b/src/locale/iswblank_l.c
new file mode 100644 (file)
index 0000000..180a8f4
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswblank_l(wint_t c, locale_t l)
+{
+       return iswblank(c);
+}
diff --git a/src/locale/iswcntrl_l.c b/src/locale/iswcntrl_l.c
new file mode 100644 (file)
index 0000000..50e97c5
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswcntrl_l(wint_t c, locale_t l)
+{
+       return iswcntrl(c);
+}
diff --git a/src/locale/iswctype_l.c b/src/locale/iswctype_l.c
new file mode 100644 (file)
index 0000000..be222d3
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswctype_l(wint_t c, wctype_t t, locale_t l)
+{
+       return iswctype(c, t);
+}
diff --git a/src/locale/iswdigit_l.c b/src/locale/iswdigit_l.c
new file mode 100644 (file)
index 0000000..3f567fc
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswdigit_l(wint_t c, locale_t l)
+{
+       return iswdigit(c);
+}
diff --git a/src/locale/iswgraph_l.c b/src/locale/iswgraph_l.c
new file mode 100644 (file)
index 0000000..4a8f787
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswgraph_l(wint_t c, locale_t l)
+{
+       return iswgraph(c);
+}
diff --git a/src/locale/iswlower_l.c b/src/locale/iswlower_l.c
new file mode 100644 (file)
index 0000000..51e07f3
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswlower_l(wint_t c, locale_t l)
+{
+       return iswlower(c);
+}
diff --git a/src/locale/iswprint_l.c b/src/locale/iswprint_l.c
new file mode 100644 (file)
index 0000000..eeacb94
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswprint_l(wint_t c, locale_t l)
+{
+       return iswprint(c);
+}
diff --git a/src/locale/iswpunct_l.c b/src/locale/iswpunct_l.c
new file mode 100644 (file)
index 0000000..60e2ccf
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswpunct_l(wint_t c, locale_t l)
+{
+       return iswpunct(c);
+}
diff --git a/src/locale/iswspace_l.c b/src/locale/iswspace_l.c
new file mode 100644 (file)
index 0000000..befccc8
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswspace_l(wint_t c, locale_t l)
+{
+       return iswspace(c);
+}
diff --git a/src/locale/iswupper_l.c b/src/locale/iswupper_l.c
new file mode 100644 (file)
index 0000000..867edc6
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswupper_l(wint_t c, locale_t l)
+{
+       return iswupper(c);
+}
diff --git a/src/locale/iswxdigit_l.c b/src/locale/iswxdigit_l.c
new file mode 100644 (file)
index 0000000..8df3f73
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t iswxdigit_l(wint_t c, locale_t l)
+{
+       return iswxdigit(c);
+}
diff --git a/src/locale/towctrans_l.c b/src/locale/towctrans_l.c
new file mode 100644 (file)
index 0000000..6222058
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t towctrans_l(wint_t c, wctrans_t t, locale_t l)
+{
+       return towctrans(c, t);
+}
diff --git a/src/locale/towlower_l.c b/src/locale/towlower_l.c
new file mode 100644 (file)
index 0000000..05fcde5
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t towlower_l(wint_t c, locale_t l)
+{
+       return towlower(c);
+}
diff --git a/src/locale/towupper_l.c b/src/locale/towupper_l.c
new file mode 100644 (file)
index 0000000..aa861ae
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wint_t towupper_l(wint_t c, locale_t l)
+{
+       return towupper(c);
+}
diff --git a/src/locale/wctrans_l.c b/src/locale/wctrans_l.c
new file mode 100644 (file)
index 0000000..dae3381
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wctrans_t wctrans_l(const char *s, locale_t l)
+{
+       return wctrans(s);
+}
diff --git a/src/locale/wctype_l.c b/src/locale/wctype_l.c
new file mode 100644 (file)
index 0000000..01f9c67
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wctype.h>
+
+wctype_t wctype_l(const char *s, locale_t l)
+{
+       return wctype(s);
+}