diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/inc/olechar.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/inc/olechar.h')
-rw-r--r-- | private/inc/olechar.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/private/inc/olechar.h b/private/inc/olechar.h new file mode 100644 index 000000000..2dbde5b21 --- /dev/null +++ b/private/inc/olechar.h @@ -0,0 +1,80 @@ + +//+====================================================== +// +// File: olechar.h +// +// Purpose: Provide wrappers for string-related +// functions so that the Ansi or Unicode function +// is called, whichever is appropriate for the +// current OLECHAR definition. +// +// This file is similar to "tchar.h", except +// that it covers OLECHARs rather than TCHARs. +// +// History: +// 08-Nov-96 MikeHill Added ULTOO +// +//+====================================================== + + +#ifndef _OLECHAR_H_ +#define _OLECHAR_H_ + +//#include <objbase.h> + +#ifdef OLE2ANSI + +# ifdef _MAC +# define ocslen strlen +# define ocscpy strcpy +# define ocscmp strcmp +# define ocscat strcat +# define ocschr strchr +# define soprintf sprintf +# define oprintf printf +# define ocsnicmp _strnicmp +# else +# define ocslen lstrlenA +# define ocscpy lstrcpyA +# define ocscmp lpstrcmpA +# define ocscat lpstrcatA +# define ocschr strchr +# define soprintf sprintf +# define oprintf printf +# define ocsnicmp _strnicmp +# endif + + // "Unsigned Long to OLESTR" +# define ULTOO(value,string,radix) _ultoa( (value), (string), (radix) ) + +#else // !OLE2ANSI + + // BUGBUG: In the #else below, restore wcslen to + // lstrlenW when property code is moved from NTDLL + // to OLE32. +# ifdef IPROPERTY_DLL +# define ocslen wcslen //lstrlenW +# define ocscpy wcscpy +# define ocscmp wcscmp +# define ocscat wcscat +# define ocschr wcschr +# define soprintf swprintf +# define oprintf wprintf +# define ocsnicmp _wcsnicmp +# else +# define ocslen wcslen //lstrlenW +# define ocscpy lstrcpyW +# define ocscmp lstrcmpW +# define ocscat lstrcatW +# define ocschr wcschr +# define soprintf swprintf +# define oprintf wprintf +# define ocsnicmp _wcsnicmp +# endif + + // "Unsigned Long to OLESTR" +# define ULTOO(value,string,radix) _ultow( (value), (string), (radix) ) + +#endif // !OLE2ANSI + +#endif // !_OLECHAR_H_ |