[MSCOREE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 25 Dec 2013 15:31:19 +0000 (15:31 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 25 Dec 2013 15:31:19 +0000 (15:31 +0000)
* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61411

reactos/dll/win32/mscoree/CMakeLists.txt
reactos/dll/win32/mscoree/assembly.c
reactos/dll/win32/mscoree/config.c
reactos/dll/win32/mscoree/cordebug.c
reactos/dll/win32/mscoree/corruntimehost.c
reactos/dll/win32/mscoree/guid.c [new file with mode: 0644]
reactos/dll/win32/mscoree/metadata.c
reactos/dll/win32/mscoree/metahost.c
reactos/dll/win32/mscoree/mscoree_main.c
reactos/dll/win32/mscoree/mscoree_private.h

index eaae3c5..21b183d 100644 (file)
@@ -15,12 +15,13 @@ list(APPEND SOURCE
     metadata.c
     metahost.c
     mscoree_main.c
     metadata.c
     metahost.c
     mscoree_main.c
+    guid.c
     mscoree.rc
     ${CMAKE_CURRENT_BINARY_DIR}/mscoree_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/mscoree.def)
 
 add_library(mscoree SHARED ${SOURCE})
 set_module_type(mscoree win32dll)
     mscoree.rc
     ${CMAKE_CURRENT_BINARY_DIR}/mscoree_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/mscoree.def)
 
 add_library(mscoree SHARED ${SOURCE})
 set_module_type(mscoree win32dll)
-target_link_libraries(mscoree wine uuid)
+target_link_libraries(mscoree uuid wine)
 add_importlibs(mscoree dbghelp advapi32 shell32 ole32 shlwapi msvcrt kernel32 ntdll)
 add_cd_file(TARGET mscoree DESTINATION reactos/system32 FOR all)
 add_importlibs(mscoree dbghelp advapi32 shell32 ole32 shlwapi msvcrt kernel32 ntdll)
 add_cd_file(TARGET mscoree DESTINATION reactos/system32 FOR all)
index 77852c0..310726f 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <stdarg.h>
-//#include <stdio.h>
+#include "mscoree_private.h"
 
 
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
 #include <winver.h>
 #include <dbghelp.h>
 #include <winver.h>
 #include <dbghelp.h>
-#include <ole2.h>
-//#include "mscoree.h"
-#include <corhdr.h>
-#include <metahost.h>
-#include <cordebug.h>
-#include <wine/list.h>
-#include "mscoree_private.h"
-
-//#include "wine/debug.h"
-//#include "wine/unicode.h"
 
 typedef struct
 {
 
 typedef struct
 {
index e8d7324..b36cbb5 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#define COBJMACROS
-
-#include <stdarg.h>
+#include "mscoree_private.h"
 
 
-#include <windef.h>
-#include <winbase.h>
-#include <winreg.h>
 #include <ole2.h>
 #include <ole2.h>
-#include <msxml2.h>
-//#include "mscoree.h"
-#include <corhdr.h>
-#include <metahost.h>
-#include <cordebug.h>
-#include <wine/list.h>
-#include "mscoree_private.h"
 #include <shlwapi.h>
 #include <shlwapi.h>
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
+#include <initguid.h>
+#include <msxml2.h>
 
 enum parse_state
 {
 
 enum parse_state
 {
index be6091f..d1601fc 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#define COBJMACROS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-
-//#include "winuser.h"
-//#include "winnls.h"
-//#include "winreg.h"
-#include <ole2.h>
-//#include "shellapi.h"
-//#include "mscoree.h"
-#include <corhdr.h>
-#include <metahost.h>
-#include <cordebug.h>
-#include <wine/list.h>
 #include "mscoree_private.h"
 #include "mscoree_private.h"
-#include <wine/debug.h>
-
-
-WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
 
 typedef struct DebugProcess
 {
 
 typedef struct DebugProcess
 {
index f7baefa..983af00 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#define COBJMACROS
+#include "mscoree_private.h"
 
 #include <assert.h>
 
 #include <assert.h>
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
-//#include "winnls.h"
-#include <winreg.h>
-#include <ole2.h>
 #include <shellapi.h>
 #include <shellapi.h>
-
-#include <cor.h>
-//#include "mscoree.h"
-#include <metahost.h>
-//#include "corhdr.h"
-#include <cordebug.h>
-#include <wine/list.h>
-#include "mscoree_private.h"
-
-#include <wine/debug.h>
-#include <wine/unicode.h>
-//#include "wine/list.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
-
 #include <initguid.h>
 
 DEFINE_GUID(IID__AppDomain, 0x05f696dc,0x2b29,0x3663,0xad,0x8b,0xc4,0x38,0x9c,0xf2,0xa7,0x13);
 #include <initguid.h>
 
 DEFINE_GUID(IID__AppDomain, 0x05f696dc,0x2b29,0x3663,0xad,0x8b,0xc4,0x38,0x9c,0xf2,0xa7,0x13);
diff --git a/reactos/dll/win32/mscoree/guid.c b/reactos/dll/win32/mscoree/guid.c
new file mode 100644 (file)
index 0000000..d1cc2eb
--- /dev/null
@@ -0,0 +1,17 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <windef.h>
+#include <winbase.h>
+#include <objbase.h>
+#include <initguid.h>
+#include <cor.h>
+#include <cordebug.h>
+#include <metahost.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
index 9d66921..b80a2dc 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-//#include <stdio.h>
-#include <stdarg.h>
-//#include <assert.h>
-
-#define COBJMACROS
-
-//#include "wine/library.h"
-#include <windef.h>
-#include <winbase.h>
-//#include "winreg.h"
-#include <ole2.h>
-#include <cor.h>
-//#include "mscoree.h"
-//#include "corhdr.h"
-//#include "cordebug.h"
-//#include "metahost.h"
-//#include "wine/list.h"
-//#include "mscoree_private.h"
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
+#include "mscoree_private.h"
 
 typedef struct MetaDataDispenser
 {
 
 typedef struct MetaDataDispenser
 {
index 6ac04ff..7b01f10 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "mscoree_private.h"
 
 #include <stdio.h>
 
 #include <stdio.h>
-//#include <stdarg.h>
 #include <assert.h>
 
 #include <assert.h>
 
-#define COBJMACROS
-
-#include <wine/unicode.h>
 #include <wine/library.h>
 #include <wine/library.h>
-//#include "windef.h"
-//#include "winbase.h"
-#include <winreg.h>
-#include <ole2.h>
-
-//#include "corerror.h"
-#include <cor.h>
-//#include "mscoree.h"
-//#include "corhdr.h"
-#include <cordebug.h>
-#include <metahost.h>
-#include <fusion.h>
-#include <wine/list.h>
-#include "mscoree_private.h"
-
-#include <wine/debug.h>
 
 
-WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
+#include <fusion.h>
 
 static const WCHAR net_11_subdir[] = {'1','.','0',0};
 static const WCHAR net_20_subdir[] = {'2','.','0',0};
 
 static const WCHAR net_11_subdir[] = {'1','.','0',0};
 static const WCHAR net_20_subdir[] = {'2','.','0',0};
index d8b4ce6..0b982d0 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-//#include <stdarg.h>
-
-#define COBJMACROS
-#include <wine/unicode.h>
-//#include "wine/library.h"
-//#include "windef.h"
-//#include "winbase.h"
-//#include "winuser.h"
-//#include "winnls.h"
-#include <winreg.h>
-#include <ole2.h>
-#include <ocidl.h>
-//#include "shellapi.h"
-
-#include <initguid.h>
-#include <msxml2.h>
-//#include "corerror.h"
-#include <cor.h>
-//#include "mscoree.h"
-//#include "corhdr.h"
-#include <cordebug.h>
-#include <metahost.h>
-//#include "fusion.h"
-#include <wine/list.h>
 #include "mscoree_private.h"
 #include "mscoree_private.h"
-#include <rpcproxy.h>
-
-#include <wine/debug.h>
 
 
-WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
+#include <rpcproxy.h>
 
 static HINSTANCE MSCOREE_hInstance;
 
 
 static HINSTANCE MSCOREE_hInstance;
 
index ef9079e..3bcb905 100644 (file)
 #ifndef __MSCOREE_PRIVATE__
 #define __MSCOREE_PRIVATE__
 
 #ifndef __MSCOREE_PRIVATE__
 #define __MSCOREE_PRIVATE__
 
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+
+#include <windef.h>
+#include <winbase.h>
+#include <winreg.h>
+#include <objbase.h>
+#include <cor.h>
+#include <corhdr.h>
+#include <cordebug.h>
+#include <metahost.h>
+
+#include <wine/list.h>
+#include <wine/unicode.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
+
 extern char *WtoA(LPCWSTR wstr) DECLSPEC_HIDDEN;
 
 extern HRESULT CLRMetaHost_CreateInstance(REFIID riid, void **ppobj) DECLSPEC_HIDDEN;
 extern char *WtoA(LPCWSTR wstr) DECLSPEC_HIDDEN;
 
 extern HRESULT CLRMetaHost_CreateInstance(REFIID riid, void **ppobj) DECLSPEC_HIDDEN;