Author: akhaldi
Date: Tue Jan 7 17:05:34 2014
New Revision: 61562
URL:
http://svn.reactos.org/svn/reactos?rev=61562&view=rev
Log:
[NOTEPAD]
* Remove one time inclusions from the main header and put them back where they belong.
* Cleanup headers.
CORE-7716
Modified:
trunk/reactos/base/applications/notepad/dialog.c
trunk/reactos/base/applications/notepad/dialog.h
trunk/reactos/base/applications/notepad/main.h
trunk/reactos/base/applications/notepad/notepad.h
trunk/reactos/base/applications/notepad/settings.c
Modified: trunk/reactos/base/applications/notepad/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] Tue Jan 7 17:05:34
2014
@@ -21,6 +21,10 @@
*/
#include "notepad.h"
+
+#include <assert.h>
+#include <commctrl.h>
+#include <strsafe.h>
LRESULT CALLBACK EDIT_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
Modified: trunk/reactos/base/applications/notepad/dialog.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/dialog.h [iso-8859-1] Tue Jan 7 17:05:34
2014
@@ -17,6 +17,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#pragma once
VOID DIALOG_FileNew(VOID);
VOID DIALOG_FileOpen(VOID);
Modified: trunk/reactos/base/applications/notepad/main.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/main.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/main.h [iso-8859-1] Tue Jan 7 17:05:34 2014
@@ -18,6 +18,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#pragma once
#define SIZEOF(a) (sizeof(a)/sizeof((a)[0]))
Modified: trunk/reactos/base/applications/notepad/notepad.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/notepad.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/notepad.h [iso-8859-1] Tue Jan 7 17:05:34
2014
@@ -2,20 +2,17 @@
#define STRSAFE_NO_DEPRECATE
#endif
-#include <assert.h>
-#include <stdio.h>
+#include <stdarg.h>
+
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <winnls.h>
-#include <winreg.h>
#include <wingdi.h>
#include <shellapi.h>
#include <commdlg.h>
-#include <commctrl.h>
#include <tchar.h>
#include <malloc.h>
-#include <strsafe.h>
#include "main.h"
#include "dialog.h"
Modified: trunk/reactos/base/applications/notepad/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] Tue Jan 7 17:05:34
2014
@@ -21,6 +21,8 @@
*/
#include "notepad.h"
+
+#include <winreg.h>
static LPCTSTR s_szRegistryKey = _T("Software\\Microsoft\\Notepad");