Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-09-21 01:56:13 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-09-21 01:56:13 +0400
commit1e0e64c9d84785830a384dbf2d6c70a1bea9d3c8 (patch)
tree3ee3b6dd9856a6c135925d98eca3621afb1d426f
parent4ca88d4714eb5584f86bd0a0b9223edfb1d2dcc4 (diff)
2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wctype.h: New file.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/wctype.h43
2 files changed, 47 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 1da573402..3c8fd3b7b 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/include/wctype.h: New file.
+
+2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
+
* libc/ctype/Makefile.am: Add new files.
* libc/ctype/Makefile.in: Regenerated.
* libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
diff --git a/newlib/libc/include/wctype.h b/newlib/libc/include/wctype.h
new file mode 100644
index 000000000..77f10e47d
--- /dev/null
+++ b/newlib/libc/include/wctype.h
@@ -0,0 +1,43 @@
+#ifndef _WCTYPE_H_
+#define _WCTYPE_H_
+
+#include <_ansi.h>
+#include <sys/_types.h>
+
+#define __need_wint_t
+#include <stddef.h>
+
+#ifndef WEOF
+# define WEOF ((wint_t)-1)
+#endif
+
+#ifndef _WCTYPE_T
+#define _WCTYPE_T
+typedef int wctype_t;
+#endif
+
+#ifndef _WCTRANS_T
+#define _WCTRANS_T
+typedef int wctrans_t;
+#endif
+
+int _EXFUN(iswalpha, (wint_t));
+int _EXFUN(iswalnum, (wint_t));
+int _EXFUN(iswblank, (wint_t));
+int _EXFUN(iswcntrl, (wint_t));
+int _EXFUN(iswctype, (wint_t, wctype_t));
+int _EXFUN(iswdigit, (wint_t));
+int _EXFUN(iswgraph, (wint_t));
+int _EXFUN(iswlower, (wint_t));
+int _EXFUN(iswprint, (wint_t));
+int _EXFUN(iswpunct, (wint_t));
+int _EXFUN(iswspace, (wint_t));
+int _EXFUN(iswupper, (wint_t));
+int _EXFUN(iswxdigit, (wint_t));
+wint_t _EXFUN(towctrans, (wint_t, wctrans_t));
+wint_t _EXFUN(towupper, (wint_t));
+wint_t _EXFUN(towlower, (wint_t));
+wctrans_t _EXFUN(wctrans, (const char *));
+wctype_t _EXFUN(wctype, (const char *));
+
+#endif /* _WCTYPE_H_ */