Author: akhaldi
Date: Mon Feb 3 16:13:37 2014
New Revision: 61959
URL:
http://svn.reactos.org/svn/reactos?rev=61959&view=rev
Log:
[APPLICATIONS]
* Add header guards to the main headers.
CORE-7716
Modified:
trunk/reactos/base/applications/calc/calc.h
trunk/reactos/base/applications/games/solitaire/solitaire.h
trunk/reactos/base/applications/games/spider/spider.h
trunk/reactos/base/applications/games/winmine/main.h
trunk/reactos/base/applications/magnify/magnifier.h
trunk/reactos/base/applications/mmc/precomp.h
trunk/reactos/base/applications/msconfig/msconfig.h
trunk/reactos/base/applications/msconfig/precomp.h
trunk/reactos/base/applications/mspaint/precomp.h
trunk/reactos/base/applications/mstsc/precomp.h
trunk/reactos/base/applications/network/finger/precomp.h
trunk/reactos/base/applications/network/ftp/precomp.h
trunk/reactos/base/applications/network/net/cmdHelpMsg.c
trunk/reactos/base/applications/network/net/net.h
trunk/reactos/base/applications/network/nslookup/nslookup.h
trunk/reactos/base/applications/network/telnet/precomp.h
trunk/reactos/base/applications/notepad/notepad.h
trunk/reactos/base/applications/rapps/rapps.h
trunk/reactos/base/applications/sc/sc.h
trunk/reactos/base/applications/screensavers/3dtext/3dtext.h
trunk/reactos/base/applications/sndrec32/stdafx.h
trunk/reactos/base/applications/winhlp32/winhelp.h
Modified: trunk/reactos/base/applications/calc/calc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/calc/cal…
==============================================================================
--- trunk/reactos/base/applications/calc/calc.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/calc/calc.h [iso-8859-1] Mon Feb 3 16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _CALC_H
+#define _CALC_H
+
#include <stdarg.h>
#include <windef.h>
#include <winuser.h>
@@ -225,3 +228,5 @@
void ConvExecute(HWND hWnd);
void ConvAdjust(HWND hWnd, int n_cat);
void ConvInit(HWND hWnd);
+
+#endif /* _CALC_H */
Modified: trunk/reactos/base/applications/games/solitaire/solitaire.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/so…
==============================================================================
--- trunk/reactos/base/applications/games/solitaire/solitaire.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/solitaire/solitaire.h [iso-8859-1] Mon Feb 3
16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _SOL_PCH_
+#define _SOL_PCH_
+
#include <cardlib.h>
extern CardWindow SolWnd;
@@ -52,3 +55,5 @@
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
+
+#endif /* _SOL_PCH_ */
Modified: trunk/reactos/base/applications/games/spider/spider.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/sp…
==============================================================================
--- trunk/reactos/base/applications/games/spider/spider.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/spider/spider.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1,3 +1,6 @@
+#ifndef _SPIDER_PCH_
+#define _SPIDER_PCH_
+
#include <cardlib.h>
#include "resource.h"
@@ -39,3 +42,5 @@
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
+
+#endif /* _SPIDER_PCH_ */
Modified: trunk/reactos/base/applications/games/winmine/main.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/wi…
==============================================================================
--- trunk/reactos/base/applications/games/winmine/main.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/winmine/main.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -16,7 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#pragma once
+#ifndef _WINMINE_H_
+#define _WINMINE_H_
#include <stdarg.h>
@@ -136,5 +137,4 @@
INT_PTR CALLBACK TimesDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
-
-/* end of header */
+#endif /* _WINMINE_H_ */
Modified: trunk/reactos/base/applications/magnify/magnifier.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/magnify/…
==============================================================================
--- trunk/reactos/base/applications/magnify/magnifier.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/magnify/magnifier.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -18,6 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _MAGNIFIER_H_
+#define _MAGNIFIER_H_
+
#include <stdarg.h>
#include <windef.h>
@@ -35,3 +38,5 @@
void LoadSettings(void);
void SaveSettings(void);
+
+#endif /* _MAGNIFIER_H_ */
Modified: trunk/reactos/base/applications/mmc/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mmc/prec…
==============================================================================
--- trunk/reactos/base/applications/mmc/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mmc/precomp.h [iso-8859-1] Mon Feb 3 16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _MMC_PCH_
+#define _MMC_PCH_
+
#include <stdarg.h>
#include <windef.h>
@@ -37,3 +40,5 @@
extern HANDLE hAppHeap;
extern HWND hwndMainConsole;
extern HWND hwndMDIClient;
+
+#endif /* _MMC_PCH_ */
Modified: trunk/reactos/base/applications/msconfig/msconfig.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/msconfig.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig/msconfig.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1 +1,3 @@
+#pragma once
+
extern HINSTANCE hInst;
Modified: trunk/reactos/base/applications/msconfig/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig/precomp.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1,3 +1,6 @@
+#ifndef _MSCONFIG_PCH_
+#define _MSCONFIG_PCH_
+
#include <stdarg.h>
#define WIN32_NO_STATUS
@@ -18,3 +21,5 @@
#define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383
+
+#endif /* _MSCONFIG_PCH_ */
Modified: trunk/reactos/base/applications/mspaint/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/precomp.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1,3 +1,6 @@
+#ifndef _MSPAINT_H
+#define _MSPAINT_H
+
#include <stdarg.h>
#include <windef.h>
@@ -17,3 +20,5 @@
#include "globalvar.h"
#include "history.h"
#include "mouse.h"
+
+#endif /* _MSPAINT_H */
Modified: trunk/reactos/base/applications/mstsc/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/pr…
==============================================================================
--- trunk/reactos/base/applications/mstsc/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/precomp.h [iso-8859-1] Mon Feb 3 16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _MSTSC_PCH_
+#define _MSTSC_PCH_
+
#include <stdarg.h>
#define WIN32_NO_STATUS
@@ -106,3 +109,5 @@
VOID SaveAllSettings(PINFO pInfo);
#endif /* __TODO_MSTSC_H */
+
+#endif /* _MSTSC_PCH_ */
Modified: trunk/reactos/base/applications/network/finger/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/finger/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/finger/precomp.h [iso-8859-1] Mon Feb 3
16:13:37 2014
@@ -1,8 +1,14 @@
+#ifndef _FINGER_PCH_
+#define _FINGER_PCH_
+
+#include <stdio.h>
+#include <stdlib.h>
+
#define WIN32_NO_STATUS
#include <windef.h>
#define _INC_WINDOWS
#include <winsock2.h>
-#include <stdio.h>
-#include <stdlib.h>
#include "err.h"
+
+#endif /* _FINGER_PCH_ */
Modified: trunk/reactos/base/applications/network/ftp/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/precomp.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1,3 +1,6 @@
+#ifndef _FTP_H
+#define _FTP_H
+
#include <sys/stat.h>
#ifndef _WIN32
@@ -27,3 +30,5 @@
#include <stdlib.h>
#include "ftp_var.h"
+
+#endif /* _FTP_H */
Modified: trunk/reactos/base/applications/network/net/cmdHelpMsg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/cmdHelpMsg.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/net/cmdHelpMsg.c [iso-8859-1] Mon Feb 3
16:13:37 2014
@@ -8,7 +8,8 @@
*/
#include "net.h"
-#include "stdlib.h"
+
+#include <stdlib.h>
INT cmdHelpMsg(INT argc, WCHAR **argv)
{
Modified: trunk/reactos/base/applications/network/net/net.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/net.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/net/net.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1,13 +1,14 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS net command
- * FILE:
- * PURPOSE:
- *
* PROGRAMMERS: Magnus Olsen (greatlord(a)reactos.org)
*/
+#ifndef _NET_PCH_
+#define _NET_PCH_
+
#include <stdarg.h>
+
#include <windef.h>
#include <winbase.h>
#include <winsvc.h>
@@ -22,3 +23,5 @@
INT cmdPause(INT argc, WCHAR **argv);
INT cmdStart(INT argc, WCHAR **argv);
INT cmdStop(INT argc, WCHAR **argv);
+
+#endif /* _NET_PCH_ */
Modified: trunk/reactos/base/applications/network/nslookup/nslookup.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/nslookup/nslookup.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/nslookup/nslookup.h [iso-8859-1] Mon Feb 3
16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _NSLOOKUP_H
+#define _NSLOOKUP_H
+
#include <stdarg.h>
#define WIN32_NO_STATUS
@@ -111,3 +114,5 @@
USHORT TypeNametoTypeID( PCHAR TypeName );
PCHAR ClassIDtoClassName( USHORT ClassID );
USHORT ClassNametoClassID( PCHAR ClassName );
+
+#endif /* _NSLOOKUP_H */
Modified: trunk/reactos/base/applications/network/telnet/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/telnet/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/telnet/precomp.h [iso-8859-1] Mon Feb 3
16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _TELNET_PCH_
+#define _TELNET_PCH_
+
#include <stdarg.h>
#define WIN32_NO_STATUS
@@ -27,3 +30,5 @@
#include "src/tnclass.h"
#include "src/tnmisc.h"
#include "src/tncon.h"
+
+#endif /* _TELNET_PCH_ */
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] Mon Feb 3 16:13:37
2014
@@ -1,3 +1,6 @@
+#ifndef _NOTEPAD_H
+#define _NOTEPAD_H
+
#ifndef STRSAFE_NO_DEPRECATE
#define STRSAFE_NO_DEPRECATE
#endif
@@ -16,3 +19,5 @@
#include "main.h"
#include "dialog.h"
+
+#endif /* _NOTEPAD_H */
Modified: trunk/reactos/base/applications/rapps/rapps.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/ra…
==============================================================================
--- trunk/reactos/base/applications/rapps/rapps.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/rapps.h [iso-8859-1] Mon Feb 3 16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _RAPPS_H
+#define _RAPPS_H
+
#include <stdarg.h>
#define WIN32_NO_STATUS
@@ -195,3 +198,5 @@
extern HWND hTreeView;
BOOL CreateTreeView(HWND hwnd);
HTREEITEM TreeViewAddItem(HTREEITEM hParent, LPWSTR lpText, INT Image, INT SelectedImage,
LPARAM lParam);
+
+#endif /* _RAPPS_H */
Modified: trunk/reactos/base/applications/sc/sc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sc/sc.h?…
==============================================================================
--- trunk/reactos/base/applications/sc/sc.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sc/sc.h [iso-8859-1] Mon Feb 3 16:13:37 2014
@@ -1,3 +1,6 @@
+#ifndef _SC_PCH_
+#define _SC_PCH_
+
#include <stdarg.h>
#include <windef.h>
@@ -32,3 +35,5 @@
VOID DeleteUsage(VOID);
VOID CreateUsage(VOID);
VOID ControlUsage(VOID);
+
+#endif /* _SC_PCH_ */
Modified: trunk/reactos/base/applications/screensavers/3dtext/3dtext.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/screensa…
==============================================================================
--- trunk/reactos/base/applications/screensavers/3dtext/3dtext.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/screensavers/3dtext/3dtext.h [iso-8859-1] Mon Feb 3
16:13:37 2014
@@ -18,6 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _3DTEXT_H_
+#define _3DTEXT_H_
+
#include <tchar.h>
#include <windef.h>
@@ -25,3 +28,5 @@
VOID LoadSettings(VOID);
VOID SaveSettings(VOID);
+
+#endif /* _3DTEXT_H_ */
Modified: trunk/reactos/base/applications/sndrec32/stdafx.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndrec32…
==============================================================================
--- trunk/reactos/base/applications/sndrec32/stdafx.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndrec32/stdafx.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef _SNDREC32_PCH_
+#define _SNDREC32_PCH_
//#include "targetver.h"
@@ -16,3 +17,5 @@
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
+
+#endif /* _SNDREC32_PCH_ */
Modified: trunk/reactos/base/applications/winhlp32/winhelp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winhlp32…
==============================================================================
--- trunk/reactos/base/applications/winhlp32/winhelp.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/winhlp32/winhelp.h [iso-8859-1] Mon Feb 3 16:13:37
2014
@@ -19,6 +19,9 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+
+#ifndef _WINHELP_H_
+#define _WINHELP_H_
#define MAX_LANGUAGE_NUMBER 255
#define MAX_STRING_LEN 255
@@ -203,3 +206,5 @@
/* Buttons */
#define WH_FIRST_BUTTON 500
+
+#endif /* _WINHELP_H_ */