XawI18n.h

Go to the documentation of this file.
00001 /* $XConsortium: XawI18n.h,v 1.12 95/01/25 00:48:44 kaleb Exp $ */
00002 
00003 /************************************************************
00004 
00005 Copyright (c) 1993, 1994  X Consortium
00006 
00007 Permission is hereby granted, free of charge, to any person obtaining a copy
00008 of this software and associated documentation files (the "Software"), to deal
00009 in the Software without restriction, including without limitation the rights
00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011 copies of the Software, and to permit persons to whom the Software is
00012 furnished to do so, subject to the following conditions:
00013 
00014 The above copyright notice and this permission notice shall be included in
00015 all copies or substantial portions of the Software.
00016 
00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00020 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00023 
00024 Except as contained in this notice, the name of the X Consortium shall not be
00025 used in advertising or otherwise to promote the sale, use or other dealings
00026 in this Software without prior written authorization from the X Consortium.
00027 
00028 ********************************************************/
00029 
00030 #ifdef HAS_WCTYPE_H
00031 #include <wctype.h>
00032 #include <widec.h>
00033 #define wcslen(c) wslen(c)
00034 #define wcscpy(d,s) wscpy(d,s)
00035 #define wcsncpy(d,s,l) wsncpy(d,s,l)
00036 #endif
00037 
00038 #ifdef HAS_WCHAR_H
00039 #include <wchar.h>
00040 #endif
00041 
00042 #ifdef AIXV3
00043 #include <ctype.h>
00044 #endif
00045 
00046 #ifdef NCR
00047 #define iswspace(c) _Xaw_iswspace(c)
00048 extern int _Xaw_iswspace(wchar_t);
00049 #endif
00050 
00051 #ifdef sony
00052 #ifndef SVR4
00053 #include <jctype.h>
00054 #define iswspace(c) jisspace(c)
00055 #endif
00056 #endif
00057 
00058 #ifdef USE_XWCHAR_STRING
00059 #define wcslen(c) _Xwcslen(c)
00060 #define wcscpy(d,s) _Xwcscpy(d,s)
00061 #define wcsncpy(d,s,l) _Xwcsncpy(d,s,l)
00062 #ifdef USE_XMBTOWC
00063 #define mbtowc(wc,s,l) _Xmbtowc(wc,s,l)
00064 #endif
00065 #endif
00066 
00067 extern wchar_t _Xaw_atowc (
00068 #if NeedFunctionPrototypes
00069     unsigned char       c
00070 #endif
00071 );
00072 
00073 #ifndef HAS_ISW_FUNCS
00074 #include <ctype.h>
00075 #ifndef iswspace
00076 #define iswspace(c) (isascii(c) && isspace(toascii(c)))
00077 #endif
00078 #endif

Generated on Sun Mar 4 15:03:56 2007 for Scilab [trunk] by  doxygen 1.5.1