summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authortshiozak <tshiozak@FreeBSD.org>2001-05-15 20:28:48 +0000
committertshiozak <tshiozak@FreeBSD.org>2001-05-15 20:28:48 +0000
commite2bb65a7f1cb560e11cab55c8d598d7520e7cf0f (patch)
treeaf4530740686340a42479f71fa5afeebe25b43ac /include/wchar.h
parentddc2812fcb99900c195d873b90b1d3d5fefab632 (diff)
downloadFreeBSD-src-e2bb65a7f1cb560e11cab55c8d598d7520e7cf0f.zip
FreeBSD-src-e2bb65a7f1cb560e11cab55c8d598d7520e7cf0f.tar.gz
adapt to FreeBSD.
- add #define NULL 0 instead of sys/null.h. - enable locale-insensitive functions: wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c - disable some locale-sensitive functions defined in wchar.h temporarily: mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcsrtombs wcwidth wcswidth - disable all functions defined in wctype.h temporarily: is* tow*
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 488b58d..2ef0f17 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -69,7 +69,9 @@
#include <sys/cdefs.h>
#include <machine/ansi.h>
-#include <sys/null.h>
+#ifndef NULL
+#define NULL 0
+#endif
#ifdef _BSD_WCHAR_T_
typedef _BSD_WCHAR_T_ wchar_t;
@@ -96,6 +98,8 @@ typedef _BSD_SIZE_T_ size_t;
#endif
__BEGIN_DECLS
+#if 0
+/* XXX: not implemented */
size_t mbrlen __P((const char * __restrict, size_t, mbstate_t * __restrict));
size_t mbrtowc __P((wchar_t * __restrict, const char * __restrict, size_t,
mbstate_t * __restrict));
@@ -103,6 +107,7 @@ int mbsinit __P((const mbstate_t *));
size_t mbsrtowcs __P((wchar_t * __restrict, const char ** __restrict, size_t,
mbstate_t * __restrict));
size_t wcrtomb __P((char * __restrict, wchar_t, mbstate_t * __restrict));
+#endif
wchar_t *wcscat __P((wchar_t * __restrict, const wchar_t * __restrict));
wchar_t *wcschr __P((const wchar_t *, wchar_t));
int wcscmp __P((const wchar_t *, const wchar_t *));
@@ -116,8 +121,11 @@ wchar_t *wcsncpy __P((wchar_t * __restrict , const wchar_t * __restrict,
size_t));
wchar_t *wcspbrk __P((const wchar_t *, const wchar_t *));
wchar_t *wcsrchr __P((const wchar_t *, wchar_t));
+#if 0
+/* XXX: not implemented */
size_t wcsrtombs __P((char * __restrict, const wchar_t ** __restrict, size_t,
mbstate_t * __restrict));
+#endif
size_t wcsspn __P((const wchar_t *, const wchar_t *));
wchar_t *wcsstr __P((const wchar_t *, const wchar_t *));
wchar_t *wmemchr __P((const wchar_t *, wchar_t, size_t));
@@ -129,8 +137,11 @@ wchar_t *wmemset __P((wchar_t *, wchar_t, size_t));
size_t wcslcat __P((wchar_t *, const wchar_t *, size_t));
size_t wcslcpy __P((wchar_t *, const wchar_t *, size_t));
+#if 0
+/* XXX: not implemented */
int wcswidth __P((const wchar_t *, size_t));
int wcwidth __P((wchar_t));
+#endif
__END_DECLS
#endif /* !_WCHAR_H_ */
OpenPOWER on IntegriCloud