[LOCALSPL]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 24 Dec 2013 20:40:55 +0000 (20:40 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 24 Dec 2013 20:40:55 +0000 (20:40 +0000)
* Move some inclusions to the main header.
* Extract the resource related definitions into resource.h and include it in both the main header and the resource file.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header/resource file.
CORE-7716

svn path=/trunk/; revision=61376

28 files changed:
reactos/dll/win32/localspl/lang/spl_Cy.rc
reactos/dll/win32/localspl/lang/spl_Da.rc
reactos/dll/win32/localspl/lang/spl_De.rc
reactos/dll/win32/localspl/lang/spl_En.rc
reactos/dll/win32/localspl/lang/spl_Es.rc
reactos/dll/win32/localspl/lang/spl_Fr.rc
reactos/dll/win32/localspl/lang/spl_He.rc
reactos/dll/win32/localspl/lang/spl_Hu.rc
reactos/dll/win32/localspl/lang/spl_It.rc
reactos/dll/win32/localspl/lang/spl_Ja.rc
reactos/dll/win32/localspl/lang/spl_Ko.rc
reactos/dll/win32/localspl/lang/spl_Lt.rc
reactos/dll/win32/localspl/lang/spl_Nl.rc
reactos/dll/win32/localspl/lang/spl_No.rc
reactos/dll/win32/localspl/lang/spl_Pl.rc
reactos/dll/win32/localspl/lang/spl_Pt.rc
reactos/dll/win32/localspl/lang/spl_Ro.rc
reactos/dll/win32/localspl/lang/spl_Ru.rc
reactos/dll/win32/localspl/lang/spl_Si.rc
reactos/dll/win32/localspl/lang/spl_Sv.rc
reactos/dll/win32/localspl/lang/spl_Uk.rc
reactos/dll/win32/localspl/lang/spl_Zh.rc
reactos/dll/win32/localspl/localmon.c
reactos/dll/win32/localspl/localspl.rc
reactos/dll/win32/localspl/localspl_main.c
reactos/dll/win32/localspl/localspl_private.h
reactos/dll/win32/localspl/provider.c
reactos/dll/win32/localspl/resource.h [new file with mode: 0644]

index cbbe944..ecae600 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_WELSH, SUBLANG_DEFAULT
 
 STRINGTABLE
index b28fa08..74b43ce 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index b0328f3..4ad1148 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
index 13b8bf0..4052cb7 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index 18d93b6..3ae4b22 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index efc5ed1..5aee221 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
 
 STRINGTABLE
index f119fbe..a93e293 100644 (file)
@@ -21,8 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
 
 STRINGTABLE
index 5dcf04c..5bb4422 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 6422126..80fad14 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 660d03a..2e4ecf7 100644 (file)
@@ -19,8 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 89c46c3..c7303ae 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
 
 STRINGTABLE
index 692e47b..2b242cd 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index ac1cdf0..ae46424 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
 
 STRINGTABLE
index aefb423..40660a6 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL
 
 STRINGTABLE
index 243d2c0..bd7908c 100644 (file)
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
 
 STRINGTABLE
index 0bf08a3..2675843 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
 
 STRINGTABLE
index 364f028..3109871 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
index bd97f11..50b3d7b 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index 5c0d25d..32d7aff 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 #pragma code_page(65001)
 
 LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
index bb32b6c..7c60d30 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
 
 STRINGTABLE
index c1ea3cf..4b0ea3f 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* UTF-8 */
 #pragma code_page(65001)
 
index faaa454..2e2f54f 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "localspl_private.h"
-
 /* Chinese text is encoded in UTF-8 */
 #pragma code_page(65001)
 
index ae43c6b..3e243bf 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <winreg.h>
-
-#include <winspool.h>
-#include <ddk/winsplp.h>
 #include "localspl_private.h"
 
-#include <wine/debug.h>
-#include <wine/list.h>
-#include <wine/unicode.h>
-
-
-WINE_DEFAULT_DEBUG_CHANNEL(localspl);
-
 /*****************************************************/
 
 static CRITICAL_SECTION port_handles_cs;
index 47901f3..c51e86c 100644 (file)
  *
  */
 
-//#include "windef.h"
-//#include "winbase.h"
-//#include "winver.h"
-//#include "localspl_private.h"
+#include "resource.h"
 
 #define WINE_FILENAME_STR "localspl.dll"
 #define WINE_FILEDESCRIPTION_STR "Wine Printer spooler component"
index a555f43..6e594c7 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-
-#include <windef.h>
-#include <winbase.h>
-
-#include <wine/debug.h>
 #include "localspl_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(localspl);
-
-
 HINSTANCE LOCALSPL_hInstance = NULL;
 
 /*****************************************************
index 4f79f3d..0fd85d3 100644 (file)
 #ifndef __WINE_LOCALSPL_PRIVATE__
 #define __WINE_LOCALSPL_PRIVATE__
 
-//#include <windef.h>
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+#define NONAMELESSUNION
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <winreg.h>
+#include <winspool.h>
+
+#include <wine/list.h>
+#include <wine/unicode.h>
+#include <ddk/winsplp.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(localspl);
+
+#include "resource.h"
 
 /* ## DLL-wide Globals ## */
 extern HINSTANCE LOCALSPL_hInstance DECLSPEC_HIDDEN;
 void setup_provider(void) DECLSPEC_HIDDEN;
 
-/* ## Resource-ID ## */
-#define IDS_LOCALPORT       500
-#define IDS_LOCALMONITOR    507
-
-/* ## Reserved memorysize for the strings (in WCHAR) ## */
-#define IDS_LOCALMONITOR_MAXLEN 64
-#define IDS_LOCALPORT_MAXLEN 32
-
 /* ## Type of Ports ## */
 /* windows types */
 #define PORT_IS_UNKNOWN  0
index 864d434..06ac03f 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <winreg.h>
-#include <winspool.h>
-#include <winuser.h>
-#include <ddk/winddiui.h>
-#include <ddk/winsplp.h>
-
-#include <wine/list.h>
-#include <wine/debug.h>
-#include <wine/unicode.h>
 #include "localspl_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(localspl);
+#include <ddk/winddiui.h>
 
 /* ############################### */
 
diff --git a/reactos/dll/win32/localspl/resource.h b/reactos/dll/win32/localspl/resource.h
new file mode 100644 (file)
index 0000000..6a961f9
--- /dev/null
@@ -0,0 +1,9 @@
+#pragma once
+
+/* ## Resource-ID ## */
+#define IDS_LOCALPORT       500
+#define IDS_LOCALMONITOR    507
+
+/* ## Reserved memorysize for the strings (in WCHAR) ## */
+#define IDS_LOCALMONITOR_MAXLEN 64
+#define IDS_LOCALPORT_MAXLEN 32