]> pd.if.org Git - pdclib.old/blobdiff - includes/wctype.h
Modify various POSIX platform files so you can build on top of glibc for testing
[pdclib.old] / includes / wctype.h
index 3b3e211eb5fe1d78b9b36dcc1690b09255a243bc..4d6ed5e2427b63245d3516108bb4b799dbbc8b78 100644 (file)
@@ -1,57 +1,47 @@
-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * ----------------------------------------------------------------------------
- * Wide character classification and mapping utilities
- * --------------------------------------------------------------------------*/
-
-#ifndef _WCTYPE_H
-#define _WCTYPE_H _WCTYPE_H
-
-#ifndef _NULL
-#define _NULL _NULL
-#include "__intern.h"
-#endif /* _NULL */
-
-/* TODO: Documentation */
-
-/* ----------------------------------------------------------------------------
- * TYPEDEFS
- * --------------------------------------------------------------------------*/
-
-#ifndef _WINT_T
-#define _WINT_T _WINT_T
-typedef __wint_t wint_t
-#endif /* _WINT_T */
-
-typedef wctrans_t; /* TODO - to __intern.h / __personality.h? */
-typedef wctype_t;  /* TODO - to __intern.h / __personality.h? */
-
-/* ----------------------------------------------------------------------------
- * FUNCTIONS
- * --------------------------------------------------------------------------*/
-
-int iswalnum( wint_t c );
-int iswalpha( wint_t c );
-int iswblank( wint_t c );
-int iswcntrl( wint_t c );
-int iswctype( wint_t c, wctype_t category );
-int iswdigit( wint_t c );
-int iswgraph( wint_t c );
-int iswlower( wint_t c );
-int iswprint( wint_t c );
-int iswpunct( wint_t c );
-int iswspace( wint_t c );
-int iswupper( wint_t c );
-int iswxdigit( wint_t c );
-
-wint_t towctrans( wint_t c, wctrans_t category );
-wint_t towlower( wint_t c );
-wint_t towupper( wint_t c );
-
-wctrans_t wctrans( const char * property );
-wctype_t wctype( const char * property );
-
-#endif /* _WCTYPE_H */
+/* 7.30 Wide Character Classification and Mapping Utilities <wctype.h>\r
+\r
+   This file is part of the Public Domain C Library (PDCLib).\r
+   Permission is granted to use, modify, and / or redistribute at will.\r
+*/\r
+\r
+#ifndef _PDCLIB_WCTYPE_H\r
+#define _PDCLIB_WCTYPE_H _PDCLIB_WCTYPE_H\r
+#include <_PDCLIB_int.h>\r
+_PDCLIB_BEGIN_EXTERN_C\r
+\r
+#ifndef _PDCLIB_WINT_T_DEFINED\r
+#define _PDCLIB_WINT_T_DEFINED _PDCLIB_WINT_T_DEFINED\r
+typedef _PDCLIB_wint_t wint_t;\r
+#endif\r
+\r
+typedef int wctrans_t;\r
+typedef int wctype_t;\r
+\r
+/* 7.30.2.1 Character classification functions */\r
+int iswalnum( wint_t _Wc );\r
+int iswalpha( wint_t _Wc );\r
+int iswblank( wint_t _Wc );\r
+int iswcntrl( wint_t _Wc );\r
+int iswdigit( wint_t _Wc );\r
+int iswgraph( wint_t _Wc );\r
+int iswlower( wint_t _Wc );\r
+int iswprint( wint_t _Wc );\r
+int iswpunct( wint_t _Wc );\r
+int iswspace( wint_t _Wc );\r
+int iswupper( wint_t _Wc );\r
+int iswxdigit( wint_t _Wc );\r
+\r
+/* 7.30.2.2 Extensible character classification functions */\r
+int iswctype( wint_t _Wc, wctype_t _Desc );\r
+wctype_t wctype( const char * _Property );\r
+\r
+/* 7.30.3 Wide character case mapping utilities */\r
+wint_t towlower( wint_t _Wc );\r
+wint_t towupper( wint_t _Wc );\r
+\r
+/* 7.30.3.2 Extensible wide character case mapping functions */\r
+wint_t towctrans( wint_t _Wc, wctrans_t _Desc );\r
+wctrans_t wctrans( const char * _Property );\r
+\r
+_PDCLIB_END_EXTERN_C\r
+#endif // _PDCLIB_WCTYPE_H\r