From aee83c359c6ff976005d2443b7e07b465f1d06c2 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 2 Dec 2017 21:00:06 +0100 Subject: [PATCH] [GDI32_APITEST] Add a PCH. --- .../apitests/gdi32/AddFontMemResourceEx.c | 5 +--- .../rostests/apitests/gdi32/AddFontResource.c | 4 +-- .../apitests/gdi32/AddFontResourceEx.c | 4 +-- modules/rostests/apitests/gdi32/BeginPath.c | 4 +-- .../rostests/apitests/gdi32/CMakeLists.txt | 5 ++-- modules/rostests/apitests/gdi32/CombineRgn.c | 3 +-- .../apitests/gdi32/CombineTransform.c | 5 +--- .../rostests/apitests/gdi32/CreateBitmap.c | 6 +---- .../apitests/gdi32/CreateBitmapIndirect.c | 4 +-- .../apitests/gdi32/CreateCompatibleDC.c | 5 +--- .../apitests/gdi32/CreateDIBPatternBrush.c | 3 +-- .../rostests/apitests/gdi32/CreateDIBitmap.c | 5 +--- modules/rostests/apitests/gdi32/CreateFont.c | 4 +-- .../apitests/gdi32/CreateFontIndirect.c | 3 +-- .../apitests/gdi32/CreateIconIndirect.c | 8 +----- modules/rostests/apitests/gdi32/CreatePen.c | 7 +----- .../rostests/apitests/gdi32/CreateRectRgn.c | 3 +-- modules/rostests/apitests/gdi32/DPtoLP.c | 5 +--- .../apitests/gdi32/EngAcquireSemaphore.c | 5 +--- .../apitests/gdi32/EngCreateSemaphore.c | 5 +--- .../apitests/gdi32/EngDeleteSemaphore.c | 5 +--- .../apitests/gdi32/EngReleaseSemaphore.c | 5 +--- .../apitests/gdi32/EnumFontFamilies.c | 7 +----- .../rostests/apitests/gdi32/ExcludeClipRect.c | 13 +--------- .../rostests/apitests/gdi32/ExtCreatePen.c | 8 +----- .../rostests/apitests/gdi32/ExtCreateRegion.c | 3 +-- modules/rostests/apitests/gdi32/FrameRgn.c | 5 ++-- .../apitests/gdi32/GdiConvertBitmap.c | 4 +-- .../rostests/apitests/gdi32/GdiConvertBrush.c | 4 +-- .../rostests/apitests/gdi32/GdiConvertDC.c | 4 +-- .../rostests/apitests/gdi32/GdiConvertFont.c | 4 +-- .../apitests/gdi32/GdiConvertPalette.c | 4 +-- .../apitests/gdi32/GdiConvertRegion.c | 4 +-- .../apitests/gdi32/GdiDeleteLocalDC.c | 4 +-- .../apitests/gdi32/GdiGetCharDimensions.c | 4 +-- .../apitests/gdi32/GdiGetLocalBrush.c | 4 +-- .../rostests/apitests/gdi32/GdiGetLocalDC.c | 4 +-- .../apitests/gdi32/GdiReleaseLocalDC.c | 4 +-- modules/rostests/apitests/gdi32/GdiSetAttrs.c | 4 +-- modules/rostests/apitests/gdi32/GetClipBox.c | 11 +------- modules/rostests/apitests/gdi32/GetClipRgn.c | 5 +--- .../apitests/gdi32/GetCurrentObject.c | 8 +----- .../apitests/gdi32/GetDIBColorTable.c | 4 +-- modules/rostests/apitests/gdi32/GetDIBits.c | 5 +--- .../apitests/gdi32/GetFontResourceInfoW.c | 7 ++---- .../rostests/apitests/gdi32/GetGlyphIndices.c | 6 +---- modules/rostests/apitests/gdi32/GetObject.c | 8 +----- modules/rostests/apitests/gdi32/GetPixel.c | 4 +-- .../rostests/apitests/gdi32/GetRandomRgn.c | 7 +----- .../rostests/apitests/gdi32/GetStockObject.c | 10 +------- .../apitests/gdi32/GetTextExtentExPoint.c | 9 +------ modules/rostests/apitests/gdi32/GetTextFace.c | 7 +----- modules/rostests/apitests/gdi32/MaskBlt.c | 4 +-- .../apitests/gdi32/NtGdiAddFontResource.c | 6 ++--- .../rostests/apitests/gdi32/OffsetClipRgn.c | 5 +--- modules/rostests/apitests/gdi32/OffsetRgn.c | 5 +--- modules/rostests/apitests/gdi32/PaintRgn.c | 6 ++--- modules/rostests/apitests/gdi32/PatBlt.c | 5 +--- .../rostests/apitests/gdi32/RealizePalette.c | 6 ++--- modules/rostests/apitests/gdi32/Rectangle.c | 4 +-- .../rostests/apitests/gdi32/SelectObject.c | 12 +-------- .../rostests/apitests/gdi32/SetBoundsRect.c | 4 +-- .../rostests/apitests/gdi32/SetBrushOrgEx.c | 4 +-- .../rostests/apitests/gdi32/SetDCPenColor.c | 5 +--- modules/rostests/apitests/gdi32/SetDIBits.c | 4 +-- .../apitests/gdi32/SetDIBitsToDevice.c | 3 +-- modules/rostests/apitests/gdi32/SetMapMode.c | 8 +----- modules/rostests/apitests/gdi32/SetPixel.c | 3 +-- .../rostests/apitests/gdi32/SetSysColors.c | 7 +----- .../rostests/apitests/gdi32/SetWindowExtEx.c | 8 +----- .../apitests/gdi32/SetWorldTransform.c | 5 +--- modules/rostests/apitests/gdi32/init.c | 5 ++-- modules/rostests/apitests/gdi32/init.h | 1 + modules/rostests/apitests/gdi32/precomp.h | 25 +++++++++++++++++++ 74 files changed, 106 insertions(+), 307 deletions(-) create mode 100644 modules/rostests/apitests/gdi32/precomp.h diff --git a/modules/rostests/apitests/gdi32/AddFontMemResourceEx.c b/modules/rostests/apitests/gdi32/AddFontMemResourceEx.c index 057a6b495a3..e8b71864cf8 100644 --- a/modules/rostests/apitests/gdi32/AddFontMemResourceEx.c +++ b/modules/rostests/apitests/gdi32/AddFontMemResourceEx.c @@ -9,10 +9,7 @@ * Captured from firefox, embedded on reactos.org */ - -#include -#include -#include +#include "precomp.h" typedef struct _fnt_res { diff --git a/modules/rostests/apitests/gdi32/AddFontResource.c b/modules/rostests/apitests/gdi32/AddFontResource.c index e020dfc4db5..cee4079d97c 100644 --- a/modules/rostests/apitests/gdi32/AddFontResource.c +++ b/modules/rostests/apitests/gdi32/AddFontResource.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include -#include +#include "precomp.h" #define COUNT 26 diff --git a/modules/rostests/apitests/gdi32/AddFontResourceEx.c b/modules/rostests/apitests/gdi32/AddFontResourceEx.c index 0cae71abd1f..9448a6ff1c6 100644 --- a/modules/rostests/apitests/gdi32/AddFontResourceEx.c +++ b/modules/rostests/apitests/gdi32/AddFontResourceEx.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" void Test_AddFontResourceExW() { diff --git a/modules/rostests/apitests/gdi32/BeginPath.c b/modules/rostests/apitests/gdi32/BeginPath.c index db4761dfe21..176a0c4f17b 100644 --- a/modules/rostests/apitests/gdi32/BeginPath.c +++ b/modules/rostests/apitests/gdi32/BeginPath.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" void Test_BeginPath() { diff --git a/modules/rostests/apitests/gdi32/CMakeLists.txt b/modules/rostests/apitests/gdi32/CMakeLists.txt index e1edb91c269..3dfe1c34748 100644 --- a/modules/rostests/apitests/gdi32/CMakeLists.txt +++ b/modules/rostests/apitests/gdi32/CMakeLists.txt @@ -73,10 +73,11 @@ list(APPEND SOURCE SetWindowExtEx.c SetWorldTransform.c init.c - testlist.c) + precomp.h) -add_executable(gdi32_apitest ${SOURCE} resource.rc) +add_executable(gdi32_apitest ${SOURCE} testlist.c resource.rc) target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys) set_module_type(gdi32_apitest win32cui) add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll) +add_pch(gdi32_apitest precomp.h SOURCE) add_rostests_file(TARGET gdi32_apitest) diff --git a/modules/rostests/apitests/gdi32/CombineRgn.c b/modules/rostests/apitests/gdi32/CombineRgn.c index 3e10ec3f63f..b000a495546 100644 --- a/modules/rostests/apitests/gdi32/CombineRgn.c +++ b/modules/rostests/apitests/gdi32/CombineRgn.c @@ -5,8 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include +#include "precomp.h" typedef struct _RECT_TEST { diff --git a/modules/rostests/apitests/gdi32/CombineTransform.c b/modules/rostests/apitests/gdi32/CombineTransform.c index 679d34c74b3..8989133a36b 100644 --- a/modules/rostests/apitests/gdi32/CombineTransform.c +++ b/modules/rostests/apitests/gdi32/CombineTransform.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" typedef union { diff --git a/modules/rostests/apitests/gdi32/CreateBitmap.c b/modules/rostests/apitests/gdi32/CreateBitmap.c index 9c8a1b0dd1a..4cf719feafa 100644 --- a/modules/rostests/apitests/gdi32/CreateBitmap.c +++ b/modules/rostests/apitests/gdi32/CreateBitmap.c @@ -5,11 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include - -#define DEFAULT_BITMAP 21 +#include "precomp.h" void Test_CreateBitmap_Params() { diff --git a/modules/rostests/apitests/gdi32/CreateBitmapIndirect.c b/modules/rostests/apitests/gdi32/CreateBitmapIndirect.c index fb448d99024..e9050f95b2c 100644 --- a/modules/rostests/apitests/gdi32/CreateBitmapIndirect.c +++ b/modules/rostests/apitests/gdi32/CreateBitmapIndirect.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Magnus Olsen */ -#include - -#include +#include "precomp.h" void Test_CreateBitmapIndirect() { diff --git a/modules/rostests/apitests/gdi32/CreateCompatibleDC.c b/modules/rostests/apitests/gdi32/CreateCompatibleDC.c index 3d7c7dc6c2e..6be042aabf0 100644 --- a/modules/rostests/apitests/gdi32/CreateCompatibleDC.c +++ b/modules/rostests/apitests/gdi32/CreateCompatibleDC.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" void Test_CreateCompatibleDC() { diff --git a/modules/rostests/apitests/gdi32/CreateDIBPatternBrush.c b/modules/rostests/apitests/gdi32/CreateDIBPatternBrush.c index b1cf27d2f3d..6ac5da0b3d3 100644 --- a/modules/rostests/apitests/gdi32/CreateDIBPatternBrush.c +++ b/modules/rostests/apitests/gdi32/CreateDIBPatternBrush.c @@ -5,9 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" -#include #include "init.h" /* New color use parameter. See support.microsoft.com/kb/kbview/108497 */ diff --git a/modules/rostests/apitests/gdi32/CreateDIBitmap.c b/modules/rostests/apitests/gdi32/CreateDIBitmap.c index cfc88f97556..1e302618d59 100644 --- a/modules/rostests/apitests/gdi32/CreateDIBitmap.c +++ b/modules/rostests/apitests/gdi32/CreateDIBitmap.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" #include "init.h" diff --git a/modules/rostests/apitests/gdi32/CreateFont.c b/modules/rostests/apitests/gdi32/CreateFont.c index e4a378de4eb..cc251863f22 100644 --- a/modules/rostests/apitests/gdi32/CreateFont.c +++ b/modules/rostests/apitests/gdi32/CreateFont.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" #define INVALIDFONT "ThisFontDoesNotExist" diff --git a/modules/rostests/apitests/gdi32/CreateFontIndirect.c b/modules/rostests/apitests/gdi32/CreateFontIndirect.c index 477952d9875..49409578876 100644 --- a/modules/rostests/apitests/gdi32/CreateFontIndirect.c +++ b/modules/rostests/apitests/gdi32/CreateFontIndirect.c @@ -6,8 +6,7 @@ * Katayama Hirofumi MZ */ -#include -#include +#include "precomp.h" #define trace_if(val, msg) do { if (!(val)) trace(msg); } while (0) diff --git a/modules/rostests/apitests/gdi32/CreateIconIndirect.c b/modules/rostests/apitests/gdi32/CreateIconIndirect.c index bfd78e2add2..8c1bf3639b8 100644 --- a/modules/rostests/apitests/gdi32/CreateIconIndirect.c +++ b/modules/rostests/apitests/gdi32/CreateIconIndirect.c @@ -1,9 +1,5 @@ -#include - -#include -#include - +#include "precomp.h" // FIXME user32 @@ -204,5 +200,3 @@ START_TEST(CreateIconIndirect) ok(iconinfo2.hbmColor == NULL, "\n"); } - - diff --git a/modules/rostests/apitests/gdi32/CreatePen.c b/modules/rostests/apitests/gdi32/CreatePen.c index ad03b3b804b..90e6d09060d 100644 --- a/modules/rostests/apitests/gdi32/CreatePen.c +++ b/modules/rostests/apitests/gdi32/CreatePen.c @@ -5,12 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include -#include +#include "precomp.h" void Test_CreatePen() { diff --git a/modules/rostests/apitests/gdi32/CreateRectRgn.c b/modules/rostests/apitests/gdi32/CreateRectRgn.c index e5904696f3c..5c799b728f2 100644 --- a/modules/rostests/apitests/gdi32/CreateRectRgn.c +++ b/modules/rostests/apitests/gdi32/CreateRectRgn.c @@ -5,7 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" void Test_CreateRectRgn() { @@ -16,4 +16,3 @@ START_TEST(CreateRectRgn) { Test_CreateRectRgn(); } - diff --git a/modules/rostests/apitests/gdi32/DPtoLP.c b/modules/rostests/apitests/gdi32/DPtoLP.c index 940e7a7e5e1..dd2a6f99005 100644 --- a/modules/rostests/apitests/gdi32/DPtoLP.c +++ b/modules/rostests/apitests/gdi32/DPtoLP.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" void Test_DPtoLP_Params() { diff --git a/modules/rostests/apitests/gdi32/EngAcquireSemaphore.c b/modules/rostests/apitests/gdi32/EngAcquireSemaphore.c index 94014546a12..be0f9d17e09 100644 --- a/modules/rostests/apitests/gdi32/EngAcquireSemaphore.c +++ b/modules/rostests/apitests/gdi32/EngAcquireSemaphore.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Magnus Olsen */ -#include - -#include -#include +#include "precomp.h" void Test_EngAcquireSemaphore() { diff --git a/modules/rostests/apitests/gdi32/EngCreateSemaphore.c b/modules/rostests/apitests/gdi32/EngCreateSemaphore.c index eb6ccec67a2..0bd25a1d0c3 100644 --- a/modules/rostests/apitests/gdi32/EngCreateSemaphore.c +++ b/modules/rostests/apitests/gdi32/EngCreateSemaphore.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Magnus Olsen */ -#include - -#include -#include +#include "precomp.h" void Test_EngCreateSemaphore() { diff --git a/modules/rostests/apitests/gdi32/EngDeleteSemaphore.c b/modules/rostests/apitests/gdi32/EngDeleteSemaphore.c index f129fb94c73..d8c1218e3ee 100644 --- a/modules/rostests/apitests/gdi32/EngDeleteSemaphore.c +++ b/modules/rostests/apitests/gdi32/EngDeleteSemaphore.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Magnus Olsen */ -#include - -#include -#include +#include "precomp.h" void Test_EngDeleteSemaphore() { diff --git a/modules/rostests/apitests/gdi32/EngReleaseSemaphore.c b/modules/rostests/apitests/gdi32/EngReleaseSemaphore.c index c6d20bb89e5..be843f5164c 100644 --- a/modules/rostests/apitests/gdi32/EngReleaseSemaphore.c +++ b/modules/rostests/apitests/gdi32/EngReleaseSemaphore.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Magnus Olsen */ -#include - -#include -#include +#include "precomp.h" void Test_EngReleaseSemaphore() { diff --git a/modules/rostests/apitests/gdi32/EnumFontFamilies.c b/modules/rostests/apitests/gdi32/EnumFontFamilies.c index 51d7f86c5a6..b9ae7f3c105 100644 --- a/modules/rostests/apitests/gdi32/EnumFontFamilies.c +++ b/modules/rostests/apitests/gdi32/EnumFontFamilies.c @@ -5,12 +5,7 @@ * PROGRAMMERS: Thomas Faber */ -#include - -#include -#include -#include -#include +#include "precomp.h" static BYTE ContextContinue; static BYTE ContextStop; diff --git a/modules/rostests/apitests/gdi32/ExcludeClipRect.c b/modules/rostests/apitests/gdi32/ExcludeClipRect.c index af27cd6b7b1..ee4e74b7af8 100644 --- a/modules/rostests/apitests/gdi32/ExcludeClipRect.c +++ b/modules/rostests/apitests/gdi32/ExcludeClipRect.c @@ -5,18 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include - -#define CLIPRGN 1 - -#define ok_rect(_prc, _left, _top, _right, _bottom) \ - ok_int((_prc)->left, _left); \ - ok_int((_prc)->top, _top); \ - ok_int((_prc)->right, _right); \ - ok_int((_prc)->bottom, _bottom); \ +#include "precomp.h" void Test_ExcludeClipRect() { diff --git a/modules/rostests/apitests/gdi32/ExtCreatePen.c b/modules/rostests/apitests/gdi32/ExtCreatePen.c index 5901194faa5..c8370bd5cbb 100644 --- a/modules/rostests/apitests/gdi32/ExtCreatePen.c +++ b/modules/rostests/apitests/gdi32/ExtCreatePen.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include -#include -#include +#include "precomp.h" #define ok_lasterror(err) \ ok(GetLastError() == err, "expected last error " #err " but got 0x%lx\n", GetLastError()); diff --git a/modules/rostests/apitests/gdi32/ExtCreateRegion.c b/modules/rostests/apitests/gdi32/ExtCreateRegion.c index eea2323e119..16fe55f143d 100644 --- a/modules/rostests/apitests/gdi32/ExtCreateRegion.c +++ b/modules/rostests/apitests/gdi32/ExtCreateRegion.c @@ -5,9 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" -#include #include VOID diff --git a/modules/rostests/apitests/gdi32/FrameRgn.c b/modules/rostests/apitests/gdi32/FrameRgn.c index 2187acfa1a9..547d4947e62 100644 --- a/modules/rostests/apitests/gdi32/FrameRgn.c +++ b/modules/rostests/apitests/gdi32/FrameRgn.c @@ -5,9 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include -#include +#include "precomp.h" + #include "init.h" #if 0 diff --git a/modules/rostests/apitests/gdi32/GdiConvertBitmap.c b/modules/rostests/apitests/gdi32/GdiConvertBitmap.c index 78f5899ad30..06e6e337ae0 100644 --- a/modules/rostests/apitests/gdi32/GdiConvertBitmap.c +++ b/modules/rostests/apitests/gdi32/GdiConvertBitmap.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm); diff --git a/modules/rostests/apitests/gdi32/GdiConvertBrush.c b/modules/rostests/apitests/gdi32/GdiConvertBrush.c index 4fb97f3e2b1..d82ddd7f16e 100644 --- a/modules/rostests/apitests/gdi32/GdiConvertBrush.c +++ b/modules/rostests/apitests/gdi32/GdiConvertBrush.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr); diff --git a/modules/rostests/apitests/gdi32/GdiConvertDC.c b/modules/rostests/apitests/gdi32/GdiConvertDC.c index dd9f7368611..29179071b43 100644 --- a/modules/rostests/apitests/gdi32/GdiConvertDC.c +++ b/modules/rostests/apitests/gdi32/GdiConvertDC.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HDC WINAPI GdiConvertDC(HDC hdc); diff --git a/modules/rostests/apitests/gdi32/GdiConvertFont.c b/modules/rostests/apitests/gdi32/GdiConvertFont.c index d8e90785b38..bfc7bb30df2 100644 --- a/modules/rostests/apitests/gdi32/GdiConvertFont.c +++ b/modules/rostests/apitests/gdi32/GdiConvertFont.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HFONT WINAPI GdiConvertFont(HFONT); diff --git a/modules/rostests/apitests/gdi32/GdiConvertPalette.c b/modules/rostests/apitests/gdi32/GdiConvertPalette.c index 85dc8787b0d..ffb383a0acf 100644 --- a/modules/rostests/apitests/gdi32/GdiConvertPalette.c +++ b/modules/rostests/apitests/gdi32/GdiConvertPalette.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HPALETTE WINAPI GdiConvertPalette(HPALETTE); diff --git a/modules/rostests/apitests/gdi32/GdiConvertRegion.c b/modules/rostests/apitests/gdi32/GdiConvertRegion.c index 028842c13b8..0a32e4a6039 100644 --- a/modules/rostests/apitests/gdi32/GdiConvertRegion.c +++ b/modules/rostests/apitests/gdi32/GdiConvertRegion.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HRGN WINAPI GdiConvertRegion(HRGN); diff --git a/modules/rostests/apitests/gdi32/GdiDeleteLocalDC.c b/modules/rostests/apitests/gdi32/GdiDeleteLocalDC.c index 6de9eba2421..7faf690b0e0 100644 --- a/modules/rostests/apitests/gdi32/GdiDeleteLocalDC.c +++ b/modules/rostests/apitests/gdi32/GdiDeleteLocalDC.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" BOOL WINAPI GdiDeleteLocalDC(HDC); diff --git a/modules/rostests/apitests/gdi32/GdiGetCharDimensions.c b/modules/rostests/apitests/gdi32/GdiGetCharDimensions.c index 2f03dfe2e79..6ac880f9221 100644 --- a/modules/rostests/apitests/gdi32/GdiGetCharDimensions.c +++ b/modules/rostests/apitests/gdi32/GdiGetCharDimensions.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" void Test_GdiGetCharDimensions() { diff --git a/modules/rostests/apitests/gdi32/GdiGetLocalBrush.c b/modules/rostests/apitests/gdi32/GdiGetLocalBrush.c index 7af9a1a89bb..349f1d53c78 100644 --- a/modules/rostests/apitests/gdi32/GdiGetLocalBrush.c +++ b/modules/rostests/apitests/gdi32/GdiGetLocalBrush.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr); diff --git a/modules/rostests/apitests/gdi32/GdiGetLocalDC.c b/modules/rostests/apitests/gdi32/GdiGetLocalDC.c index e445da1e874..590004c0138 100644 --- a/modules/rostests/apitests/gdi32/GdiGetLocalDC.c +++ b/modules/rostests/apitests/gdi32/GdiGetLocalDC.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" HDC WINAPI GdiGetLocalDC(HDC); diff --git a/modules/rostests/apitests/gdi32/GdiReleaseLocalDC.c b/modules/rostests/apitests/gdi32/GdiReleaseLocalDC.c index 2c9572ce9ff..0966efd7e63 100644 --- a/modules/rostests/apitests/gdi32/GdiReleaseLocalDC.c +++ b/modules/rostests/apitests/gdi32/GdiReleaseLocalDC.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" BOOL WINAPI GdiReleaseLocalDC(HDC); diff --git a/modules/rostests/apitests/gdi32/GdiSetAttrs.c b/modules/rostests/apitests/gdi32/GdiSetAttrs.c index 537250efc7d..798a52847d7 100644 --- a/modules/rostests/apitests/gdi32/GdiSetAttrs.c +++ b/modules/rostests/apitests/gdi32/GdiSetAttrs.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" BOOL WINAPI GdiSetAttrs(HDC); diff --git a/modules/rostests/apitests/gdi32/GetClipBox.c b/modules/rostests/apitests/gdi32/GetClipBox.c index 3ee3c252e2f..5df59c237b3 100644 --- a/modules/rostests/apitests/gdi32/GetClipBox.c +++ b/modules/rostests/apitests/gdi32/GetClipBox.c @@ -5,16 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include - -#define ok_rect(_prc, _left, _top, _right, _bottom) \ - ok_int((_prc)->left, _left); \ - ok_int((_prc)->top, _top); \ - ok_int((_prc)->right, _right); \ - ok_int((_prc)->bottom, _bottom); \ +#include "precomp.h" void Test_GetClipBox() { diff --git a/modules/rostests/apitests/gdi32/GetClipRgn.c b/modules/rostests/apitests/gdi32/GetClipRgn.c index c952d22c9e9..7edb8f959a5 100644 --- a/modules/rostests/apitests/gdi32/GetClipRgn.c +++ b/modules/rostests/apitests/gdi32/GetClipRgn.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" void Test_GetClipRgn() { diff --git a/modules/rostests/apitests/gdi32/GetCurrentObject.c b/modules/rostests/apitests/gdi32/GetCurrentObject.c index 5aea2653090..a5a32f3e1b8 100644 --- a/modules/rostests/apitests/gdi32/GetCurrentObject.c +++ b/modules/rostests/apitests/gdi32/GetCurrentObject.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include -#include -#include +#include "precomp.h" void Test_GetCurrentObject() { diff --git a/modules/rostests/apitests/gdi32/GetDIBColorTable.c b/modules/rostests/apitests/gdi32/GetDIBColorTable.c index ff700910c8c..eb15ed41718 100644 --- a/modules/rostests/apitests/gdi32/GetDIBColorTable.c +++ b/modules/rostests/apitests/gdi32/GetDIBColorTable.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" void Test_GetDIBColorTable() { diff --git a/modules/rostests/apitests/gdi32/GetDIBits.c b/modules/rostests/apitests/gdi32/GetDIBits.c index cfc36180705..3b13adadbdb 100644 --- a/modules/rostests/apitests/gdi32/GetDIBits.c +++ b/modules/rostests/apitests/gdi32/GetDIBits.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" #include "init.h" diff --git a/modules/rostests/apitests/gdi32/GetFontResourceInfoW.c b/modules/rostests/apitests/gdi32/GetFontResourceInfoW.c index bb4d37900c4..72cb75c258e 100644 --- a/modules/rostests/apitests/gdi32/GetFontResourceInfoW.c +++ b/modules/rostests/apitests/gdi32/GetFontResourceInfoW.c @@ -4,11 +4,8 @@ * PURPOSE: Test for GetFontResourceInfoW * PROGRAMMERS: Katayama Hirofumi MZ */ -#include -#include -#include -#include -#include + +#include "precomp.h" /* GetFontResourceInfoW is undocumented */ BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType); diff --git a/modules/rostests/apitests/gdi32/GetGlyphIndices.c b/modules/rostests/apitests/gdi32/GetGlyphIndices.c index 6e3377359c3..281616b614f 100644 --- a/modules/rostests/apitests/gdi32/GetGlyphIndices.c +++ b/modules/rostests/apitests/gdi32/GetGlyphIndices.c @@ -5,11 +5,7 @@ * PROGRAMMERS: Ged Murphy */ -#include -#include -#include -#include - +#include "precomp.h" #define ok_lasterrornotchanged() \ ok_err(0x12345) diff --git a/modules/rostests/apitests/gdi32/GetObject.c b/modules/rostests/apitests/gdi32/GetObject.c index 0eaff6ef068..a11241ea205 100644 --- a/modules/rostests/apitests/gdi32/GetObject.c +++ b/modules/rostests/apitests/gdi32/GetObject.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include -#include -#include +#include "precomp.h" void Test_General(void) diff --git a/modules/rostests/apitests/gdi32/GetPixel.c b/modules/rostests/apitests/gdi32/GetPixel.c index ddd6ed791d1..adf98e8514b 100644 --- a/modules/rostests/apitests/gdi32/GetPixel.c +++ b/modules/rostests/apitests/gdi32/GetPixel.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Jérôme Gardou */ -#include - -#include +#include "precomp.h" void Test_GetPixel_1bpp() { diff --git a/modules/rostests/apitests/gdi32/GetRandomRgn.c b/modules/rostests/apitests/gdi32/GetRandomRgn.c index 5c822793e8b..63eea4420af 100644 --- a/modules/rostests/apitests/gdi32/GetRandomRgn.c +++ b/modules/rostests/apitests/gdi32/GetRandomRgn.c @@ -5,13 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" -#include -#include -#include - -#define CLIPRGN 1 #define METARGN 2 #define APIRGN 3 #define SYSRGN 4 diff --git a/modules/rostests/apitests/gdi32/GetStockObject.c b/modules/rostests/apitests/gdi32/GetStockObject.c index 4f7c01ec0cc..4ad2e8ed3c1 100644 --- a/modules/rostests/apitests/gdi32/GetStockObject.c +++ b/modules/rostests/apitests/gdi32/GetStockObject.c @@ -5,15 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include -#include - -#define TEST(x) ok(x, #x"\n") -#define RTEST(x) ok(x, #x"\n") +#include "precomp.h" void Test_GetStockObject() { diff --git a/modules/rostests/apitests/gdi32/GetTextExtentExPoint.c b/modules/rostests/apitests/gdi32/GetTextExtentExPoint.c index 594838c14fe..9ec44811cf4 100644 --- a/modules/rostests/apitests/gdi32/GetTextExtentExPoint.c +++ b/modules/rostests/apitests/gdi32/GetTextExtentExPoint.c @@ -5,14 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include - -#define TEST(x) ok(x, #x"\n") -#define RTEST(x) ok(x, #x"\n") +#include "precomp.h" void Test_GetTextExtentExPoint() { diff --git a/modules/rostests/apitests/gdi32/GetTextFace.c b/modules/rostests/apitests/gdi32/GetTextFace.c index 9686d1b6600..e304986d13f 100644 --- a/modules/rostests/apitests/gdi32/GetTextFace.c +++ b/modules/rostests/apitests/gdi32/GetTextFace.c @@ -5,12 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include - -#define TEST(x) ok(x, #x"\n") -#define RTEST(x) ok(x, #x"\n") +#include "precomp.h" void Test_GetTextFace() { diff --git a/modules/rostests/apitests/gdi32/MaskBlt.c b/modules/rostests/apitests/gdi32/MaskBlt.c index 6fe552bcfb4..2ebb7c4b5c1 100644 --- a/modules/rostests/apitests/gdi32/MaskBlt.c +++ b/modules/rostests/apitests/gdi32/MaskBlt.c @@ -5,10 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" -#include -#include #include "init.h" void Test_MaskBlt_1bpp() diff --git a/modules/rostests/apitests/gdi32/NtGdiAddFontResource.c b/modules/rostests/apitests/gdi32/NtGdiAddFontResource.c index eaded163812..c9c335ba513 100644 --- a/modules/rostests/apitests/gdi32/NtGdiAddFontResource.c +++ b/modules/rostests/apitests/gdi32/NtGdiAddFontResource.c @@ -5,11 +5,9 @@ * PROGRAMMERS: Víctor Martínez Calvo ( victor.martinez@reactos.org ) */ -#include -#include -#include -#include +#include "precomp.h" +#include INT APIENTRY diff --git a/modules/rostests/apitests/gdi32/OffsetClipRgn.c b/modules/rostests/apitests/gdi32/OffsetClipRgn.c index a40265bf6cc..046bd06ac1d 100644 --- a/modules/rostests/apitests/gdi32/OffsetClipRgn.c +++ b/modules/rostests/apitests/gdi32/OffsetClipRgn.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include - -#define CLIPRGN 1 +#include "precomp.h" void Test_OffsetClipRgn() { diff --git a/modules/rostests/apitests/gdi32/OffsetRgn.c b/modules/rostests/apitests/gdi32/OffsetRgn.c index 11bb882637f..fcda1f3c35c 100644 --- a/modules/rostests/apitests/gdi32/OffsetRgn.c +++ b/modules/rostests/apitests/gdi32/OffsetRgn.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include -#include -#include "init.h" +#include "precomp.h" void Test_OffsetRgn() { diff --git a/modules/rostests/apitests/gdi32/PaintRgn.c b/modules/rostests/apitests/gdi32/PaintRgn.c index 36fa935cb0e..083dcfd457b 100644 --- a/modules/rostests/apitests/gdi32/PaintRgn.c +++ b/modules/rostests/apitests/gdi32/PaintRgn.c @@ -5,11 +5,9 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include -#include -#include "init.h" +#include "precomp.h" +#include "init.h" void Test_PaintRgn() { diff --git a/modules/rostests/apitests/gdi32/PatBlt.c b/modules/rostests/apitests/gdi32/PatBlt.c index a8493775741..456319218e2 100644 --- a/modules/rostests/apitests/gdi32/PatBlt.c +++ b/modules/rostests/apitests/gdi32/PatBlt.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" HBITMAP ghbmpTarget; PULONG gpulTargetBits; diff --git a/modules/rostests/apitests/gdi32/RealizePalette.c b/modules/rostests/apitests/gdi32/RealizePalette.c index 461420af003..d3c20c0b260 100644 --- a/modules/rostests/apitests/gdi32/RealizePalette.c +++ b/modules/rostests/apitests/gdi32/RealizePalette.c @@ -5,9 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include -#include -#include +#include "precomp.h" + #include "init.h" START_TEST(RealizePalette) @@ -19,4 +18,3 @@ START_TEST(RealizePalette) ok_int(RealizePalette(ghdcDIB32), 0); } - diff --git a/modules/rostests/apitests/gdi32/Rectangle.c b/modules/rostests/apitests/gdi32/Rectangle.c index 308680c7ceb..266664beaca 100644 --- a/modules/rostests/apitests/gdi32/Rectangle.c +++ b/modules/rostests/apitests/gdi32/Rectangle.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Jérôme Gardou */ -#include - -#include +#include "precomp.h" void Test_Rectangle(void) { diff --git a/modules/rostests/apitests/gdi32/SelectObject.c b/modules/rostests/apitests/gdi32/SelectObject.c index 0bae4405ef6..b7ddb8f735b 100644 --- a/modules/rostests/apitests/gdi32/SelectObject.c +++ b/modules/rostests/apitests/gdi32/SelectObject.c @@ -5,17 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include -#include -#include -#include -#include - -#define TEST(x) ok(x, #x"\n") -#define RTEST(x) ok(x, #x"\n") +#include "precomp.h" HDC hdc1, hdc2; diff --git a/modules/rostests/apitests/gdi32/SetBoundsRect.c b/modules/rostests/apitests/gdi32/SetBoundsRect.c index 261d99dde29..7d1359e6c99 100644 --- a/modules/rostests/apitests/gdi32/SetBoundsRect.c +++ b/modules/rostests/apitests/gdi32/SetBoundsRect.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber -#include -#include +#include "precomp.h" START_TEST(SetBoundsRect) { diff --git a/modules/rostests/apitests/gdi32/SetBrushOrgEx.c b/modules/rostests/apitests/gdi32/SetBrushOrgEx.c index 74acb15153a..e708fef180d 100644 --- a/modules/rostests/apitests/gdi32/SetBrushOrgEx.c +++ b/modules/rostests/apitests/gdi32/SetBrushOrgEx.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include +#include "precomp.h" void Test_Set(ULONG ulLine, HDC hdc, INT x, INT y, LPPOINT ppt, BOOL bExp, DWORD dwErrExp) { diff --git a/modules/rostests/apitests/gdi32/SetDCPenColor.c b/modules/rostests/apitests/gdi32/SetDCPenColor.c index 0f91656badb..397b810bf0a 100644 --- a/modules/rostests/apitests/gdi32/SetDCPenColor.c +++ b/modules/rostests/apitests/gdi32/SetDCPenColor.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" void Test_SetDCPenColor() { diff --git a/modules/rostests/apitests/gdi32/SetDIBits.c b/modules/rostests/apitests/gdi32/SetDIBits.c index 6a008148916..1c8a1c9faa4 100644 --- a/modules/rostests/apitests/gdi32/SetDIBits.c +++ b/modules/rostests/apitests/gdi32/SetDIBits.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Jérôme Gardou */ -#include - -#include +#include "precomp.h" void Test_SetDIBits() { diff --git a/modules/rostests/apitests/gdi32/SetDIBitsToDevice.c b/modules/rostests/apitests/gdi32/SetDIBitsToDevice.c index 1a86a3646a0..6e35b0d0afe 100644 --- a/modules/rostests/apitests/gdi32/SetDIBitsToDevice.c +++ b/modules/rostests/apitests/gdi32/SetDIBitsToDevice.c @@ -5,9 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" -#include #include "init.h" static void diff --git a/modules/rostests/apitests/gdi32/SetMapMode.c b/modules/rostests/apitests/gdi32/SetMapMode.c index 7c8c04857c0..004bf0c8ab7 100644 --- a/modules/rostests/apitests/gdi32/SetMapMode.c +++ b/modules/rostests/apitests/gdi32/SetMapMode.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include - -#define TEST(x) ok(x, #x"\n") -#define RTEST(x) ok(x, #x"\n") +#include "precomp.h" void Test_SetMapMode() { diff --git a/modules/rostests/apitests/gdi32/SetPixel.c b/modules/rostests/apitests/gdi32/SetPixel.c index 1d2758397a7..14da0339368 100644 --- a/modules/rostests/apitests/gdi32/SetPixel.c +++ b/modules/rostests/apitests/gdi32/SetPixel.c @@ -5,9 +5,8 @@ * PROGRAMMERS: Timo Kreuzer */ -#include +#include "precomp.h" -#include #include static struct diff --git a/modules/rostests/apitests/gdi32/SetSysColors.c b/modules/rostests/apitests/gdi32/SetSysColors.c index d662996b87f..c7584a7b80a 100644 --- a/modules/rostests/apitests/gdi32/SetSysColors.c +++ b/modules/rostests/apitests/gdi32/SetSysColors.c @@ -5,12 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include - -#define TEST(x) ok(x, #x"\n") +#include "precomp.h" #define NUM_SYSCOLORS 31 diff --git a/modules/rostests/apitests/gdi32/SetWindowExtEx.c b/modules/rostests/apitests/gdi32/SetWindowExtEx.c index e17af663420..b32455a2edd 100644 --- a/modules/rostests/apitests/gdi32/SetWindowExtEx.c +++ b/modules/rostests/apitests/gdi32/SetWindowExtEx.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include - -#define TEST(x) ok(x, #x"\n") -#define RTEST(x) ok(x, #x"\n") +#include "precomp.h" void Test_SetWindowExtEx() { diff --git a/modules/rostests/apitests/gdi32/SetWorldTransform.c b/modules/rostests/apitests/gdi32/SetWorldTransform.c index 55e9e092a8e..0b9c03cbe49 100644 --- a/modules/rostests/apitests/gdi32/SetWorldTransform.c +++ b/modules/rostests/apitests/gdi32/SetWorldTransform.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#include -#include +#include "precomp.h" void Test_SetWorldTransform() { diff --git a/modules/rostests/apitests/gdi32/init.c b/modules/rostests/apitests/gdi32/init.c index fcac6142d59..ab7d4673eaf 100644 --- a/modules/rostests/apitests/gdi32/init.c +++ b/modules/rostests/apitests/gdi32/init.c @@ -1,7 +1,6 @@ -#include -#include -#include +#include "precomp.h" + #include "init.h" HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32; diff --git a/modules/rostests/apitests/gdi32/init.h b/modules/rostests/apitests/gdi32/init.h index 48d5ce8df78..a57e860a05f 100644 --- a/modules/rostests/apitests/gdi32/init.h +++ b/modules/rostests/apitests/gdi32/init.h @@ -1,3 +1,4 @@ +#pragma once extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32; extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32; diff --git a/modules/rostests/apitests/gdi32/precomp.h b/modules/rostests/apitests/gdi32/precomp.h new file mode 100644 index 00000000000..a0331e74a79 --- /dev/null +++ b/modules/rostests/apitests/gdi32/precomp.h @@ -0,0 +1,25 @@ +#ifndef _GDI32_APITEST_PRECOMP_H_ +#define _GDI32_APITEST_PRECOMP_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define CLIPRGN 1 + +#define TEST(x) ok(x, #x"\n") +#define RTEST(x) ok(x, #x"\n") + +#define ok_rect(_prc, _left, _top, _right, _bottom) \ + ok_int((_prc)->left, _left); \ + ok_int((_prc)->top, _top); \ + ok_int((_prc)->right, _right); \ + ok_int((_prc)->bottom, _bottom); \ + +#endif /* _GDI32_APITEST_PRECOMP_H_ */