[CARDLIB]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Jan 2014 15:01:58 +0000 (15:01 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Jan 2014 15:01:58 +0000 (15:01 +0000)
* Move some inclusions to the main header.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61532

21 files changed:
reactos/lib/3rdparty/cardlib/card.h
reactos/lib/3rdparty/cardlib/cardbitmaps.cpp
reactos/lib/3rdparty/cardlib/cardbutton.cpp
reactos/lib/3rdparty/cardlib/cardbutton.h
reactos/lib/3rdparty/cardlib/cardcolor.cpp
reactos/lib/3rdparty/cardlib/cardcolor.h
reactos/lib/3rdparty/cardlib/cardcount.cpp
reactos/lib/3rdparty/cardlib/cardcount.h
reactos/lib/3rdparty/cardlib/cardlib.cpp
reactos/lib/3rdparty/cardlib/cardlib.h
reactos/lib/3rdparty/cardlib/cardregion.cpp
reactos/lib/3rdparty/cardlib/cardregion.h
reactos/lib/3rdparty/cardlib/cardrgndraw.cpp
reactos/lib/3rdparty/cardlib/cardrgnmouse.cpp
reactos/lib/3rdparty/cardlib/cardstack.cpp
reactos/lib/3rdparty/cardlib/cardstack.h
reactos/lib/3rdparty/cardlib/cardwindow.cpp
reactos/lib/3rdparty/cardlib/cardwindow.h
reactos/lib/3rdparty/cardlib/dropzone.cpp
reactos/lib/3rdparty/cardlib/dropzone.h
reactos/lib/3rdparty/cardlib/globals.h

index dc85896..9540039 100644 (file)
@@ -102,4 +102,4 @@ private:
        bool fFaceUp;
 };
 
-#endif
+#endif /* _CARD_INCLUDED */
index aa594f8..cbc8932 100644 (file)
@@ -5,16 +5,7 @@
 //    Copyright J Brown 2001
 //
 
-//#include <windows.h>
-#define WIN32_NO_STATUS
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <winuser.h>
-
-#include "globals.h"
-#include "cardcolor.h"
+#include "cardlib.h"
 
 #ifndef __REACTOS__
 #pragma comment( lib, "..\\CardLib\\cards16.lib" )
index 921d59c..76957a4 100644 (file)
@@ -4,16 +4,8 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
-//#include <tchar.h>
-
-#define WIN32_NO_STATUS
-#include <windef.h>
 
 #include "cardlib.h"
-//#include "cardwindow.h"
-//#include "cardbutton.h"
-#include "cardcolor.h"
 
 HPALETTE UseNicePalette(HDC, HPALETTE);
 void     RestorePalette(HDC, HPALETTE);
index 541ca09..d9306da 100644 (file)
@@ -3,8 +3,6 @@
 
 #define MAXBUTTONTEXT 64
 
-//#include "cardlib.h"
-
 class CardButton
 {
        friend class CardWindow;
@@ -98,4 +96,4 @@ private:
        pButtonProc     ButtonCallback;
 };
 
-#endif
+#endif /* CARDBUTTON_INCLUDED */
index eb76c42..f92713c 100644 (file)
@@ -1,11 +1,8 @@
 //
 //    Colour support
 //
-//#include <windows.h>
 
-#define WIN32_NO_STATUS
-#include <windef.h>
-#include <wingdi.h>
+#include "cardlib.h"
 
 #define MakeRGB RGB
 
index a8a633f..2ec36bc 100644 (file)
@@ -1,3 +1,4 @@
+#pragma once
 
 COLORREF ColorScaleRGB(        const COLORREF Col1,
                                                const COLORREF Col2,
index df86a88..29e5cf7 100644 (file)
@@ -18,6 +18,7 @@
 //
 //        count.Clear();
 //
+
 #include "cardcount.h"
 
 CardCount::CardCount()
index 1713519..eb1c26d 100644 (file)
@@ -1,18 +1,6 @@
 #ifndef _CARDCOUNT_INCLUDED
 #define _CARDCOUNT_INCLUDED
 
-//#include <windows.h>
-
-#define WIN32_NO_STATUS
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <stdlib.h>
-
-#include "cardstack.h"
-
 class CardCount
 {
 public:
@@ -36,4 +24,4 @@ private:
                                        //(ace,2,3,4,5,6,7,8,9,10,J,Q,K)
 };
 
-#endif
+#endif /* _CARDCOUNT_INCLUDED */
index ff2666e..ac051a8 100644 (file)
@@ -4,13 +4,8 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
-
-#define WIN32_NO_STATUS
-#include <windef.h>
 
 #include "cardlib.h"
-//#include "globals.h"
 
 void LoadCardBitmaps(void);
 
index 581c029..df622ee 100644 (file)
@@ -2,11 +2,13 @@
 #define CARDLIB_INCLUDED
 
 #include <stdarg.h>
+#include <stdlib.h>
 
 #define WIN32_NO_STATUS
 #include <windef.h>
 #include <winbase.h>
 #include <wingdi.h>
+#include <winuser.h>
 
 #define CARDLIBPROC __stdcall
 
@@ -91,12 +93,13 @@ typedef int  (CARDLIBPROC *pDropZoneProc)   (int dzid, const CardStack &cards);
 
 typedef void (CARDLIBPROC *pButtonProc)                (CardButton &pButton);
 
-
-//#include "card.h"
+#include "globals.h"
+#include "card.h"
 #include "cardbutton.h"
-//#include "cardstack.h"
+#include "cardcolor.h"
+#include "cardstack.h"
 #include "cardregion.h"
-#include "cardcount.h"
+#include "dropzone.h"
 #include "cardwindow.h"
 
 #ifdef _DEBUG
@@ -104,5 +107,4 @@ typedef bool (CARDLIBPROC *pDebugClickProc) (CardRegion &stackobj);
 void CardLib_SetStackClickProc(pDebugClickProc proc);
 #endif
 
-
-#endif
+#endif /* CARDLIB_INCLUDED */
index e382a82..bab7cda 100644 (file)
@@ -4,15 +4,8 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
-
-#define WIN32_NO_STATUS
-#include <windef.h>
 
 #include "cardlib.h"
-//#include "cardregion.h"
-//#include "cardwindow.h"
-//#include "cardcolor.h"
 
 HBITMAP CreateSinkBmp(HDC hdcCompat, HDC hdc, int width, int height);
 
index 3b831e6..ad0c7b5 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef CARDREGION_INCLUDED
 #define CARDREGION_INCLUDED
 
-#include "globals.h"
-#include "cardstack.h"
-//#include "cardlib.h"
-
 class CardWindow;
 
 //
@@ -215,5 +211,4 @@ private:
        HANDLE                  mxlock;
 };
 
-#endif
-
+#endif /* CARDREGION_INCLUDED */
index a97d70d..a5c20e3 100644 (file)
@@ -4,15 +4,8 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
 
-#define WIN32_NO_STATUS
-#include <windef.h>
-
-//#include <stdlib.h>
 #include "cardlib.h"
-//#include "cardregion.h"
-//#include "cardcolor.h"
 
 HPALETTE UseNicePalette(HDC hdc, HPALETTE hPalette);
 void PaintRect(HDC hdc, RECT *rect, COLORREF colour);
index 3829b03..08d99e6 100644 (file)
@@ -4,17 +4,10 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
 
-#define WIN32_NO_STATUS
-#include <windef.h>
+#include "cardlib.h"
 
 #include <math.h>
-//#include <stdio.h>
-
-#include "cardlib.h"
-//#include "cardwindow.h"
-//#include "cardregion.h"
 
 #if 1
 #define TRACE(s)
index 41d27ab..4e891c1 100644 (file)
@@ -4,12 +4,6 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
-
-#define WIN32_NO_STATUS
-#include <windef.h>
-
-#include <stdlib.h>
 
 #include "cardstack.h"
 
index a7898d7..69769a7 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef CARDSTACK_INCLUDED
 #define CARDSTACK_INCLUDED
 
-#include "card.h"
-
 #define MAX_CARDSTACK_SIZE 128
 
 class CardStack
@@ -50,4 +48,5 @@ private:
        int  nNumCards;
 };
 
-#endif
+#endif /* CARDSTACK_INCLUDED */
+
index e759901..d157691 100644 (file)
@@ -4,20 +4,10 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
 
-#define WIN32_NO_STATUS
-#include <windef.h>
+#include "cardlib.h"
 
 #include <tchar.h>
-//#include <stdlib.h>
-
-//#include "globals.h"
-#include "cardlib.h"
-//#include "cardbutton.h"
-//#include "cardregion.h"
-//#include "cardwindow.h"
-#include "cardcolor.h"
 
 extern HPALETTE __holdplacepal;
 
index 195422e..3c84acf 100644 (file)
@@ -5,9 +5,6 @@
 #define MAXCARDSTACKS  32
 #define MAXDROPZONES   8
 
-#include "dropzone.h"
-//#include "cardlib.h"
-
 class CardRegion;
 class CardButton;
 
@@ -116,5 +113,4 @@ static LRESULT CALLBACK CardWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM
 
 };
 
-
-#endif
+#endif /* CARDBOARD_INCLUDED */
index 092c201..ae62470 100644 (file)
@@ -4,14 +4,8 @@
 //    Freeware
 //    Copyright J Brown 2001
 //
-//#include <windows.h>
-
-#define WIN32_NO_STATUS
-#include <windef.h>
 
 #include "cardlib.h"
-//#include "cardwindow.h"
-//#include "dropzone.h"
 
 bool CardWindow::RegisterDropZone(int id, RECT *rect, pDropZoneProc proc)
 {
index 1c7e0e5..6d546e6 100644 (file)
@@ -36,4 +36,4 @@ private:
        pDropZoneProc DropZoneCallback;
 };
 
-#endif
+#endif /* DROPZONE_INCLUDED */
index 329d252..46ac6db 100644 (file)
@@ -12,4 +12,4 @@ extern HBITMAP  __hbmPlaceHolder;
 
 extern HPALETTE __hPalette;
 
-#endif
+#endif /* GLOBALS_INCLUDED */