[REGEDIT]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 7 Jan 2014 17:08:52 +0000 (17:08 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 7 Jan 2014 17:08:52 +0000 (17:08 +0000)
* Remove one time inclusions from the main header and put them back where they belong.
* Cleanup the main header.
CORE-7716

svn path=/trunk/; revision=61564

reactos/base/applications/regedit/about.c
reactos/base/applications/regedit/edit.c
reactos/base/applications/regedit/framewnd.c
reactos/base/applications/regedit/hexedit.c
reactos/base/applications/regedit/listview.c
reactos/base/applications/regedit/main.c
reactos/base/applications/regedit/regedit.c
reactos/base/applications/regedit/regedit.h
reactos/base/applications/regedit/regproc.c
reactos/base/applications/regedit/regproc.h

index 5ac50c4..ad01d6d 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "regedit.h"
 
+#include <shellapi.h>
+
 void ShowAboutBox(HWND hWnd)
 {
     WCHAR AppStr[255];
index 5d45843..3dc134c 100644 (file)
@@ -20,6 +20,9 @@
 
 #include "regedit.h"
 
+#define NTOS_MODE_USER
+#include <ndk/cmtypes.h>
+
 typedef enum _EDIT_MODE
 {
     EDIT_MODE_DEC,
index 39353c4..3818673 100644 (file)
 
 #include "regedit.h"
 
+#include <commdlg.h>
+#include <cderr.h>
+#include <objsel.h>
+
 /********************************************************************************
  * Global and Local Variables:
  */
index 65fada6..a713d02 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include "regedit.h"
+
 typedef struct
 {
     HWND hWndSelf;
index d187063..4d99cd7 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "regedit.h"
 
-
 #define CX_ICON    16
 #define CY_ICON    16
 #define NUM_ICONS   2
index 6964cfc..09c7668 100644 (file)
@@ -22,7 +22,6 @@
 
 BOOL ProcessCmdLine(LPWSTR lpCmdLine);
 
-
 /*******************************************************************************
  * Global Variables:
  */
index a879a22..4601427 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "regedit.h"
 
-
 static const LPCWSTR usage =
     L"Usage:\n"
     L"    regedit filenames\n"
index 40262b7..929f205 100644 (file)
@@ -4,25 +4,14 @@
 #define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
 #define WIN32_NO_STATUS
 #include <windows.h>
-
-#define NTOS_MODE_USER
-#include <ndk/cmtypes.h>
-
 #include <commctrl.h>
-#include <shellapi.h>
 #include <shlwapi.h>
 #include <stdio.h>
 #include <aclapi.h>
-#include <commdlg.h>
-#include <cderr.h>
-#include <objsel.h>
-#include <assert.h>
 
 #include "main.h"
 #include "regproc.h"
 #include "hexedit.h"
 #include "security.h"
 
-#endif
-
-/* EOF */
+#endif /* _REGEDIT_H */
index 5ca0850..8df3199 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "regedit.h"
 
+#include <assert.h>
+
 #define REG_VAL_BUF_SIZE        4096
 
 /* maximal number of characters in hexadecimal data line,
index 907a860..b78a39c 100644 (file)
@@ -17,6 +17,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#pragma once
+
 #define KEY_MAX_LEN             1024
 
 #define REG_FORMAT_5 1