OSDN Git Service

2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Fri, 20 Sep 2002 21:56:13 +0000 (21:56 +0000)
committerjjohnstn <jjohnstn>
Fri, 20 Sep 2002 21:56:13 +0000 (21:56 +0000)
        * libc/include/wctype.h: New file.

newlib/ChangeLog
newlib/libc/include/wctype.h [new file with mode: 0644]

index 1da5734..3c8fd3b 100644 (file)
@@ -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 (file)
index 0000000..77f10e4
--- /dev/null
@@ -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_ */