include: Define RTL_BALANCED_NODE.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
22315440fc
commit
cd1a09be73
|
@ -19,6 +19,8 @@
|
||||||
#ifndef _NTDEF_
|
#ifndef _NTDEF_
|
||||||
#define _NTDEF_
|
#define _NTDEF_
|
||||||
|
|
||||||
|
#include <basetsd.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -48,4 +50,35 @@ typedef enum _WAIT_TYPE {
|
||||||
#define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000)
|
#define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000)
|
||||||
#define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000)
|
#define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000)
|
||||||
|
|
||||||
|
#define BASETYPES
|
||||||
|
typedef unsigned char UCHAR, *PUCHAR;
|
||||||
|
typedef unsigned short USHORT, *PUSHORT;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
typedef unsigned long ULONG, *PULONG;
|
||||||
|
#else
|
||||||
|
typedef unsigned int ULONG, *PULONG;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct _RTL_BALANCED_NODE
|
||||||
|
{
|
||||||
|
union
|
||||||
|
{
|
||||||
|
struct _RTL_BALANCED_NODE *Children[2];
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
struct _RTL_BALANCED_NODE *Left;
|
||||||
|
struct _RTL_BALANCED_NODE *Right;
|
||||||
|
} DUMMYSTRUCTNAME;
|
||||||
|
} DUMMYUNIONNAME;
|
||||||
|
|
||||||
|
union
|
||||||
|
{
|
||||||
|
UCHAR Red : 1;
|
||||||
|
UCHAR Balance : 2;
|
||||||
|
ULONG_PTR ParentValue;
|
||||||
|
} DUMMYUNIONNAME2;
|
||||||
|
} RTL_BALANCED_NODE, *PRTL_BALANCED_NODE;
|
||||||
|
|
||||||
|
#define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3
|
||||||
|
|
||||||
#endif /* _NTDEF_ */
|
#endif /* _NTDEF_ */
|
||||||
|
|
|
@ -239,13 +239,22 @@ extern "C" {
|
||||||
|
|
||||||
/* Standard data types */
|
/* Standard data types */
|
||||||
|
|
||||||
|
#ifndef BASETYPES
|
||||||
|
#define BASETYPES
|
||||||
|
typedef unsigned char UCHAR, *PUCHAR;
|
||||||
|
typedef unsigned short USHORT, *PUSHORT;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
typedef unsigned long ULONG, *PULONG;
|
||||||
|
#else
|
||||||
|
typedef unsigned int ULONG, *PULONG;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef void *LPVOID;
|
typedef void *LPVOID;
|
||||||
typedef const void *LPCVOID;
|
typedef const void *LPCVOID;
|
||||||
typedef int BOOL, *PBOOL, *LPBOOL;
|
typedef int BOOL, *PBOOL, *LPBOOL;
|
||||||
typedef unsigned char BYTE, *PBYTE, *LPBYTE;
|
typedef unsigned char BYTE, *PBYTE, *LPBYTE;
|
||||||
typedef unsigned char UCHAR, *PUCHAR;
|
|
||||||
typedef unsigned short WORD, *PWORD, *LPWORD;
|
typedef unsigned short WORD, *PWORD, *LPWORD;
|
||||||
typedef unsigned short USHORT, *PUSHORT;
|
|
||||||
typedef int INT, *PINT, *LPINT;
|
typedef int INT, *PINT, *LPINT;
|
||||||
typedef unsigned int UINT, *PUINT;
|
typedef unsigned int UINT, *PUINT;
|
||||||
typedef float FLOAT, *PFLOAT;
|
typedef float FLOAT, *PFLOAT;
|
||||||
|
@ -253,11 +262,9 @@ typedef char *PSZ;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
typedef long *LPLONG;
|
typedef long *LPLONG;
|
||||||
typedef unsigned long DWORD, *PDWORD, *LPDWORD;
|
typedef unsigned long DWORD, *PDWORD, *LPDWORD;
|
||||||
typedef unsigned long ULONG, *PULONG;
|
|
||||||
#else
|
#else
|
||||||
typedef int *LPLONG;
|
typedef int *LPLONG;
|
||||||
typedef unsigned int DWORD, *PDWORD, *LPDWORD;
|
typedef unsigned int DWORD, *PDWORD, *LPDWORD;
|
||||||
typedef unsigned int ULONG, *PULONG;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Macros to map Winelib names to the correct implementation name */
|
/* Macros to map Winelib names to the correct implementation name */
|
||||||
|
|
Loading…
Reference in New Issue