[RICHED20]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 1 Jan 2014 18:22:31 +0000 (18:22 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 1 Jan 2014 18:22:31 +0000 (18:22 +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=61470

15 files changed:
reactos/dll/win32/riched20/caret.c
reactos/dll/win32/riched20/editor.c
reactos/dll/win32/riched20/editor.h
reactos/dll/win32/riched20/editstr.h
reactos/dll/win32/riched20/list.c
reactos/dll/win32/riched20/msvc-thiscall.c
reactos/dll/win32/riched20/reader.c
reactos/dll/win32/riched20/res.h
reactos/dll/win32/riched20/richole.c
reactos/dll/win32/riched20/row.c
reactos/dll/win32/riched20/rtf.h
reactos/dll/win32/riched20/txthost.c
reactos/dll/win32/riched20/txtsrv.c
reactos/dll/win32/riched20/wrap.c
reactos/dll/win32/riched20/writer.c

index b39a8c7..07e042b 100644 (file)
@@ -19,7 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-
 #include "editor.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(richedit);
index e2837ad..e63b928 100644 (file)
  */
 
 #include "editor.h"
+
 #include <commdlg.h>
-//#include "winreg.h"
-#define NO_SHLWAPI_STREAM 
-//#include "shlwapi.h"
+
 #include "rtf.h"
-//#include "imm.h"
 #include "res.h"
 
 #define STACK_SIZE_DEFAULT  100
index 43f7e7d..d129a79 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "editstr.h"
+#include <config.h>
+
+#include <assert.h>
+#include <stdio.h>
+
+#ifndef _WIN32_IE
+#define _WIN32_IE 0x0400
+#endif
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <richedit.h>
+#include <ole2.h>
+#include <richole.h>
+#include <imm.h>
+#include <textserv.h>
+
+#include <wine/debug.h>
+#include <wine/list.h>
 #include <wine/unicode.h>
 
+#include "editstr.h"
+
 struct _RTF_Info;
 
 extern HANDLE me_heap DECLSPEC_HIDDEN;
index 627d37e..3d69682 100644 (file)
 #ifndef __EDITSTR_H
 #define __EDITSTR_H
 
-#ifndef _WIN32_IE
-#define _WIN32_IE 0x0400
-#endif
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <assert.h>
-//#include <stdarg.h>
-#include <stdio.h>
-//#include <stdlib.h>
-//#include <limits.h>
-
-#define COBJMACROS
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-
-#include <windef.h>
-#include <winbase.h>
-//#include <winnls.h>
-//#include <winnt.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <richedit.h>
-//#include <commctrl.h>
-#include <ole2.h>
-#include <richole.h>
-#include <imm.h>
-#include <textserv.h>
-
-#include <wine/debug.h>
-#include <wine/list.h>
-
 #ifdef __i386__
 extern const struct ITextHostVtbl itextHostStdcallVtbl;
 #endif /* __i386__ */
index 7722fc9..f71318a 100644 (file)
@@ -18,7 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-
 #include "editor.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(richedit_lists);
index 4f207da..80f3459 100644 (file)
@@ -1,4 +1,3 @@
-#include "config.h"
 #include "editor.h"
 
 #define DEFINE_THISCALL_WRAPPER(func,args) \
index 524196f..f082a30 100644 (file)
  * any purpose whatsoever.
  */
 
-//#include <stdio.h>
-//#include <ctype.h>
-//#include <string.h>
-//#include <stdarg.h>
-//#include <stdlib.h>
-//#include <assert.h>
-
-//#include "windef.h"
-//#include "winbase.h"
-//#include "wine/debug.h"
-
 #include "editor.h"
 #include "rtf.h"
 
index aaf1222..7234310 100644 (file)
@@ -18,4 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#pragma once
+
 #define OCR_REVERSE 107
index 97289d5..b9e7699 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-//#include <stdarg.h>
-
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#define COBJMACROS
-
-//#include "windef.h"
-//#include "winbase.h"
-//#include "wingdi.h"
-//#include "winuser.h"
-//#include "ole2.h"
-//#include "richole.h"
 #include "editor.h"
+
 #include <tom.h>
-//#include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(richedit);
 
 /* there is no way to be consistent across different sets of headers - mingw, Wine, Win32 SDK*/
 
-#include "initguid.h"
+#include <initguid.h>
 DEFINE_GUID(IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5);
 DEFINE_GUID(IID_ITextHost, 0x13e670f4,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
 DEFINE_GUID(IID_ITextHost2, 0x13e670f5,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
index 1bf153f..7f48d4a 100644 (file)
@@ -21,7 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */ 
 
-
 #include "editor.h"
 
 /* I'm sure these functions would simplify some code in caret ops etc,
index 4b2ea37..766a8b3 100644 (file)
@@ -1,16 +1,6 @@
 #ifndef _RTF
 #define _RTF
 
-//#include <stdarg.h>
-//#include <stdio.h>
-
-//#include "windef.h"
-//#include "winbase.h"
-//#include "wingdi.h"
-//#include "winuser.h"
-//#include "richedit.h"
-
-
 /*
  * rtf.h - RTF document processing stuff.  Release 1.10.
  */
index a17a0d0..5f6862e 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <config.h>
-//#include "wine/port.h"
-
-#define NONAMELESSSTRUCT
-#define NONAMELESSUNION
-#define COBJMACROS
-
 #include "editor.h"
-//#include "ole2.h"
-//#include "richole.h"
-//#include "imm.h"
-//#include "textserv.h"
-//#include "wine/debug.h"
-//#include "editstr.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(richedit);
 
index 32032f1..613919d 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <config.h>
-//#include "wine/port.h"
-
-#define NONAMELESSSTRUCT
-#define NONAMELESSUNION
-#define COBJMACROS
-
 #include "editor.h"
-//#include "ole2.h"
-//#include "oleauto.h"
-//#include "richole.h"
-//#include "imm.h"
-//#include "textserv.h"
-//#include "wine/debug.h"
-//#include "editstr.h"
 
 #ifdef __i386__  /* thiscall functions are i386-specific */
 
index 52722db..4509a54 100644 (file)
@@ -19,7 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-
 #include "editor.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(richedit);
index 0ac2dec..c67d192 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <config.h>
-//#include "wine/port.h"
-
 #include "editor.h"
 #include "rtf.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(richedit);
 
-
 static BOOL
 ME_StreamOutRTFText(ME_OutStream *pStream, const WCHAR *text, LONG nChars);