summaryrefslogtreecommitdiff
path: root/src/XawI18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/XawI18n.h')
-rw-r--r--src/XawI18n.h62
1 files changed, 53 insertions, 9 deletions
diff --git a/src/XawI18n.h b/src/XawI18n.h
index 4432553..fa06859 100644
--- a/src/XawI18n.h
+++ b/src/XawI18n.h
@@ -25,13 +25,16 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
********************************************************/
+/* $XFree86: xc/lib/Xaw/XawI18n.h,v 3.14 2001/12/14 19:54:46 dawes Exp $ */
#ifdef HAS_WCTYPE_H
#include <wctype.h>
+#ifndef NO_WIDEC_H
#include <widec.h>
#define wcslen(c) wslen(c)
-#define wcscpy(d,s) wscpy(d,s)
-#define wcsncpy(d,s,l) wsncpy(d,s,l)
+#define wcscpy(d, s) wscpy(d, s)
+#define wcsncpy(d, s, l) wsncpy(d, s, l)
+#endif
#endif
#ifdef HAS_WCHAR_H
@@ -44,7 +47,10 @@ in this Software without prior written authorization from The Open Group.
#ifdef NCR
#define iswspace(c) _Xaw_iswspace(c)
-extern int _Xaw_iswspace(wchar_t);
+int _Xaw_iswspace
+(
+ wchar_t c
+ );
#endif
#ifdef sony
@@ -54,20 +60,50 @@ extern int _Xaw_iswspace(wchar_t);
#endif
#endif
+#ifdef QNX4
+#define toascii( c ) ((unsigned)(c) & 0x007f)
+#endif
+
+#include <stdlib.h>
+
#ifdef USE_XWCHAR_STRING
+int _Xwcslen
+(
+ wchar_t *wstr
+ );
+
#define wcslen(c) _Xwcslen(c)
+
+wchar_t *_Xwcscpy
+(
+ wchar_t *wstr1,
+ wchar_t *wstr2
+ );
+
#define wcscpy(d,s) _Xwcscpy(d,s)
-#define wcsncpy(d,s,l) _Xwcsncpy(d,s,l)
+
+wchar_t *_Xwcsncpy
+(
+ wchar_t *wstr1,
+ wchar_t *wstr2,
+ int len
+ );
+
+#define wcsncpy(d, s, l) _Xwcsncpy(d, s, l)
+
#ifdef USE_XMBTOWC
-#define mbtowc(wc,s,l) _Xmbtowc(wc,s,l)
+#define mbtowc(wc, s, l) _Xmbtowc(wc, s, l)
#endif
#endif
-extern wchar_t _Xaw_atowc (
-#if NeedFunctionPrototypes
- unsigned char c
+wchar_t _Xaw_atowc
+(
+#if NeedWidePrototypes
+ int c
+#else
+ unsigned char c
#endif
-);
+ );
#ifndef HAS_ISW_FUNCS
#include <ctype.h>
@@ -75,3 +111,11 @@ extern wchar_t _Xaw_atowc (
#define iswspace(c) (isascii(c) && isspace(toascii(c)))
#endif
#endif
+
+#ifndef iswalnum
+#define iswalnum(c) _Xaw_iswalnum(c)
+int _Xaw_iswalnum
+(
+ wchar_t c
+ );
+#endif