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 __wcstr_h
- #define __wcstr_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
-
- /********************************************************************/
- /* <wcstr.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. */
- /* */
- /********************************************************************/
-
- #ifndef __ANSI__
-
- #ifndef __size_t
- #define __size_t
- typedef unsigned int size_t;
- #endif
-
- #ifndef NULL
- #if (defined(__EXTENDED__) || defined( __cplusplus ))
- #define NULL 0
- #else
- #define NULL ((void *)0)
- #endif
- #endif
-
-
- #ifndef __wchar_t
- #define __wchar_t
- typedef unsigned short wchar_t;
- #endif
-
- #ifndef __wint_t
- #define __wint_t
- typedef int wint_t;
- #endif
-
- #ifdef _M_I386
- 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 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 wcswcs( const wchar_t *, const wchar_t * );
- extern wchar_t * _IMPORT _LNK_CONV wcsstr( const wchar_t *, const wchar_t * );
-
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-
- #if (defined(__IBMC__) || defined(__IBMCPP__))
- #pragma info( none )
- #ifndef __CHKHDR__
- #pragma info( restore )
- #endif
- #pragma info( restore )
- #endif
-