home *** CD-ROM | disk | FTP | other *** search
- #if (defined(__IBMC__) || defined(__IBMCPP__))
- #pragma info( none )
- #ifndef __CHKHDR__
- #pragma info( none )
- #endif
- #pragma info( restore )
- #endif
-
- #ifndef __wchar_h
- #define __wchar_h
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #ifndef _LNK_CONV
- #ifdef _M_I386
- #define _LNK_CONV _Optlink
- #else
- #define _LNK_CONV
- #endif
- #endif
-
- #ifndef _IMPORT
- #ifdef __IMPORTLIB__
- #define _IMPORT _Import
- #else
- #define _IMPORT
- #endif
- #endif
-
- /********************************************************************/
- /* <wchar.h> header file */
- /* */
- /* VisualAge for C++ for Windows, Version 3.5 */
- /* Licensed Material - Property of IBM */
- /* */
- /* 5801-ARR and Other Materials */
- /* */
- /* (c) Copyright IBM Corp 1991, 1996. All rights reserved. */
- /* */
- /********************************************************************/
-
- #include <stdio.h>
- #include <stdarg.h>
-
- #ifndef NULL
- #ifdef __cplusplus
- #define NULL 0
- #else
- #define NULL ((void *)0)
- #endif
- #endif
-
- #ifndef __mbstate_t
- #define __mbstate_t
- typedef short mbstate_t;
- #endif
-
- #ifndef __size_t
- typedef unsigned int size_t;
- #define __size_t 1
- #endif
-
- #ifndef __wchar_t
- typedef unsigned short wchar_t;
- #define __wchar_t 1
- #endif
-
- #ifndef __wint_t
- #define __wint_t
- typedef int wint_t;
- #endif
-
- #ifndef WEOF
- #define WEOF -1
- #endif
-
- struct tm;
-
- /* Wide character I/O functions */
-
- extern wint_t _IMPORT _LNK_CONV fgetwc(FILE *);
- extern wchar_t * _IMPORT _LNK_CONV fgetws(wchar_t *, int, FILE *);
- extern wint_t _IMPORT _LNK_CONV fputwc(wchar_t, FILE *);
- extern int _IMPORT _LNK_CONV fputws(const wchar_t *, FILE *);
- extern wint_t _IMPORT _LNK_CONV getwc(FILE *);
- extern wint_t _IMPORT _LNK_CONV getwchar(void);
- extern wint_t _IMPORT _LNK_CONV putwc(wchar_t, FILE *);
- extern wint_t _IMPORT _LNK_CONV putwchar(wchar_t);
- extern wint_t _IMPORT _LNK_CONV ungetwc(wint_t, FILE *);
- extern int _IMPORT _LNK_CONV swprintf(wchar_t *, size_t, const wchar_t *, ...);
- extern int _IMPORT _LNK_CONV swscanf(const wchar_t *, const wchar_t *, ...);
- extern int _IMPORT _LNK_CONV vswprintf(wchar_t *, size_t, const wchar_t *, va_list);
-
- extern double _IMPORT _LNK_CONV wcstod(const wchar_t *, wchar_t **);
- extern long int _IMPORT _LNK_CONV wcstol(const wchar_t *, wchar_t **, int);
- extern unsigned long int _IMPORT _LNK_CONV wcstoul(const wchar_t *, wchar_t **, int);
-
- /* Wide Character String handling */
-
- #if defined _M_I386 && !defined __wcstr_h
- #define __wcstr_h
-
- wchar_t * _Builtin __wcscat(wchar_t *, const wchar_t *);
- wchar_t * _Builtin __wcschr(const wchar_t *, wchar_t);
- int _Builtin __wcscmp(const wchar_t *, const wchar_t *);
- wchar_t * _Builtin __wcscpy(wchar_t *, const wchar_t *);
- size_t _Builtin __wcslen(const wchar_t *);
- wchar_t * _Builtin __wcsncat(wchar_t *, const wchar_t *, size_t);
- int _Builtin __wcsncmp(const wchar_t *, const wchar_t *, size_t);
- wchar_t * _Builtin __wcsncpy(wchar_t *, const wchar_t *, size_t);
- wchar_t * _Builtin __wcsrchr(const wchar_t *, wchar_t);
-
- #ifdef __cplusplus
- inline wchar_t * _LNK_CONV wcscat(wchar_t * s1, const wchar_t * s2)
- {return __wcscat(s1, s2); }
- inline wchar_t * _LNK_CONV wcschr(const wchar_t * s1, wchar_t wc)
- {return __wcschr(s1, wc); }
- inline int _LNK_CONV wcscmp(const wchar_t * s1, const wchar_t * s2)
- {return __wcscmp(s1, s2); }
- inline wchar_t * _LNK_CONV wcscpy(wchar_t * s1, const wchar_t * s2)
- {return __wcscpy(s1, s2); }
- inline size_t _LNK_CONV wcslen(const wchar_t * s)
- {return __wcslen(s); }
- inline wchar_t * _LNK_CONV wcsncat(wchar_t * s1, const wchar_t * s2, size_t t)
- {return __wcsncat(s1, s2, t); }
- inline int _LNK_CONV wcsncmp(const wchar_t * s1, const wchar_t * s2, size_t t)
- {return __wcsncmp(s1, s2, t); }
- inline wchar_t * _LNK_CONV wcsncpy(wchar_t * s1, const wchar_t * s2, size_t t)
- {return __wcsncpy(s1, s2, t); }
- inline wchar_t * _LNK_CONV wcsrchr(const wchar_t * s1, wchar_t wc)
- {return __wcsrchr(s1, wc); }
- #else
- extern wchar_t * _IMPORT _LNK_CONV wcscat(wchar_t *, const wchar_t *);
- extern wchar_t * _IMPORT _LNK_CONV wcschr(const wchar_t *, wchar_t);
- extern int _IMPORT _LNK_CONV wcscmp(const wchar_t *, const wchar_t *);
- extern wchar_t * _IMPORT _LNK_CONV wcscpy(wchar_t *, const wchar_t *);
- extern size_t _IMPORT _LNK_CONV wcslen(const wchar_t *);
- extern wchar_t * _IMPORT _LNK_CONV wcsncat(wchar_t *, const wchar_t *, size_t);
- extern int _IMPORT _LNK_CONV wcsncmp(const wchar_t *, const wchar_t *, size_t);
- extern wchar_t * _IMPORT _LNK_CONV wcsncpy(wchar_t *, const wchar_t *, size_t);
- extern wchar_t * _IMPORT _LNK_CONV wcsrchr(const wchar_t *, wchar_t);
-
- #pragma info( none )
- #define wcscat( x,y ) __wcscat( (x), (y) )
- #define wcschr( x,y ) __wcschr( (x), (y) )
- #define wcscmp( x,y ) __wcscmp( (x), (y) )
- #define wcscpy( x,y ) __wcscpy( (x), (y) )
- #define wcslen( x ) __wcslen( (x) )
- #define wcsncat( x,y,z ) __wcsncat( (x), (y), (z) )
- #define wcsncmp( x,y,z ) __wcsncmp( (x), (y), (z) )
- #define wcsncpy( x,y,z ) __wcsncpy( (x), (y), (z) )
- #define wcsrchr( x,y ) __wcsrchr( (x), (y) )
- #pragma info( restore )
- #endif
- #endif
-
- #ifdef __THW_PPC__
- extern wchar_t * _IMPORT _LNK_CONV wcscat( wchar_t *, const wchar_t * );
- extern wchar_t * _IMPORT _LNK_CONV wcschr( const wchar_t *, wchar_t);
- extern int * _IMPORT _LNK_CONV wcscmp( const wchar_t *, const wchar_t * );
- extern wchar_t * _IMPORT _LNK_CONV wcscpy( wchar_t *, const wchar_t * );
- extern size_t * _IMPORT _LNK_CONV wcslen( const wchar_t * );
- extern wchar_t * _IMPORT _LNK_CONV wcsncat( wchar_t *, const wchar_t *, size_t);
- extern int * _IMPORT _LNK_CONV wcsncmp( const wchar_t *, const wchar_t *, size_t);
- extern wchar_t * _IMPORT _LNK_CONV wcsncpy( wchar_t *, const wchar_t *, size_t);
- extern wchar_t * _IMPORT _LNK_CONV wcsrchr( const wchar_t *, wchar_t);
- #endif
-
- extern int _IMPORT _LNK_CONV wcscoll(const wchar_t *, const wchar_t *);
- extern size_t _IMPORT _LNK_CONV wcsxfrm(wchar_t *, const wchar_t *, size_t);
- extern size_t _IMPORT _LNK_CONV wcscspn (const wchar_t *, const wchar_t *);
- extern wchar_t * _IMPORT _LNK_CONV wcspbrk (const wchar_t *, const wchar_t *);
- extern size_t _IMPORT _LNK_CONV wcsspn (const wchar_t *, const wchar_t *);
- extern wchar_t * _IMPORT _LNK_CONV wcsstr (const wchar_t *, const wchar_t *);
- extern wchar_t * _IMPORT _LNK_CONV wcswcs( const wchar_t *, const wchar_t * );
- extern wchar_t * _IMPORT _LNK_CONV wcstok(wchar_t *, const wchar_t *, wchar_t **);
- extern int _IMPORT _LNK_CONV wcswidth(const wchar_t *, size_t);
- extern int _IMPORT _LNK_CONV wcwidth(const wint_t);
- extern size_t _IMPORT _LNK_CONV wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);
- extern int _IMPORT _LNK_CONV mbsinit(mbstate_t *);
- extern size_t _IMPORT _LNK_CONV mbrlen (const char *, size_t, mbstate_t *);
- extern size_t _IMPORT _LNK_CONV mbrtowc (wchar_t *, const char *, size_t, mbstate_t *);
- extern size_t _IMPORT _LNK_CONV wcrtomb (char *, wchar_t, mbstate_t *);
- extern size_t _IMPORT _LNK_CONV mbsrtowcs (wchar_t *, const char **, size_t, mbstate_t *);
- extern size_t _IMPORT _LNK_CONV wcsrtombs (char *, const wchar_t **, size_t, mbstate_t *);
- extern int _IMPORT _LNK_CONV wctob (wint_t);
-
- #if (defined(__EXTENDED__) || defined( __cplusplus ))
- #if (defined(__IBMC__) || defined(__IBMCPP__))
- #if __OS2__
- #pragma map( vswprintf,"_vswprintfieee" )
- #else
- #pragma map( vswprintf,"?_vswprintfieee" )
- #endif
-
- #if defined(_M_I386) || !defined(NO_PROTOTYPE)
- #if __OS2__
- #pragma map( swprintf, "_swprintfieee" )
- #pragma map( swscanf, "_swscanfieee" )
- #else
- #pragma map( swprintf, "?_swprintfieee" )
- #pragma map( swscanf, "?_swscanfieee" )
- #endif
- #endif
- #else
- #pragma Alias( vswprintf,"_vswprintfieee" )
- #ifndef NO_PROTOTYPE
- #pragma Alias( swprintf, "_swprintfieee" )
- #pragma Alias( swscanf, "_swscanfieee" )
- #endif
- #endif
- #else
- #if (defined(__IBMC__) || defined(__IBMCPP__))
- #if defined(_M_I386) || !defined(NO_PROTOTYPE)
- #if __OS2__
- #pragma map( swprintf, "_swprintf_ansi" )
- #pragma map( swscanf, "_swscanf_ansi" )
- #else
- #pragma map( swprintf, "?_swprintf_ansi" )
- #pragma map( swscanf, "?_swscanf_ansi" )
- #endif
- #endif
- #else
- #ifndef NO_PROTOTYPE
- #pragma Alias( swprintf, "_swprintf_ansi" )
- #pragma Alias( swscanf, "_swscanf_ansi" )
- #endif
- #endif
- #endif
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-
- #if (defined(__IBMC__) || defined(__IBMCPP__))
- #pragma info( none )
- #ifndef __CHKHDR__
- #pragma info( restore )
- #endif
- #pragma info( restore )
- #endif
-