mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
Changes to all definitions involving wchar_t. The unsigned short type caused g++ to fail.
svn path=/trunk/; revision=3910
This commit is contained in:
parent
4d245b3040
commit
980c3dbb9a
5 changed files with 66 additions and 25 deletions
|
@ -63,8 +63,8 @@ typedef long LONG;
|
||||||
|
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
typedef unsigned short *LPTCH;
|
typedef wchar_t *LPTCH;
|
||||||
typedef unsigned short *LPTSTR;
|
typedef wchar_t *LPTSTR;
|
||||||
#else
|
#else
|
||||||
typedef char *LPTCH;
|
typedef char *LPTCH;
|
||||||
typedef char *LPTSTR;
|
typedef char *LPTSTR;
|
||||||
|
@ -154,12 +154,12 @@ typedef CHAR *LPCH;
|
||||||
typedef COLORREF *LPCOLORREF;
|
typedef COLORREF *LPCOLORREF;
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
typedef const unsigned short *LPCTSTR;
|
typedef const wchar_t *LPCTSTR;
|
||||||
#else
|
#else
|
||||||
typedef const char *LPCTSTR;
|
typedef const char *LPCTSTR;
|
||||||
#endif /* UNICODE */
|
#endif /* UNICODE */
|
||||||
|
|
||||||
typedef const unsigned short *LPCWCH;
|
typedef const wchar_t *LPCWCH;
|
||||||
typedef DWORD *LPDWORD;
|
typedef DWORD *LPDWORD;
|
||||||
/* typedef LPFRHOOKPROC; */
|
/* typedef LPFRHOOKPROC; */
|
||||||
typedef HANDLE *LPHANDLE;
|
typedef HANDLE *LPHANDLE;
|
||||||
|
@ -168,14 +168,14 @@ typedef PINT LPINT;
|
||||||
typedef PLONG LPLONG;
|
typedef PLONG LPLONG;
|
||||||
|
|
||||||
typedef long LRESULT;
|
typedef long LRESULT;
|
||||||
typedef unsigned short *LPWCH;
|
typedef wchar_t *LPWCH;
|
||||||
typedef unsigned short *LPWORD;
|
typedef unsigned short *LPWORD;
|
||||||
/* typedef NPSTR; */
|
/* typedef NPSTR; */
|
||||||
typedef unsigned short *NWPSTR;
|
typedef wchar_t *NWPSTR;
|
||||||
typedef WINBOOL *PWINBOOL;
|
typedef WINBOOL *PWINBOOL;
|
||||||
typedef const CHAR *PCCH;
|
typedef const CHAR *PCCH;
|
||||||
typedef const char *PCSTR;
|
typedef const char *PCSTR;
|
||||||
typedef const unsigned short *PCWCH;
|
typedef const wchar_t *PCWCH;
|
||||||
/* typedef PHKEY; */
|
/* typedef PHKEY; */
|
||||||
/* typedef LCID *PLCID; */
|
/* typedef LCID *PLCID; */
|
||||||
typedef short *PSHORT;
|
typedef short *PSHORT;
|
||||||
|
@ -184,10 +184,10 @@ typedef char *PSTR;
|
||||||
typedef char *PSZ;
|
typedef char *PSZ;
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
typedef unsigned short *PTBYTE;
|
typedef wchar_t *PTBYTE;
|
||||||
typedef unsigned short *PTCH;
|
typedef wchar_t *PTCH;
|
||||||
typedef unsigned short *PTCHAR;
|
typedef wchar_t *PTCHAR;
|
||||||
typedef unsigned short *PTSTR;
|
typedef wchar_t *PTSTR;
|
||||||
#else
|
#else
|
||||||
typedef unsigned char *PTBYTE;
|
typedef unsigned char *PTBYTE;
|
||||||
typedef char *PTCH;
|
typedef char *PTCH;
|
||||||
|
@ -210,12 +210,12 @@ typedef DWORD SERVICE_STATUS_HANDLE;
|
||||||
/* typedef SPHANDLE; */
|
/* typedef SPHANDLE; */
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
typedef unsigned short TBYTE;
|
typedef wchar_t TBYTE;
|
||||||
#ifndef _TCHAR_DEFINED
|
#ifndef _TCHAR_DEFINED
|
||||||
#define _TCHAR_DEFINED
|
#define _TCHAR_DEFINED
|
||||||
typedef unsigned short TCHAR;
|
typedef wchar_t TCHAR;
|
||||||
#endif /* _TCHAR_DEFINED */
|
#endif /* _TCHAR_DEFINED */
|
||||||
typedef unsigned short BCHAR;
|
typedef wchar_t BCHAR;
|
||||||
#else
|
#else
|
||||||
typedef unsigned char TBYTE;
|
typedef unsigned char TBYTE;
|
||||||
#ifndef _TCHAR_DEFINED
|
#ifndef _TCHAR_DEFINED
|
||||||
|
@ -348,12 +348,21 @@ typedef enum _SID_NAME_USE {
|
||||||
#define INDEXTOSTATEIMAGEMASK(i) ((i) << 12)
|
#define INDEXTOSTATEIMAGEMASK(i) ((i) << 12)
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
|
#ifndef _T
|
||||||
#define _T(quote) L##quote
|
#define _T(quote) L##quote
|
||||||
|
#endif
|
||||||
|
#ifndef _TEXT
|
||||||
#define TEXT(quote) L##quote
|
#define TEXT(quote) L##quote
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
|
#ifndef _T
|
||||||
#define _T(quote) quote
|
#define _T(quote) quote
|
||||||
|
#endif
|
||||||
|
#ifndef _TEXT
|
||||||
#define TEXT(quote) quote
|
#define TEXT(quote) quote
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef RC_INVOKED
|
#ifndef RC_INVOKED
|
||||||
|
|
||||||
|
@ -370,7 +379,7 @@ typedef UINT CALLBACK (*LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
||||||
typedef UINT CALLBACK (*LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
typedef UINT CALLBACK (*LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
||||||
typedef WINBOOL CALLBACK (*DLGPROC) (HWND, UINT, WPARAM, LPARAM);
|
typedef WINBOOL CALLBACK (*DLGPROC) (HWND, UINT, WPARAM, LPARAM);
|
||||||
typedef int CALLBACK (*PFNPROPSHEETCALLBACK) (HWND, UINT, LPARAM);
|
typedef int CALLBACK (*PFNPROPSHEETCALLBACK) (HWND, UINT, LPARAM);
|
||||||
typedef VOID CALLBACK (*LPSERVICE_MAIN_FUNCTION) (DWORD, LPTSTR);
|
typedef VOID CALLBACK (*LPSERVICE_MAIN_FUNCTION) (DWORD, LPTSTR*);
|
||||||
typedef int CALLBACK (*PFNTVCOMPARE) (LPARAM, LPARAM, LPARAM);
|
typedef int CALLBACK (*PFNTVCOMPARE) (LPARAM, LPARAM, LPARAM);
|
||||||
typedef LRESULT CALLBACK (*WNDPROC) (HWND, UINT, WPARAM, LPARAM);
|
typedef LRESULT CALLBACK (*WNDPROC) (HWND, UINT, WPARAM, LPARAM);
|
||||||
typedef int CALLBACK (*FARPROC)(void);
|
typedef int CALLBACK (*FARPROC)(void);
|
||||||
|
|
|
@ -58,6 +58,10 @@ extern "C" {
|
||||||
#define LZERROR_BADOUTHANDLE (-2)
|
#define LZERROR_BADOUTHANDLE (-2)
|
||||||
#define LZERROR_BADINHANDLE (-1)
|
#define LZERROR_BADINHANDLE (-1)
|
||||||
#define NO_ERROR 0L
|
#define NO_ERROR 0L
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#include "../reactos/errcodes.h"
|
||||||
|
#else
|
||||||
#define ERROR_SUCCESS 0L
|
#define ERROR_SUCCESS 0L
|
||||||
#define ERROR_INVALID_FUNCTION 1L
|
#define ERROR_INVALID_FUNCTION 1L
|
||||||
#define ERROR_FILE_NOT_FOUND 2L
|
#define ERROR_FILE_NOT_FOUND 2L
|
||||||
|
@ -724,6 +728,7 @@ extern "C" {
|
||||||
#define ERROR_REC_NON_EXISTENT 4005L
|
#define ERROR_REC_NON_EXISTENT 4005L
|
||||||
#define ERROR_RPL_NOT_ALLOWED 4006L
|
#define ERROR_RPL_NOT_ALLOWED 4006L
|
||||||
#define ERROR_NO_BROWSER_SERVERS_FOUND 6118L
|
#define ERROR_NO_BROWSER_SERVERS_FOUND 6118L
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* HRESULT values for OLE, SHELL and other Interface stuff */
|
/* HRESULT values for OLE, SHELL and other Interface stuff */
|
||||||
|
|
|
@ -5523,7 +5523,8 @@ WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
DrawEdge(HDC hdc, LPRECT qrc, UINT edge, UINT grfFlags);
|
DrawEdge(HDC hdc, LPRECT qrc, UINT edge, UINT grfFlags);
|
||||||
|
|
||||||
WINBOOL STDCALL
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
DrawFrameControl(HDC, LPRECT, UINT, UINT);
|
DrawFrameControl(HDC, LPRECT, UINT, UINT);
|
||||||
|
|
||||||
WINBOOL
|
WINBOOL
|
||||||
|
|
|
@ -83,22 +83,44 @@ typedef ULONG32 ULONG, *PULONG;
|
||||||
|
|
||||||
#endif /* _WIN64 */
|
#endif /* _WIN64 */
|
||||||
|
|
||||||
|
#ifndef _WCHAR_T_
|
||||||
|
#define _WCHAR_T_
|
||||||
|
#define _WCHAR_T
|
||||||
|
#define _WCHAR_T_DEFINED
|
||||||
|
#ifndef __WCHAR_TYPE__
|
||||||
|
#define __WCHAR_TYPE__ short unsigned int
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
typedef __WCHAR_TYPE__ wchar_t;
|
||||||
|
#endif /* C++ */
|
||||||
|
|
||||||
|
#endif /* wchar_t not already defined */
|
||||||
|
|
||||||
|
|
||||||
|
//#ifndef __cplusplus
|
||||||
|
//#ifndef _WCHAR_T_DEFINED
|
||||||
|
//#define _WCHAR_T_DEFINED
|
||||||
|
//typedef unsigned short wchar_t;
|
||||||
|
//#endif
|
||||||
|
//#endif
|
||||||
|
|
||||||
typedef unsigned char UCHAR;
|
typedef unsigned char UCHAR;
|
||||||
typedef unsigned short USHORT;
|
typedef unsigned short USHORT;
|
||||||
typedef unsigned short WCHAR;
|
typedef wchar_t WCHAR;
|
||||||
typedef unsigned short WORD;
|
typedef unsigned short WORD;
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
typedef unsigned char BOOLEAN;
|
typedef unsigned char BOOLEAN;
|
||||||
typedef BOOLEAN* PBOOLEAN;
|
typedef BOOLEAN* PBOOLEAN;
|
||||||
typedef unsigned short *LPWSTR;
|
typedef wchar_t *LPWSTR;
|
||||||
typedef unsigned short *PWSTR;
|
typedef wchar_t *PWSTR;
|
||||||
typedef unsigned char *PUCHAR;
|
typedef unsigned char *PUCHAR;
|
||||||
typedef unsigned short *PUSHORT;
|
typedef unsigned short *PUSHORT;
|
||||||
typedef void *PVOID;
|
typedef void *PVOID;
|
||||||
typedef unsigned char BYTE;
|
typedef unsigned char BYTE;
|
||||||
typedef void *LPVOID;
|
typedef void *LPVOID;
|
||||||
typedef float *PFLOAT;
|
typedef float *PFLOAT;
|
||||||
typedef unsigned short *PWCH;
|
typedef wchar_t *PWCH;
|
||||||
typedef unsigned short *PWORD;
|
typedef unsigned short *PWORD;
|
||||||
|
|
||||||
#include <msvcrt/crttypes.h> // for definition of LONGLONG, PLONGLONG etc
|
#include <msvcrt/crttypes.h> // for definition of LONGLONG, PLONGLONG etc
|
||||||
|
@ -110,17 +132,17 @@ typedef DWORD LCID;
|
||||||
typedef DWORD *PLCID;
|
typedef DWORD *PLCID;
|
||||||
typedef const char *LPCSTR;
|
typedef const char *LPCSTR;
|
||||||
typedef char *LPSTR;
|
typedef char *LPSTR;
|
||||||
typedef const unsigned short *LPCWSTR;
|
typedef const wchar_t *LPCWSTR;
|
||||||
typedef CHAR *PCHAR;
|
typedef CHAR *PCHAR;
|
||||||
typedef CHAR *PCH;
|
typedef CHAR *PCH;
|
||||||
typedef void *HANDLE;
|
typedef void *HANDLE;
|
||||||
typedef HANDLE *PHANDLE;
|
typedef HANDLE *PHANDLE;
|
||||||
typedef char CCHAR;
|
typedef char CCHAR;
|
||||||
typedef CCHAR *PCCHAR;
|
typedef CCHAR *PCCHAR;
|
||||||
typedef unsigned short *PWCHAR;
|
typedef wchar_t *PWCHAR;
|
||||||
typedef ULONG WAIT_TYPE;
|
typedef ULONG WAIT_TYPE;
|
||||||
typedef USHORT CSHORT;
|
typedef USHORT CSHORT;
|
||||||
typedef const unsigned short *PCWSTR;
|
typedef const wchar_t *PCWSTR;
|
||||||
typedef char* PCSZ;
|
typedef char* PCSZ;
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
|
@ -29,9 +29,9 @@
|
||||||
* DISCLAIMED. This includes but is not limited to warranties of
|
* DISCLAIMED. This includes but is not limited to warranties of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
* $Author: robd $
|
* $Author: robd $
|
||||||
* $Date: 2002/12/08 16:18:29 $
|
* $Date: 2003/01/01 06:19:37 $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -61,8 +61,12 @@ typedef wchar_t TCHAR;
|
||||||
* Enclose constant strings and literal characters in the _TEXT and _T macro to make
|
* Enclose constant strings and literal characters in the _TEXT and _T macro to make
|
||||||
* them unicode constant strings when _UNICODE is defined.
|
* them unicode constant strings when _UNICODE is defined.
|
||||||
*/
|
*/
|
||||||
|
#ifndef _TEXT
|
||||||
#define _TEXT(x) L ## x
|
#define _TEXT(x) L ## x
|
||||||
|
#endif
|
||||||
|
#ifndef _T
|
||||||
#define _T(x) L ## x
|
#define _T(x) L ## x
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unicode functions
|
* Unicode functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue