Move the inclusion of <debug.h> to individual files and consolidate the inclusion of DDRAW/D3D headers a bit.

svn path=/trunk/; revision=16320
This commit is contained in:
Filip Navara 2005-06-29 07:09:25 +00:00
parent 1d02274287
commit db07afe07a
80 changed files with 236 additions and 37 deletions

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* Static data */
unsigned char notmask[2] = { 0x0f, 0xf0 };

View file

@ -20,6 +20,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID
DIB_16BPP_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)
{

View file

@ -19,6 +19,9 @@
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID
DIB_1BPP_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)
{

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID
DIB_24BPP_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)
{

View file

@ -17,10 +17,11 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID
DIB_32BPP_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID
DIB_4BPP_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)
{

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID
DIB_8BPP_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)
{

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 2/10/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
typedef BOOLEAN STDCALL (*PBLTRECTFUNC)(SURFOBJ* OutputObj,
SURFOBJ* InputObj,
SURFOBJ* Mask,

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 3/7/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 21/8/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static inline int
CompareRightDown(const PRECT r1, const PRECT r2)
{

View file

@ -25,8 +25,12 @@
* REVISION HISTORY:
* 8/18/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 11/7/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 3/7/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -25,8 +25,11 @@
* REVISION HISTORY:
* 04/01/2005: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*!\brief Called when the process is terminated.
*

View file

@ -1,5 +1,8 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 2/10/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL
STDCALL
EngCreateEvent ( OUT PEVENT *Event )

View file

@ -25,8 +25,12 @@
* PROGRAMER: Jason Filby
* REVISION HISTORY:
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL
STDCALL
EngRestoreFloatingPointState ( IN VOID *Buffer )

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 3/7/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* MACROS *********************************************************************/
const LONG LINC[2] = {-1, 1};

View file

@ -18,8 +18,12 @@
*
* $Id$
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static void FASTCALL
TranslateRects(RECT_ENUM *RectEnum, POINTL* Translate)
{

View file

@ -29,6 +29,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
typedef struct _USERMEMHEADER
{
ULONG Tag;

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL STDCALL
IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave,
SURFOBJ *DestObj,

View file

@ -26,8 +26,12 @@
* 06-06-2001 CSH Created
*/
/* INCLUDES ******************************************************************/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS *****************************************************************/
INT INTERNAL_CALL

View file

@ -29,6 +29,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL STDCALL FillSolid(SURFOBJ *Surface, PRECTL pRect, ULONG iColor)
{
LONG y;

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 11/7/1999: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -24,8 +24,12 @@
* FILE: subsys/win32k/eng/perfcnt.c
* PROGRAMER: Ge van Geldorp
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -1,5 +1,8 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* @implemented
*/

View file

@ -30,8 +30,12 @@
* - Create a GDI bitmap with all formats, perform all drawing operations on them, render to VGA surface
* refer to \test\microwin\src\engine\devdraw.c for info on correct pixel plotting for various formats
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
enum Rle_EscapeCodes
{
RLE_EOL = 0, /* End of line */

View file

@ -26,8 +26,11 @@
* REVISION HISTORY:
* 4/6/2004: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL STDCALL
EngTransparentBlt(SURFOBJ *Dest,

View file

@ -31,6 +31,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* Calls the WNDOBJCHANGEPROC of the given WNDOBJ
*/

View file

@ -29,6 +29,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static inline ULONG
ShiftAndMask(XLATEGDI *XlateGDI, ULONG Color)
{

View file

@ -31,6 +31,7 @@
#include <include/input.h>
#include <include/inteng.h>
#include <include/intgdi.h>
#include <include/intddraw.h>
#include <include/menu.h>
#include <include/monitor.h>
#include <include/mouse.h>

View file

@ -19,6 +19,7 @@
/* $Id$
*
*/
#include <w32k.h>
#define NDEBUG

View file

@ -20,12 +20,12 @@
*
* Entry Point for win32k.sys
*/
#include <win32k/ntddraw.h> /* FIXME: FIX THIS! */
#include <w32k.h>
#include <win32k/ntddraw.h>
#include <include/napi.h>
#define NDEBUG
#include <win32k/debug1.h>
#include <debug.h>
BOOL INTERNAL_CALL GDI_CleanupForProcess (struct _EPROCESS *Process);

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 06-06-2001 CSH Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
VOID FASTCALL
SetLastNtError(NTSTATUS Status)
{

View file

@ -1,5 +1,4 @@
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Native DirectDraw implementation
@ -8,14 +7,8 @@
* REVISION HISTORY:
* 25-10-2003 PB Created
*/
/* FIXME: FOR THE LOVE OF GOD SOMEONE PLEASE FIX THIS FUCKFEST */
#include <ddk/ntddk.h>
#include <win32k/ntddraw.h>
#include <ddk/winddi.h>
#include <w32k.h>
#include <win32k/win32k.h>
#include <include/intddraw.h>
#include <win32k/gdiobj.h>
#define NDEBUG
#include <debug.h>

View file

@ -1,5 +1,4 @@
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Native DirectDraw stubs
@ -8,12 +7,8 @@
* REVISION HISTORY:
* 25-10-2003 PB Created
*/
/* FIXME: FOR THE LOVE OF GOD SOMEONE PLEASE FIX THIS FUCKFEST */
#include <ddk/ntddk.h>
#include <win32k/ntddraw.h>
#include <ddk/winddi.h>
#include <w32k.h>
#include <win32k/win32k.h>
#define NDEBUG
#include <debug.h>

View file

@ -48,6 +48,7 @@
*/
/* INCLUDES ******************************************************************/
#include <w32k.h>
#define NDEBUG

View file

@ -9,6 +9,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static HANDLE WindowsApiPort = NULL;
PEPROCESS CsrProcess = NULL;

View file

@ -38,6 +38,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static PAGED_LOOKASIDE_LIST ProcessLookasideList;
static LIST_ENTRY CurIconList;
static FAST_MUTEX CurIconListLock;

View file

@ -28,8 +28,12 @@
*/
/* INCLUDES ******************************************************************/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* GLOBALS *******************************************************************/
/* Currently active desktop */

View file

@ -22,7 +22,6 @@
#include <w32k.h>
#define NDEBUG
#include <win32k/debug1.h>
#include <debug.h>
HWND FASTCALL

View file

@ -32,7 +32,7 @@
#include <w32k.h>
#define NDEBUG
#include <win32k/debug1.h>
#include <debug.h>
#define HOOKID_TO_INDEX(HookId) (HookId - WH_MINHOOK)

View file

@ -34,7 +34,6 @@
#define NDEBUG
#include <debug.h>
/* GLOBALS *******************************************************************/
/* FUNCTIONS *****************************************************************/

View file

@ -30,9 +30,11 @@
/* INCLUDES ******************************************************************/
#include <w32k.h>
#include <rosrtl/string.h>
#include <ddk/ntddkbd.h>
#define NDEBUG
#include <debug.h>
/* GLOBALS *******************************************************************/
static HANDLE MouseDeviceHandle;

View file

@ -30,7 +30,6 @@
/* INCLUDES ******************************************************************/
#include <w32k.h>
#include <pseh.h>
#define NDEBUG
#include <debug.h>

View file

@ -35,7 +35,7 @@
#define MONITOR_DEFAULTTOPRIMARY 1
#define MONITOR_DEFAULTTONEAREST 2
//#define NDEBUG
#define NDEBUG
#include <debug.h>
/* GLOBALS *******************************************************************/

View file

@ -32,7 +32,6 @@
#include <w32k.h>
#define NDEBUG
#include <win32k/debug1.h>
#include <debug.h>
/* GLOBALS *******************************************************************/

View file

@ -33,7 +33,7 @@
#include <w32k.h>
#define NDEBUG
#include <win32k/debug1.h>
#include <debug.h>
#define DCX_USESTYLE 0x10000

View file

@ -30,7 +30,7 @@
#include <w32k.h>
//#define NDEBUG
#define NDEBUG
#include <debug.h>
typedef struct _PROPLISTITEM

View file

@ -32,7 +32,7 @@
#include <w32k.h>
#undef NDEBUG
#define NDEBUG
#include <debug.h>
/* GLOBALS *******************************************************************/

View file

@ -28,7 +28,6 @@
#include <w32k.h>
#define NDEBUG
#include <win32k/debug1.h>
#include <debug.h>
HRGN FASTCALL

View file

@ -30,6 +30,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static WndProcHandle *WndProcHandlesArray = 0;
static WORD WndProcHandlesArraySize = 0;
#define WPH_SIZE 0x40 /* the size to add to the WndProcHandle array each time */

View file

@ -20,6 +20,9 @@
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/******************************************************************
*
* *Very* simple bezier drawing code,

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
#define IN_RECT(r,x,y) \
( \
(x) >= (r).left && \

View file

@ -19,8 +19,12 @@
*
* $Id$
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
static const USHORT HatchBrushes[NB_HATCH_STYLES][8] =
{
{0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00}, /* HS_HORIZONTAL */

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
int FASTCALL
CLIPPING_UpdateGCRegion(DC* Dc)
{

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
// FIXME: Use PXLATEOBJ logicalToSystem instead of int *mapping
int COLOR_gapStart = 256;

View file

@ -26,8 +26,12 @@
*/
/* INCLUDES ******************************************************************/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS *****************************************************************/
BOOL FASTCALL

View file

@ -21,8 +21,12 @@
* DC.C - Device context functions
*
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
#ifndef OBJ_COLORSPACE
#define OBJ_COLORSPACE (14)
#endif

View file

@ -18,8 +18,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <w32k.h>
#include <pseh.h>
#define NDEBUG
#include <debug.h>
UINT STDCALL
NtGdiSetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, CONST RGBQUAD *Colors)

View file

@ -16,8 +16,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/*
* a couple macros to fill a single pixel or a line
*/

View file

@ -21,6 +21,7 @@
*
* $Id$
*/
#include <w32k.h>
#define NDEBUG

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL
STDCALL
NtGdiCheckColorsInGamut(HDC hDC,

View file

@ -16,8 +16,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
// Some code from the WINE project source (www.winehq.com)

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
HENHMETAFILE
STDCALL
NtGdiCloseEnhMetaFile(HDC hDC)

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
BOOL
STDCALL
NtGdiGdiFlush(VOID)

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
#ifndef NO_MAPPING
static int PALETTE_firstFree = 0;
static unsigned char PALETTE_freeList[256];

View file

@ -17,9 +17,13 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#include <win32k/float.h>
#define NDEBUG
#include <debug.h>
#define NUM_ENTRIES_INITIAL 16 /* Initial size of points / flags arrays */
#define GROW_FACTOR_NUMER 2 /* Numerator of grow factor for the array */
#define GROW_FACTOR_DENOM 1 /* Denominator of grow factor */

View file

@ -19,8 +19,12 @@
*
* $Id$
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* PRIVATE FUNCTIONS **********************************************************/
HPEN FASTCALL

View file

@ -26,8 +26,12 @@
* REVISION HISTORY:
* 21/2/2003: Created
*/
#include <w32k.h>
#define NDEBUG
#include <debug.h>
INT abs(INT nm);
#define FILL_EDGE_ALLOC_TAG 0x45465044

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
INT
STDCALL
NtGdiAbortDoc(HDC hDC)

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS *****************************************************************/
VOID FASTCALL

View file

@ -117,6 +117,9 @@ SOFTWARE.
#include <w32k.h>
#include <win32k/float.h>
#define NDEBUG
#include <debug.h>
// Internal Functions
#if 1

View file

@ -22,6 +22,7 @@
* $Id$
*
*/
#include <w32k.h>
#define NDEBUG

View file

@ -23,12 +23,16 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <freetype/tttables.h>
#define NDEBUG
#include <debug.h>
FT_Library library;
typedef struct _FONT_ENTRY {

View file

@ -17,8 +17,12 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id$ */
#include <w32k.h>
#define NDEBUG
#include <debug.h>
INT
STDCALL
NtGdiChoosePixelFormat(HDC hDC,

View file

@ -5,10 +5,7 @@
#include <w32k.h>
#define STUB(x) void x(void) { DbgPrint("WIN32K: Stub for %s\n", #x); }
#ifndef UNIMPLEMENTED
#define UNIMPLEMENTED DbgPrint("(%s:%i) WIN32K: %s UNIMPLEMENTED\n", __FILE__, __LINE__, __FUNCTION__ )
#endif//UNIMPLEMENTED
/*
* @unimplemented

View file

@ -6,6 +6,7 @@
#include <w32k.h>
#define STUB(x) void x(void) { DbgPrint("WIN32K: Stub for %s\n", #x); }
#define UNIMPLEMENTED DbgPrint("(%s:%i) WIN32K: %s UNIMPLEMENTED\n", __FILE__, __LINE__, __FUNCTION__ )
BOOL
STDCALL

View file

@ -17,6 +17,8 @@
/* DDK/NDK/SDK Headers */
#include <ddk/ntddk.h>
#include <ddk/ntifs.h>
#include <ddk/ddrawint.h>
#include <ddk/d3dnthal.h>
#include <ddk/winddi.h>
#include <ddk/ntddmou.h>
#include <windows.h> /* FIXME ? */
@ -50,7 +52,3 @@ MmCopyToCaller(PVOID Dest, const VOID *Src, ULONG NumberOfBytes);
/* Internal Win32K Header */
#include "include/win32k.h"
/* FIXME: This is totally wrong, why was it like this?? */
#define NDEBUG
#include <debug.h>