Commit d0ee9f93 authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid spaces before preprocessor directives, that's not portable.

parent beac1940
...@@ -378,10 +378,10 @@ struct IDirect3DDevice8Impl ...@@ -378,10 +378,10 @@ struct IDirect3DDevice8Impl
BOOL last_was_rhw; /* true iff last draw_primitive was in xyzrhw mode */ BOOL last_was_rhw; /* true iff last draw_primitive was in xyzrhw mode */
GLenum tracking_parm; /* Which source is tracking current colour */ GLenum tracking_parm; /* Which source is tracking current colour */
LONG tracking_color; /* used iff GL_COLOR_MATERIAL was enabled */ LONG tracking_color; /* used iff GL_COLOR_MATERIAL was enabled */
#define DISABLED_TRACKING 0 /* Disabled */ #define DISABLED_TRACKING 0 /* Disabled */
#define IS_TRACKING 1 /* tracking_parm is tracking diffuse color */ #define IS_TRACKING 1 /* tracking_parm is tracking diffuse color */
#define NEEDS_TRACKING 2 /* Tracking needs to be enabled when needed */ #define NEEDS_TRACKING 2 /* Tracking needs to be enabled when needed */
#define NEEDS_DISABLE 3 /* Tracking needs to be disabled when needed*/ #define NEEDS_DISABLE 3 /* Tracking needs to be disabled when needed*/
/* OpenGL related */ /* OpenGL related */
GLXContext glCtx; GLXContext glCtx;
......
...@@ -95,9 +95,9 @@ typedef struct ...@@ -95,9 +95,9 @@ typedef struct
*/ */
#ifdef ALLOW_UNALIGNED_ACCESS #ifdef ALLOW_UNALIGNED_ACCESS
#define MOVEABLE_PREFIX sizeof(HLOCAL16) # define MOVEABLE_PREFIX sizeof(HLOCAL16)
#else #else
#define MOVEABLE_PREFIX sizeof(int) # define MOVEABLE_PREFIX sizeof(int)
#endif #endif
......
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
Anyhow, the check is currently commented out Anyhow, the check is currently commented out
*/ */
#if CHECK_STACK #if CHECK_STACK
#ifdef __try # ifdef __try
#define __TRY __try # define __TRY __try
#define __EXCEPT __except # define __EXCEPT __except
#define __ENDTRY # define __ENDTRY
#else # else
#include "wine/exception.h" # include "wine/exception.h"
#endif # endif
#endif #endif
typedef BOOL (WINAPI *GetThreadPriorityBoost_t)(HANDLE,PBOOL); typedef BOOL (WINAPI *GetThreadPriorityBoost_t)(HANDLE,PBOOL);
......
...@@ -68,7 +68,7 @@ static BOOL MSCMS_init_lcms() ...@@ -68,7 +68,7 @@ static BOOL MSCMS_init_lcms()
} }
} }
#define LOAD_FUNCPTR(f) \ #define LOAD_FUNCPTR(f) \
if ((p##f = wine_dlsym( lcmshandle, #f, NULL, 0 )) == NULL) \ if ((p##f = wine_dlsym( lcmshandle, #f, NULL, 0 )) == NULL) \
goto sym_not_found; goto sym_not_found;
......
...@@ -6020,10 +6020,10 @@ static LPWSTR load_ttfname_from(LPCWSTR filename) ...@@ -6020,10 +6020,10 @@ static LPWSTR load_ttfname_from(LPCWSTR filename)
USHORT uStringLength; USHORT uStringLength;
USHORT uStringOffset; /* from start of storage area */ USHORT uStringOffset; /* from start of storage area */
}TT_NAME_RECORD; }TT_NAME_RECORD;
#define SWAPWORD(x) MAKEWORD(HIBYTE(x), LOBYTE(x)) #define SWAPWORD(x) MAKEWORD(HIBYTE(x), LOBYTE(x))
#define SWAPLONG(x) MAKELONG(SWAPWORD(HIWORD(x)), SWAPWORD(LOWORD(x))) #define SWAPLONG(x) MAKELONG(SWAPWORD(HIWORD(x)), SWAPWORD(LOWORD(x)))
handle = CreateFileW(filename ,GENERIC_READ, 0, NULL, OPEN_EXISTING, handle = CreateFileW(filename ,GENERIC_READ, 0, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, 0 ); FILE_ATTRIBUTE_NORMAL, 0 );
if (handle != INVALID_HANDLE_VALUE) if (handle != INVALID_HANDLE_VALUE)
......
...@@ -92,10 +92,10 @@ ...@@ -92,10 +92,10 @@
lack the following constants. */ lack the following constants. */
#ifndef CD_SECS #ifndef CD_SECS
#define CD_SECS 60 /* seconds per minute */ # define CD_SECS 60 /* seconds per minute */
#endif #endif
#ifndef CD_FRAMES #ifndef CD_FRAMES
#define CD_FRAMES 75 /* frames per second */ # define CD_FRAMES 75 /* frames per second */
#endif #endif
/* definitions taken from libdvdcss */ /* definitions taken from libdvdcss */
......
...@@ -1441,9 +1441,9 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io ...@@ -1441,9 +1441,9 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
break; break;
} }
#elif defined (__APPLE__) #elif defined (__APPLE__)
#include <IOKit/IOKitLib.h> # include <IOKit/IOKitLib.h>
#include <CoreFoundation/CFNumber.h> /* for kCFBooleanTrue, kCFBooleanFalse */ # include <CoreFoundation/CFNumber.h> /* for kCFBooleanTrue, kCFBooleanFalse */
#include <paths.h> # include <paths.h>
struct statfs stfs; struct statfs stfs;
info->DeviceType = FILE_DEVICE_DISK_FILE_SYSTEM; info->DeviceType = FILE_DEVICE_DISK_FILE_SYSTEM;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
/* For CoGetMalloc (MEMCTX_TASK is currently ignored) */ /* For CoGetMalloc (MEMCTX_TASK is currently ignored) */
#ifndef MEMCTX_TASK #ifndef MEMCTX_TASK
#define MEMCTX_TASK -1 # define MEMCTX_TASK -1
#endif #endif
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
......
...@@ -205,15 +205,16 @@ HRESULT WINAPI QUARTZ_DllCanUnloadNow() ...@@ -205,15 +205,16 @@ HRESULT WINAPI QUARTZ_DllCanUnloadNow()
} }
#define OUR_GUID_ENTRY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
{ { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } , #name },
static struct { static struct {
const GUID riid; const GUID riid;
const char *name; const char *name;
} InterfaceDesc[] = } InterfaceDesc[] =
{ {
#define OUR_GUID_ENTRY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ #include "uuids.h"
{ { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } , #name }, { { 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0} }, NULL }
#include "uuids.h"
{ { 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0} }, NULL }
}; };
/*********************************************************************** /***********************************************************************
......
...@@ -45,21 +45,21 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); ...@@ -45,21 +45,21 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
#define BUFFER_PARANOIA 20 #define BUFFER_PARANOIA 20
#if defined(__i386__) #if defined(__i386__)
#define LITTLE_ENDIAN_UINT32_WRITE(pchar, uint32) \ # define LITTLE_ENDIAN_UINT32_WRITE(pchar, uint32) \
(*((UINT32 *)(pchar)) = (uint32)) (*((UINT32 *)(pchar)) = (uint32))
#define LITTLE_ENDIAN_UINT32_READ(pchar) \ # define LITTLE_ENDIAN_UINT32_READ(pchar) \
(*((UINT32 *)(pchar))) (*((UINT32 *)(pchar)))
#else #else
/* these would work for i386 too, but less efficient */ /* these would work for i386 too, but less efficient */
#define LITTLE_ENDIAN_UINT32_WRITE(pchar, uint32) \ # define LITTLE_ENDIAN_UINT32_WRITE(pchar, uint32) \
(*(pchar) = LOBYTE(LOWORD(uint32)), \ (*(pchar) = LOBYTE(LOWORD(uint32)), \
*((pchar)+1) = HIBYTE(LOWORD(uint32)), \ *((pchar)+1) = HIBYTE(LOWORD(uint32)), \
*((pchar)+2) = LOBYTE(HIWORD(uint32)), \ *((pchar)+2) = LOBYTE(HIWORD(uint32)), \
*((pchar)+3) = HIBYTE(HIWORD(uint32)), \ *((pchar)+3) = HIBYTE(HIWORD(uint32)), \
(uint32)) /* allow as r-value */ (uint32)) /* allow as r-value */
#define LITTLE_ENDIAN_UINT32_READ(pchar) \ # define LITTLE_ENDIAN_UINT32_READ(pchar) \
(MAKELONG( \ (MAKELONG( \
MAKEWORD(*(pchar), *((pchar)+1)), \ MAKEWORD(*(pchar), *((pchar)+1)), \
MAKEWORD(*((pchar)+2), *((pchar)+3)))) MAKEWORD(*((pchar)+2), *((pchar)+3))))
...@@ -78,14 +78,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); ...@@ -78,14 +78,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
MAKEWORD(*((pchar)+1), *(pchar)))) MAKEWORD(*((pchar)+1), *(pchar))))
#ifdef NDR_LOCAL_IS_BIG_ENDIAN #ifdef NDR_LOCAL_IS_BIG_ENDIAN
#define NDR_LOCAL_UINT32_WRITE(pchar, uint32) \ # define NDR_LOCAL_UINT32_WRITE(pchar, uint32) \
BIG_ENDIAN_UINT32_WRITE(pchar, uint32) BIG_ENDIAN_UINT32_WRITE(pchar, uint32)
#define NDR_LOCAL_UINT32_READ(pchar) \ # define NDR_LOCAL_UINT32_READ(pchar) \
BIG_ENDIAN_UINT32_READ(pchar) BIG_ENDIAN_UINT32_READ(pchar)
#else #else
#define NDR_LOCAL_UINT32_WRITE(pchar, uint32) \ # define NDR_LOCAL_UINT32_WRITE(pchar, uint32) \
LITTLE_ENDIAN_UINT32_WRITE(pchar, uint32) LITTLE_ENDIAN_UINT32_WRITE(pchar, uint32)
#define NDR_LOCAL_UINT32_READ(pchar) \ # define NDR_LOCAL_UINT32_READ(pchar) \
LITTLE_ENDIAN_UINT32_READ(pchar) LITTLE_ENDIAN_UINT32_READ(pchar)
#endif #endif
......
...@@ -86,25 +86,25 @@ ...@@ -86,25 +86,25 @@
/* SDH - 05/05/95 - TWUNK */ /* SDH - 05/05/95 - TWUNK */
/* For common code between 16 and 32 bits. */ /* For common code between 16 and 32 bits. */
#ifdef WIN32 # ifdef WIN32
#define TW_HUGE # define TW_HUGE
#else /* WIN32 */ # else /* WIN32 */
#define TW_HUGE huge # define TW_HUGE huge
#endif /* WIN32 */ # endif /* WIN32 */
typedef BYTE TW_HUGE * HPBYTE; typedef BYTE TW_HUGE * HPBYTE;
typedef void TW_HUGE * HPVOID; typedef void TW_HUGE * HPVOID;
#endif /* _MSWIN_ */ #endif /* _MSWIN_ */
#ifdef _MAC_ #ifdef _MAC_
#define PASCAL pascal #define PASCAL pascal
#define FAR #define FAR
typedef Handle TW_HANDLE; typedef Handle TW_HANDLE;
typedef char *TW_MEMREF; typedef char *TW_MEMREF;
#endif /* _MAC_ */ #endif /* _MAC_ */
#ifdef _UNIX_ #ifdef _UNIX_
/* #define PASCAL pascal */ /* #define PASCAL pascal */
#define FAR #define FAR
typedef unsigned char *TW_HANDLE; typedef unsigned char *TW_HANDLE;
typedef unsigned char *TW_MEMREF; typedef unsigned char *TW_MEMREF;
#endif /* _UNIX_ */ #endif /* _UNIX_ */
...@@ -1827,19 +1827,19 @@ typedef TW_UINT16 (*DSMENTRYPROC)(pTW_IDENTITY, pTW_IDENTITY, ...@@ -1827,19 +1827,19 @@ typedef TW_UINT16 (*DSMENTRYPROC)(pTW_IDENTITY, pTW_IDENTITY,
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
#ifdef _MSWIN_ #ifdef _MSWIN_
#ifdef _WIN32 # ifdef _WIN32
__declspec(dllexport) TW_UINT16 FAR PASCAL DS_Entry (pTW_IDENTITY pOrigin, __declspec(dllexport) TW_UINT16 FAR PASCAL DS_Entry (pTW_IDENTITY pOrigin,
TW_UINT32 DG, TW_UINT32 DG,
TW_UINT16 DAT, TW_UINT16 DAT,
TW_UINT16 MSG, TW_UINT16 MSG,
TW_MEMREF pData); TW_MEMREF pData);
#else /* _WIN32 */ # else /* _WIN32 */
TW_UINT16 FAR PASCAL DS_Entry (pTW_IDENTITY pOrigin, TW_UINT16 FAR PASCAL DS_Entry (pTW_IDENTITY pOrigin,
TW_UINT32 DG, TW_UINT32 DG,
TW_UINT16 DAT, TW_UINT16 DAT,
TW_UINT16 MSG, TW_UINT16 MSG,
TW_MEMREF pData); TW_MEMREF pData);
#endif /* _WIN32 */ # endif /* _WIN32 */
typedef TW_UINT16 (FAR PASCAL *DSENTRYPROC) (pTW_IDENTITY pOrigin, typedef TW_UINT16 (FAR PASCAL *DSENTRYPROC) (pTW_IDENTITY pOrigin,
TW_UINT32 DG, TW_UINT32 DG,
......
...@@ -327,7 +327,7 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o ...@@ -327,7 +327,7 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o
/* Setup the texture operations texture stage states */ /* Setup the texture operations texture stage states */
void set_tex_op(IWineD3DDevice *iface, BOOL isAlpha, int Stage, D3DTEXTUREOP op, DWORD arg1, DWORD arg2, DWORD arg3) void set_tex_op(IWineD3DDevice *iface, BOOL isAlpha, int Stage, D3DTEXTUREOP op, DWORD arg1, DWORD arg2, DWORD arg3)
{ {
#define GLINFO_LOCATION ((IWineD3DImpl *)(This->wineD3D))->gl_info #define GLINFO_LOCATION ((IWineD3DImpl *)(This->wineD3D))->gl_info
GLenum src1, src2, src3; GLenum src1, src2, src3;
GLenum opr1, opr2, opr3; GLenum opr1, opr2, opr3;
GLenum comb_target; GLenum comb_target;
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
#if defined(HAVE_FLOAT_H) #if defined(HAVE_FLOAT_H)
#include <float.h> # include <float.h>
#endif #endif
#if !defined(PI) #if !defined(PI)
#define PI M_PI # define PI M_PI
#endif #endif
#include "psdrv.h" #include "psdrv.h"
#include "wine/debug.h" #include "wine/debug.h"
......
...@@ -352,7 +352,7 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo) ...@@ -352,7 +352,7 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo)
lpInfo->dwZpos = jstck->z + 32767; lpInfo->dwZpos = jstck->z + 32767;
if (lpInfo->dwFlags & JOY_RETURNR) if (lpInfo->dwFlags & JOY_RETURNR)
lpInfo->dwRpos = jstck->r + 32767; lpInfo->dwRpos = jstck->r + 32767;
#ifdef BODGE_THE_HAT # ifdef BODGE_THE_HAT
else if (lpInfo->dwFlags & JOY_RETURNBUTTONS) else if (lpInfo->dwFlags & JOY_RETURNBUTTONS)
{ {
if (jstck->r > 0) if (jstck->r > 0)
...@@ -360,10 +360,10 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo) ...@@ -360,10 +360,10 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo)
else if (jstck->r < 0) else if (jstck->r < 0)
lpInfo->dwButtons |= 1<<8; lpInfo->dwButtons |= 1<<8;
} }
#endif # endif
if (lpInfo->dwFlags & JOY_RETURNU) if (lpInfo->dwFlags & JOY_RETURNU)
lpInfo->dwUpos = jstck->u + 32767; lpInfo->dwUpos = jstck->u + 32767;
#ifdef BODGE_THE_HAT # ifdef BODGE_THE_HAT
else if (lpInfo->dwFlags & JOY_RETURNBUTTONS) else if (lpInfo->dwFlags & JOY_RETURNBUTTONS)
{ {
if (jstck->u > 0) if (jstck->u > 0)
...@@ -371,7 +371,7 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo) ...@@ -371,7 +371,7 @@ static LONG JSTCK_GetPosEx(DWORD dwDevID, LPJOYINFOEX lpInfo)
else if (jstck->u < 0) else if (jstck->u < 0)
lpInfo->dwButtons |= 1<<10; lpInfo->dwButtons |= 1<<10;
} }
#endif # endif
if (lpInfo->dwFlags & JOY_RETURNV) if (lpInfo->dwFlags & JOY_RETURNV)
lpInfo->dwVpos = jstck->v + 32767; lpInfo->dwVpos = jstck->v + 32767;
......
...@@ -589,7 +589,7 @@ DWORD WINAPI WsControl(DWORD protocol, ...@@ -589,7 +589,7 @@ DWORD WINAPI WsControl(DWORD protocol,
case WSCNTL_TCPIP_ICMP_ECHO: case WSCNTL_TCPIP_ICMP_ECHO:
{ {
unsigned int addr = *(unsigned int*)pRequestInfo; unsigned int addr = *(unsigned int*)pRequestInfo;
#if 0 #if 0
int timeout= *(unsigned int*)(inbuf+4); int timeout= *(unsigned int*)(inbuf+4);
short x1 = *(unsigned short*)(inbuf+8); short x1 = *(unsigned short*)(inbuf+8);
short sendbufsize = *(unsigned short*)(inbuf+10); short sendbufsize = *(unsigned short*)(inbuf+10);
...@@ -597,7 +597,7 @@ DWORD WINAPI WsControl(DWORD protocol, ...@@ -597,7 +597,7 @@ DWORD WINAPI WsControl(DWORD protocol,
char ttl = *(unsigned char*)(inbuf+13); char ttl = *(unsigned char*)(inbuf+13);
char service = *(unsigned char*)(inbuf+14); char service = *(unsigned char*)(inbuf+14);
char type= *(unsigned char*)(inbuf+15); /* 0x2: don't fragment*/ char type= *(unsigned char*)(inbuf+15); /* 0x2: don't fragment*/
#endif #endif
FIXME("(ICMP_ECHO) to 0x%08x stub \n", addr); FIXME("(ICMP_ECHO) to 0x%08x stub \n", addr);
break; break;
......
...@@ -2335,10 +2335,10 @@ BOOL X11DRV_GetClipboardData(UINT wFormat, HANDLE16* phData16, HANDLE* phData32) ...@@ -2335,10 +2335,10 @@ BOOL X11DRV_GetClipboardData(UINT wFormat, HANDLE16* phData16, HANDLE* phData32)
{ {
FIXME("\timplement function CopyMetaFilePict32to16\n"); FIXME("\timplement function CopyMetaFilePict32to16\n");
FIXME("\tin the appropriate file.\n"); FIXME("\tin the appropriate file.\n");
#ifdef SOMEONE_IMPLEMENTED_ME #ifdef SOMEONE_IMPLEMENTED_ME
CopyMetaFilePict32to16(GlobalLock16(lpRender->hData16), CopyMetaFilePict32to16(GlobalLock16(lpRender->hData16),
GlobalLock(lpRender->hData32)); GlobalLock(lpRender->hData32));
#endif #endif
} }
else else
{ {
......
...@@ -123,47 +123,47 @@ typedef ULONGLONG SAMPLE_POSITION, *LPSAMPLE_POSITION; ...@@ -123,47 +123,47 @@ typedef ULONGLONG SAMPLE_POSITION, *LPSAMPLE_POSITION;
* Flags * Flags
*/ */
#ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_ #ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_
#define _DIRECTAUDIO_PRIORITIES_DEFINED_ #define _DIRECTAUDIO_PRIORITIES_DEFINED_
#define DAUD_CRITICAL_VOICE_PRIORITY 0xF0000000 #define DAUD_CRITICAL_VOICE_PRIORITY 0xF0000000
#define DAUD_HIGH_VOICE_PRIORITY 0xC0000000 #define DAUD_HIGH_VOICE_PRIORITY 0xC0000000
#define DAUD_STANDARD_VOICE_PRIORITY 0x80000000 #define DAUD_STANDARD_VOICE_PRIORITY 0x80000000
#define DAUD_LOW_VOICE_PRIORITY 0x40000000 #define DAUD_LOW_VOICE_PRIORITY 0x40000000
#define DAUD_PERSIST_VOICE_PRIORITY 0x10000000 #define DAUD_PERSIST_VOICE_PRIORITY 0x10000000
#define DAUD_CHAN1_VOICE_PRIORITY_OFFSET 0x0000000E #define DAUD_CHAN1_VOICE_PRIORITY_OFFSET 0x0000000E
#define DAUD_CHAN2_VOICE_PRIORITY_OFFSET 0x0000000D #define DAUD_CHAN2_VOICE_PRIORITY_OFFSET 0x0000000D
#define DAUD_CHAN3_VOICE_PRIORITY_OFFSET 0x0000000C #define DAUD_CHAN3_VOICE_PRIORITY_OFFSET 0x0000000C
#define DAUD_CHAN4_VOICE_PRIORITY_OFFSET 0x0000000B #define DAUD_CHAN4_VOICE_PRIORITY_OFFSET 0x0000000B
#define DAUD_CHAN5_VOICE_PRIORITY_OFFSET 0x0000000A #define DAUD_CHAN5_VOICE_PRIORITY_OFFSET 0x0000000A
#define DAUD_CHAN6_VOICE_PRIORITY_OFFSET 0x00000009 #define DAUD_CHAN6_VOICE_PRIORITY_OFFSET 0x00000009
#define DAUD_CHAN7_VOICE_PRIORITY_OFFSET 0x00000008 #define DAUD_CHAN7_VOICE_PRIORITY_OFFSET 0x00000008
#define DAUD_CHAN8_VOICE_PRIORITY_OFFSET 0x00000007 #define DAUD_CHAN8_VOICE_PRIORITY_OFFSET 0x00000007
#define DAUD_CHAN9_VOICE_PRIORITY_OFFSET 0x00000006 #define DAUD_CHAN9_VOICE_PRIORITY_OFFSET 0x00000006
#define DAUD_CHAN10_VOICE_PRIORITY_OFFSET 0x0000000F #define DAUD_CHAN10_VOICE_PRIORITY_OFFSET 0x0000000F
#define DAUD_CHAN11_VOICE_PRIORITY_OFFSET 0x00000005 #define DAUD_CHAN11_VOICE_PRIORITY_OFFSET 0x00000005
#define DAUD_CHAN12_VOICE_PRIORITY_OFFSET 0x00000004 #define DAUD_CHAN12_VOICE_PRIORITY_OFFSET 0x00000004
#define DAUD_CHAN13_VOICE_PRIORITY_OFFSET 0x00000003 #define DAUD_CHAN13_VOICE_PRIORITY_OFFSET 0x00000003
#define DAUD_CHAN14_VOICE_PRIORITY_OFFSET 0x00000002 #define DAUD_CHAN14_VOICE_PRIORITY_OFFSET 0x00000002
#define DAUD_CHAN15_VOICE_PRIORITY_OFFSET 0x00000001 #define DAUD_CHAN15_VOICE_PRIORITY_OFFSET 0x00000001
#define DAUD_CHAN16_VOICE_PRIORITY_OFFSET 0x00000000 #define DAUD_CHAN16_VOICE_PRIORITY_OFFSET 0x00000000
#define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET)
#define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET) #define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET)
#endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */ #endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */
#define DMUS_CLOCKF_GLOBAL 0x1 #define DMUS_CLOCKF_GLOBAL 0x1
......
...@@ -90,32 +90,32 @@ ...@@ -90,32 +90,32 @@
/* proc header: oiflags, NdrFcLong(rpcflags), NdrFcShort(procnum), NdrFcShort(stacksiz), /* proc header: oiflags, NdrFcLong(rpcflags), NdrFcShort(procnum), NdrFcShort(stacksiz),
* oi2 header: NdrFcShort(clientbuf), NdrFcShort(servbuf), oi2flags, parmcount * oi2 header: NdrFcShort(clientbuf), NdrFcShort(servbuf), oi2flags, parmcount
* oi2 parameters: NdrFcShort(flags), NdrFcShort(stackofs), NdrFcShort(typeofs)/basetype */ * oi2 parameters: NdrFcShort(flags), NdrFcShort(stackofs), NdrFcShort(typeofs)/basetype */
#define RPC_FC_PROC_OIF_FULLPTR 0x01 #define RPC_FC_PROC_OIF_FULLPTR 0x01
#define RPC_FC_PROC_OIF_RPCSSALLOC 0x02 #define RPC_FC_PROC_OIF_RPCSSALLOC 0x02
#define RPC_FC_PROC_OIF_OBJECT 0x04 #define RPC_FC_PROC_OIF_OBJECT 0x04
#define RPC_FC_PROC_OIF_RPCFLAGS 0x08 #define RPC_FC_PROC_OIF_RPCFLAGS 0x08
#define RPC_FC_PROC_OIF_OBJ_V2 0x20 #define RPC_FC_PROC_OIF_OBJ_V2 0x20
#define RPC_FC_PROC_OIF_NEWINIT 0x40 #define RPC_FC_PROC_OIF_NEWINIT 0x40
#define RPC_FC_PROC_OI2F_SRVMUSTSIZE 0x01 #define RPC_FC_PROC_OI2F_SRVMUSTSIZE 0x01
#define RPC_FC_PROC_OI2F_CLTMUSTSIZE 0x02 #define RPC_FC_PROC_OI2F_CLTMUSTSIZE 0x02
#define RPC_FC_PROC_OI2F_HASRETURN 0x04 #define RPC_FC_PROC_OI2F_HASRETURN 0x04
#define RPC_FC_PROC_OI2F_HASPIPES 0x08 #define RPC_FC_PROC_OI2F_HASPIPES 0x08
#define RPC_FC_PROC_OI2F_HASASYNCUUID 0x20 #define RPC_FC_PROC_OI2F_HASASYNCUUID 0x20
#define RPC_FC_PROC_OI2F_HASEXTS 0x40 #define RPC_FC_PROC_OI2F_HASEXTS 0x40
#define RPC_FC_PROC_OI2F_HASASYNCHND 0x80 #define RPC_FC_PROC_OI2F_HASASYNCHND 0x80
#define RPC_FC_PROC_PF_MUSTSIZE 0x0001 #define RPC_FC_PROC_PF_MUSTSIZE 0x0001
#define RPC_FC_PROC_PF_MUSTFREE 0x0002 #define RPC_FC_PROC_PF_MUSTFREE 0x0002
#define RPC_FC_PROC_PF_PIPE 0x0004 #define RPC_FC_PROC_PF_PIPE 0x0004
#define RPC_FC_PROC_PF_IN 0x0008 #define RPC_FC_PROC_PF_IN 0x0008
#define RPC_FC_PROC_PF_OUT 0x0010 #define RPC_FC_PROC_PF_OUT 0x0010
#define RPC_FC_PROC_PF_RETURN 0x0020 #define RPC_FC_PROC_PF_RETURN 0x0020
#define RPC_FC_PROC_PF_BASETYPE 0x0040 #define RPC_FC_PROC_PF_BASETYPE 0x0040
#define RPC_FC_PROC_PF_BYVAL 0x0080 #define RPC_FC_PROC_PF_BYVAL 0x0080
#define RPC_FC_PROC_PF_SIMPLEREF 0x0100 #define RPC_FC_PROC_PF_SIMPLEREF 0x0100
#define RPC_FC_PROC_PF_DONTFREEINST 0x0200 #define RPC_FC_PROC_PF_DONTFREEINST 0x0200
#define RPC_FC_PROC_PF_SAVEASYNC 0x0400 #define RPC_FC_PROC_PF_SAVEASYNC 0x0400
#define RPC_FC_PROC_PF_SRVALLOCSIZE 0xe000 /* in 8 byte units */ #define RPC_FC_PROC_PF_SRVALLOCSIZE 0xe000 /* in 8 byte units */
#define RPC_FC_PROC_EXT_NEWCORRDESC 0x01 #define RPC_FC_PROC_EXT_NEWCORRDESC 0x01
#define RPC_FC_PROC_EXT_CLIENTCORRCHECK 0x02 #define RPC_FC_PROC_EXT_CLIENTCORRCHECK 0x02
#define RPC_FC_PROC_EXT_SERVERCORRCHECK 0x04 #define RPC_FC_PROC_EXT_SERVERCORRCHECK 0x04
......
...@@ -92,17 +92,17 @@ long RPCSS_GetMaxLazyTimeout(void) ...@@ -92,17 +92,17 @@ long RPCSS_GetMaxLazyTimeout(void)
static SYSTEMTIME lazy_timeout_time; static SYSTEMTIME lazy_timeout_time;
#if defined(NONAMELESSSTRUCT) #if defined(NONAMELESSSTRUCT)
#define FILETIME_TO_ULARGEINT(filetime, ularge) \ # define FILETIME_TO_ULARGEINT(filetime, ularge) \
( ularge.u.LowPart = filetime.dwLowDateTime, \ ( ularge.u.LowPart = filetime.dwLowDateTime, \
ularge.u.HighPart = filetime.dwHighDateTime ) ularge.u.HighPart = filetime.dwHighDateTime )
#define ULARGEINT_TO_FILETIME(ularge, filetime) \ # define ULARGEINT_TO_FILETIME(ularge, filetime) \
( filetime.dwLowDateTime = ularge.u.LowPart, \ ( filetime.dwLowDateTime = ularge.u.LowPart, \
filetime.dwHighDateTime = ularge.u.HighPart ) filetime.dwHighDateTime = ularge.u.HighPart )
#else #else
#define FILETIME_TO_ULARGEINT(filetime, ularge) \ # define FILETIME_TO_ULARGEINT(filetime, ularge) \
( ularge.LowPart = filetime.dwLowDateTime, \ ( ularge.LowPart = filetime.dwLowDateTime, \
ularge.HighPart = filetime.dwHighDateTime ) ularge.HighPart = filetime.dwHighDateTime )
#define ULARGEINT_TO_FILETIME(ularge, filetime) \ # define ULARGEINT_TO_FILETIME(ularge, filetime) \
( filetime.dwLowDateTime = ularge.LowPart, \ ( filetime.dwLowDateTime = ularge.LowPart, \
filetime.dwHighDateTime = ularge.HighPart ) filetime.dwHighDateTime = ularge.HighPart )
#endif /* NONAMELESSSTRUCT */ #endif /* NONAMELESSSTRUCT */
......
...@@ -349,11 +349,11 @@ BOOL PerfDataGetImageName(ULONG Index, LPTSTR lpImageName, int nMaxCount) ...@@ -349,11 +349,11 @@ BOOL PerfDataGetImageName(ULONG Index, LPTSTR lpImageName, int nMaxCount)
EnterCriticalSection(&PerfDataCriticalSection); EnterCriticalSection(&PerfDataCriticalSection);
if (Index < ProcessCount) { if (Index < ProcessCount) {
#ifdef _UNICODE #ifdef _UNICODE
wcsncpy(lpImageName, pPerfData[Index].ImageName, nMaxCount); wcsncpy(lpImageName, pPerfData[Index].ImageName, nMaxCount);
#else #else
WideCharToMultiByte(CP_ACP, 0, pPerfData[Index].ImageName, -1, lpImageName, nMaxCount, NULL, NULL); WideCharToMultiByte(CP_ACP, 0, pPerfData[Index].ImageName, -1, lpImageName, nMaxCount, NULL, NULL);
#endif #endif
bSuccessful = TRUE; bSuccessful = TRUE;
} else { } else {
...@@ -386,11 +386,11 @@ BOOL PerfDataGetUserName(ULONG Index, LPTSTR lpUserName, int nMaxCount) ...@@ -386,11 +386,11 @@ BOOL PerfDataGetUserName(ULONG Index, LPTSTR lpUserName, int nMaxCount)
EnterCriticalSection(&PerfDataCriticalSection); EnterCriticalSection(&PerfDataCriticalSection);
if (Index < ProcessCount) { if (Index < ProcessCount) {
#ifdef _UNICODE #ifdef _UNICODE
wcsncpy(lpUserName, pPerfData[Index].UserName, nMaxCount); wcsncpy(lpUserName, pPerfData[Index].UserName, nMaxCount);
#else #else
WideCharToMultiByte(CP_ACP, 0, pPerfData[Index].UserName, -1, lpUserName, nMaxCount, NULL, NULL); WideCharToMultiByte(CP_ACP, 0, pPerfData[Index].UserName, -1, lpUserName, nMaxCount, NULL, NULL);
#endif #endif
bSuccessful = TRUE; bSuccessful = TRUE;
} else { } else {
......
...@@ -176,11 +176,11 @@ void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam) ...@@ -176,11 +176,11 @@ void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
{ {
switch (pnmh->code) switch (pnmh->code)
{ {
#if 0 #if 0
case LVN_ITEMCHANGED: case LVN_ITEMCHANGED:
ProcessPageUpdate(); ProcessPageUpdate();
break; break;
#endif #endif
case LVN_GETDISPINFO: case LVN_GETDISPINFO:
......
...@@ -61,9 +61,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(curses); ...@@ -61,9 +61,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(curses);
#if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) #if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H)
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
#define CURSES_NAME "ncurses" # define CURSES_NAME "ncurses"
#else #else
#define CURSES_NAME "curses" # define CURSES_NAME "curses"
#endif #endif
struct inner_data_curse struct inner_data_curse
......
...@@ -91,13 +91,13 @@ typedef struct tagBOARD ...@@ -91,13 +91,13 @@ typedef struct tagBOARD
POINT press; POINT press;
/* defines for mb */ /* defines for mb */
#define MB_NONE 0 #define MB_NONE 0
#define MB_LEFTDOWN 1 #define MB_LEFTDOWN 1
#define MB_LEFTUP 2 #define MB_LEFTUP 2
#define MB_RIGHTDOWN 3 #define MB_RIGHTDOWN 3
#define MB_RIGHTUP 4 #define MB_RIGHTUP 4
#define MB_BOTHDOWN 5 #define MB_BOTHDOWN 5
#define MB_BOTHUP 6 #define MB_BOTHUP 6
unsigned mb; unsigned mb;
FACE_BMP face_bmp; FACE_BMP face_bmp;
...@@ -111,10 +111,10 @@ typedef struct tagBOARD ...@@ -111,10 +111,10 @@ typedef struct tagBOARD
} box [MAX_COLS + 2] [MAX_ROWS + 2]; } box [MAX_COLS + 2] [MAX_ROWS + 2];
/* defines for FlagType */ /* defines for FlagType */
#define NORMAL 0 #define NORMAL 0
#define QUESTION 1 #define QUESTION 1
#define FLAG 2 #define FLAG 2
#define COMPLETE 3 #define COMPLETE 3
} BOARD; } BOARD;
......
...@@ -735,11 +735,11 @@ dlginit : tDLGINIT loadmemopts file_raw { $$ = new_dlginit($3, $2); } ...@@ -735,11 +735,11 @@ dlginit : tDLGINIT loadmemopts file_raw { $$ = new_dlginit($3, $2); }
/* ------------------------------ UserType ------------------------------ */ /* ------------------------------ UserType ------------------------------ */
userres : usertype loadmemopts file_raw { userres : usertype loadmemopts file_raw {
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
if(pedantic && byteorder != WRC_BO_LITTLE) if(pedantic && byteorder != WRC_BO_LITTLE)
#else #else
if(pedantic && byteorder == WRC_BO_BIG) if(pedantic && byteorder == WRC_BO_BIG)
#endif #endif
yywarning("Byteordering is not little-endian and type cannot be interpreted"); yywarning("Byteordering is not little-endian and type cannot be interpreted");
$$ = new_user($1, $3, $2); $$ = new_user($1, $3, $2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment