OSDN Git Service

Use '#pragma once' in more .h files
authorGreyMerlin <GreyMerlin7@gmail.com>
Sat, 23 Sep 2017 01:00:48 +0000 (18:00 -0700)
committerGreyMerlin <GreyMerlin7@gmail.com>
Wed, 4 Oct 2017 23:39:02 +0000 (16:39 -0700)
39 files changed:
Externals/crystaledit/editlib/LineInfo.h
Externals/crystaledit/editlib/SyntaxColors.h
Externals/crystaledit/editlib/UndoRecord.h
Externals/crystaledit/editlib/ViewableWhitespace.h
Externals/crystaledit/editlib/ccrystaleditview.h
Externals/crystaledit/editlib/ccrystaltextbuffer.h
Externals/crystaledit/editlib/ccrystaltextview.h
Externals/crystaledit/editlib/ceditreplacedlg.h
Externals/crystaledit/editlib/cfindtextdlg.h
Externals/crystaledit/editlib/chcondlg.h
Externals/crystaledit/editlib/cregexp.h
Externals/crystaledit/editlib/crystaleditviewex.h
Externals/crystaledit/editlib/crystalparser.h
Externals/crystaledit/editlib/crystaltextblock.h
Externals/crystaledit/editlib/cs2cs.h
Externals/crystaledit/editlib/editreg.h
Externals/crystaledit/editlib/edtlib.h
Externals/crystaledit/editlib/filesup.h
Externals/crystaledit/editlib/fpattern.h
Externals/crystaledit/editlib/gotodlg.h
Externals/crystaledit/editlib/memcombo.h
Externals/crystaledit/editlib/registry.h
Externals/crystaledit/editlib/splash.h
Externals/crystaledit/editlib/statbar.h
Externals/crystaledit/editlib/string_util.h
Externals/crystaledit/editlib/wispelld.h
Src/7zCommon.h
Src/Common/BCMenu.h
Src/Common/MyCom.h
Src/DDXHelper.h
Src/DirFilterDlg.h
Src/MergeCmdLineInfo.h
Src/OptionsInit.h
Src/diffutils/config.h
Src/diffutils/lib/cmpbuf.h
Src/diffutils/src/diff.h
Src/diffutils/src/system.h
Src/dllpstub.h
Src/ssauto.h

index 1fe864c..1e54edc 100644 (file)
@@ -7,8 +7,7 @@
 // ID line follows -- this is updated by SVN
 // $Id$
 
-#ifndef _EDITOR_LINEINFO_H_
-#define _EDITOR_LINEINFO_H_
+#pragma once
 
 //  Line allocation granularity
 #define     CHAR_ALIGN                  16
@@ -62,5 +61,3 @@ private:
     int m_nLength; /**< Line length (without EOL bytes). */
     int m_nEolChars; /**< # of EOL bytes. */
   };
-
-#endif // _EDITOR_LINEINFO_H_
index c2d0261..8cbd723 100644 (file)
@@ -6,8 +6,7 @@
 // ID line follows -- this is updated by SVN
 // $Id$
 
-#ifndef _SYNTAX_COLORS_H_
-#define _SYNTAX_COLORS_H_
+#pragma once
 
 #include <Windows.h>
 #include <vector>
@@ -88,5 +87,3 @@ private:
        std::vector<COLORREF> m_colors; /**< Syntax highlight colors */
        std::vector<bool> m_bolds; /**< Bold font enable/disable */
 };
-
-#endif // _SYNTAX_COLORS_H_
index c063c7e..414e6d7 100644 (file)
@@ -7,8 +7,7 @@
 // ID line follows -- this is updated by SVN\r
 // $Id$\r
 \r
-#ifndef _EDITOR_UNDO_RECORD_H_\r
-#define _EDITOR_UNDO_RECORD_H_\r
+#pragma once\r
 \r
 class UndoRecord\r
 {\r
@@ -93,4 +92,3 @@ private:
   }\r
 };\r
 \r
-#endif // _EDITOR_UNDO_RECORD_H_\r
index c251e0a..4ad70da 100644 (file)
@@ -6,8 +6,7 @@
 // RCS ID line follows -- this is updated by CVS
 // $Id: ViewableWhitespace.h 3410 2006-07-31 17:14:15Z kimmov $
 
-#ifndef ViewableWhitespace_included_h
-#define ViewableWhitespace_included_h
+#pragma once
 
 /**
  * @brief Structure containing characters for viewable whitespace chars.
@@ -27,4 +26,3 @@ struct ViewableWhitespaceChars
 
 const ViewableWhitespaceChars * GetViewableWhitespaceChars(int codepage);
 
-#endif // ViewableWhitespace_included_h
index f9618b3..8ccfd6f 100644 (file)
 //        and maybe "ugly" code ...
 ////////////////////////////////////////////////////////////////////////////
 
-#if !defined(AFX_CCRYSTALEDITVIEW_H__8F3F8B63_6F66_11D2_8C34_0080ADB86836__INCLUDED_)
-#define AFX_CCRYSTALEDITVIEW_H__8F3F8B63_6F66_11D2_8C34_0080ADB86836__INCLUDED_
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 
 #include "ccrystaltextview.h"
 #include "wispelld.h"
@@ -231,4 +226,3 @@ protected :
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
 
-#endif // !defined(AFX_CCRYSTALEDITVIEW_H__8F3F8B63_6F66_11D2_8C34_0080ADB86836__INCLUDED_)
index ac7e02a..924fd60 100644 (file)
 // ID line follows -- this is updated by SVN
 // $Id: ccrystaltextbuffer.h 6879 2009-06-29 10:00:33Z kimmov $
 
-
-#if !defined(AFX_CCRYSTALTEXTBUFFER_H__AD7F2F49_6CB3_11D2_8C32_0080ADB86836__INCLUDED_)
-#define AFX_CCRYSTALTEXTBUFFER_H__AD7F2F49_6CB3_11D2_8C32_0080ADB86836__INCLUDED_
-
 #pragma once
 
 #include <vector>
@@ -325,5 +321,3 @@ public :
 
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_CCRYSTALTEXTBUFFER_H__AD7F2F49_6CB3_11D2_8C32_0080ADB86836__INCLUDED_)
index 1c122df..8b97093 100644 (file)
 // ID line follows -- this is updated by SVN
 // $Id: ccrystaltextview.h 6888 2009-06-30 10:36:28Z kimmov $
 
-#if !defined(AFX_CCRYSTALTEXTVIEW_H__AD7F2F41_6CB3_11D2_8C32_0080ADB86836__INCLUDED_)
-#define AFX_CCRYSTALTEXTVIEW_H__AD7F2F41_6CB3_11D2_8C32_0080ADB86836__INCLUDED_
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 
 #include <vector>
 #include "cregexp.h"
@@ -1007,5 +1002,3 @@ protected :
 
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_CCRYSTALTEXTVIEW_H__AD7F2F41_6CB3_11D2_8C32_0080ADB86836__INCLUDED_)
index f7435dd..dcd9ec4 100644 (file)
 //        and maybe "ugly" code ...
 ////////////////////////////////////////////////////////////////////////////
 
-#if !defined(AFX_CEDITREPLACEDLG_H__759417E3_7B18_11D2_8C50_0080ADB86836__INCLUDED_)
-#define AFX_CEDITREPLACEDLG_H__759417E3_7B18_11D2_8C50_0080ADB86836__INCLUDED_
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 // ceditreplacedlg.h : header file
 //
 
@@ -113,4 +108,3 @@ protected :
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
 
-#endif // !defined(AFX_CEDITREPLACEDLG_H__759417E3_7B18_11D2_8C50_0080ADB86836__INCLUDED_)
index fa7ff94..34ee238 100644 (file)
 // RCS ID line follows -- this is updated by CVS
 // $Id$
 
-#if !defined(AFX_CFINDTEXTDLG_H__F59009E3_7B01_11D2_8C4F_0080ADB86836__INCLUDED_)
-#define AFX_CFINDTEXTDLG_H__F59009E3_7B01_11D2_8C4F_0080ADB86836__INCLUDED_
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 
 #include "resource.h"
 #include "memcombo.h"
@@ -122,5 +117,3 @@ protected :
 
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_CFINDTEXTDLG_H__F59009E3_7B01_11D2_8C4F_0080ADB86836__INCLUDED_)
index fd1dd73..62ec78f 100644 (file)
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __CHCONDLG_H__INCLUDED__
-#define __CHCONDLG_H__INCLUDED__
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 
 #include "editcmd.h"
 
@@ -68,4 +63,3 @@ protected :
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
 
-#endif // __CHCONDLG_H__INCLUDED__
index df8fa12..e885d31 100644 (file)
@@ -14,8 +14,7 @@
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __REGEX_H
-#define __REGEX_H
+#pragma once
 
 /*
  * Operator:
@@ -105,4 +104,3 @@ int EDITPADC_CLASS RxExec(RxNode *Regexp, LPCTSTR Data, int Len, LPCTSTR Start,
 int EDITPADC_CLASS RxReplace(LPCTSTR rep, LPCTSTR Src, int len, RxMatchRes match, LPTSTR *Dest, int *Dlen);
 void EDITPADC_CLASS RxFree(RxNode *Node);
 
-#endif
index 4cb4891..1e335cc 100644 (file)
@@ -2,12 +2,7 @@
 //\r
 //////////////////////////////////////////////////////////////////////\r
 \r
-#if !defined(AFX_CRYSTALEDITVIEWEX_H__5353A214_1059_11D3_929E_CEFE4CA77E5E__INCLUDED_)\r
-#define AFX_CRYSTALEDITVIEWEX_H__5353A214_1059_11D3_929E_CEFE4CA77E5E__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
 #pragma once\r
-#endif // _MSC_VER > 1000\r
 \r
 #include "ccrystaleditview.h"\r
 #include "crystalparser.h"\r
@@ -90,5 +85,3 @@ protected:
        */\r
        CCrystalParser *m_pSyntaxParser;\r
 };\r
-\r
-#endif // !defined(AFX_CRYSTALEDITVIEWEX_H__5353A214_1059_11D3_929E_CEFE4CA77E5E__INCLUDED_)\r
index 9427dc8..7d1635f 100644 (file)
 //     - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#if !defined(AFX_CRYSTALPARSER_H__17435DA0_1F72_11D3_929E_FD90DABF8479__INCLUDED_)
-#define AFX_CRYSTALPARSER_H__17435DA0_1F72_11D3_929E_FD90DABF8479__INCLUDED_
-
-#if _MSC_VER > 1000
 #pragma once
-#endif // _MSC_VER > 1000
 
 #include "crystaltextblock.h"
 
@@ -105,5 +100,3 @@ protected:
        CCrystalTextView *m_pTextView;
 
 };
-
-#endif // !defined(AFX_CRYSTALPARSER_H__17435DA0_1F72_11D3_929E_FD90DABF8479__INCLUDED_)
index 5a8da52..d995c20 100644 (file)
 //     - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#if !defined(AFX_CRYSTALTEXTBLOCK_H__37ECF0C1_145F_11D3_929E_444553540000__INCLUDED_)
-#define AFX_CRYSTALTEXTBLOCK_H__37ECF0C1_145F_11D3_929E_444553540000__INCLUDED_
-
-#if _MSC_VER > 1000
 #pragma once
-#endif // _MSC_VER > 1000
 
 /**
 Objects of this class are passed to CCrystalParser::ParseLine() to get the
@@ -67,5 +62,3 @@ protected:
        /** Index */
        int &m_rnActualItems;
 };
-
-#endif // !defined(AFX_CRYSTALTEXTBLOCK_H__37ECF0C1_145F_11D3_929E_444553540000__INCLUDED_)
index ec94afb..6b1f676 100644 (file)
@@ -1,7 +1,6 @@
 /* Ferda Prantl - character coding conversion engine  */
 
-#ifndef __CS2CS_H__INCLUDED__
-#define __CS2CS_H__INCLUDED__
+#pragma once
 
 #define FD_CODE_ASCII      0
 #define FD_CODE_CP1250     1
@@ -56,4 +55,3 @@ TCHAR EDITPADC_CLASS iconvert_char (TCHAR ch, int source_coding, int destination
 int EDITPADC_CLASS iconvert (LPTSTR string, int source_coding, int destination_coding, bool alphabet_only);
 int EDITPADC_CLASS iconvert_new (LPCTSTR source, LPTSTR *destination, int source_coding, int destination_coding, bool alphabet_only);
 
-#endif // __CS2CS_H__INCLUDED__
index b775097..7a557f8 100644 (file)
@@ -23,8 +23,7 @@
 //        and maybe "ugly" code ...
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __EDITREG_H__INCLUDED__
-#define __EDITREG_H__INCLUDED__
+#pragma once
 
 //  Registry keys & values
 #define REG_EDITPAD         _T ("Software\\Thingamahoochie\\WinMerge\\Editor")
@@ -35,4 +34,3 @@
 #define MAX_REMEMBERED 100
 #define REMEMBERED_TO_REMOVE 10
 
-#endif // __EDITREG_H__INCLUDED__
index d1b1aa4..0c1094f 100644 (file)
@@ -1,10 +1,5 @@
-#ifndef __EDTLIB_H
-#define __EDTLIB_H
 
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
-
 
 
 #include "crystalparser.h"
@@ -13,4 +8,3 @@
 #include "ccrystaleditview.h"
 #include "crystaleditviewex.h"
 
-#endif // __EDTLIB_H
index bee9e34..75d0809 100644 (file)
@@ -14,8 +14,7 @@
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __FILESUP_H__INCLUDED__
-#define __FILESUP_H__INCLUDED__
+#pragma once
 
 /////////////////////////////////////////////////////////////////////////////
 
@@ -35,5 +34,3 @@ CString EDITPADC_CLASS GetPathName (const CString & sString);
 #endif // _DEBUG
 
 /////////////////////////////////////////////////////////////////////////////
-
-#endif // __FILESUP_H__INCLUDED__
index 310426d..109d0de 100644 (file)
@@ -14,8 +14,7 @@
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __FPATTERN_H__INCLUDED__
-#define __FPATTERN_H__INCLUDED__
+#pragma once
 
 /******************************************************************************
  * fpattern.h
@@ -145,4 +144,3 @@ int EDITPADC_CLASS fpattern_isvalid (LPCTSTR pat);
 int EDITPADC_CLASS fpattern_match (LPCTSTR pat, LPCTSTR fname);
 int EDITPADC_CLASS fpattern_matchn (LPCTSTR pat, LPCTSTR fname);
 
-#endif // __FPATTERN_H__INCLUDED__
index 303a995..b302e1c 100644 (file)
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __GOTODLG_H__INCLUDED__
-#define __GOTODLG_H__INCLUDED__
 
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 
 #include "editcmd.h"
 
@@ -67,4 +63,3 @@ protected :
 //{{AFX_INSERT_LOCATION}}
 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
 
-#endif // __GOTODLG_H__INCLUDED__
index 7c5f18b..0ae5e25 100644 (file)
@@ -14,8 +14,7 @@
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __MEMCOMBO_H__INCLUDED__
-#define __MEMCOMBO_H__INCLUDED__
+#pragma once
 
 ////////////////////////////////////////////////////////////////////////////////
 // Includes
@@ -75,5 +74,3 @@ public :
 #endif // _DEBUG
 
 /////////////////////////////////////////////////////////////////////////////
-
-#endif // __MEMCOMBO_H__INCLUDED__
index e023dcd..00a1b9d 100644 (file)
@@ -14,8 +14,7 @@
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __REGISTRY_H__INCLUDED__
-#define __REGISTRY_H__INCLUDED__
+#pragma once
 
 /*////////////////////////////////////////////////////////////////////////////*/
 
@@ -407,5 +406,3 @@ struct EDITPADC_CLASS CReg
 bool EDITPADC_CLASS RegDeleteSubKeys (HKEY hKey);
 
 /*////////////////////////////////////////////////////////////////////////////*/
-
-#endif /* __REGISTRY_H__INCLUDED__ */
index a85b214..6bed138 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __SPLASH_H__INCLUDED__
-#define __SPLASH_H__INCLUDED__
+
+#pragma once
 
 /////////////////////////////////////////////////////////////////////////////
 // CBigIcon window
@@ -51,5 +51,3 @@ protected:
 };
 
 /////////////////////////////////////////////////////////////////////////////
-
-#endif // __SPLASH_H__INCLUDED__
index 05365d4..f4eb731 100644 (file)
@@ -14,8 +14,7 @@
 //  - LEAVE THIS HEADER INTACT
 ////////////////////////////////////////////////////////////////////////////
 
-#ifndef __STATBAR_H__INCLUDED__
-#define __STATBAR_H__INCLUDED__
+#pragma once
 
 class EDITPADC_CLASS CEditStatusBar : public CStatusBar
   {
@@ -49,5 +48,3 @@ public :
 
     DECLARE_MESSAGE_MAP ()
   };
-
-#endif // __STATBAR_H__INCLUDED__
index 7b262e1..54b6eb7 100644 (file)
@@ -6,8 +6,7 @@
 // ID line follows -- this is updated by SVN
 // $Id$
 
-#ifndef _STRING_UTIL_H_
-#define _STRING_UTIL_H_
+#pragma once
 
 #define ISXKEYWORD(keywordlist, key, keylen) IsXKeyword(key, keylen, keywordlist, sizeof(keywordlist)/sizeof(keywordlist[0]), _tcsncmp)
 #define ISXKEYWORDI(keywordlist, key, keylen) IsXKeyword(key, keylen, keywordlist, sizeof(keywordlist)/sizeof(keywordlist[0]), _tcsnicmp)
@@ -18,5 +17,3 @@ int xisalpha(wint_t c);
 int xisalnum(wint_t c);
 int xisspace(wint_t c);
 bool IsXKeyword(LPCTSTR pszKey, size_t nKeyLen, LPCTSTR pszKeywordList[], size_t nKeywordListCount, int (*compare)(LPCTSTR, LPCTSTR, size_t));
-
-#endif // _STRING_UTIL_H_
index 968e362..8bd69a7 100644 (file)
@@ -7,8 +7,7 @@
  *  defined with this macro as being exported.
  */
 
-#ifndef __WISPELLD_H__
-#define __WISPELLD_H__
+#pragma once
 
 /*#ifdef WISPELL_EXPORTS
 #define WISPELL_API __declspec (dllexport)
@@ -60,5 +59,3 @@ typedef struct SpellData_t
 /* WISPELL_API int SpellInit (SpellData*); */   /* initializes the control structure */
 /* WISPELL_API int SpellCheck (SpellData*); */  /* performs spell checking (the dialog may appear) */
 /* WISPELL_API int SpellConfig (SpellData*); */ /* performs spell checking configuration (the dialog appears) */
-
-#endif /* __WISPELLD_H__ */
index 50876b8..72588c7 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 #define DllBuild_Merge7z 10 // Minimum DllBuild of Merge7z plugin required
 
 // We include dllpstub.h for Merge7z.h
index a8342ed..086249e 100644 (file)
@@ -23,8 +23,7 @@
 // like to play with new stuff.
 //*************************************************************************
 
-#ifndef BCMenu_H
-#define BCMenu_H
+#pragma once
 
 #include <afxtempl.h>
 
@@ -339,6 +338,3 @@ protected:
        static HTHEME m_hTheme;
 }; 
 
-#endif
-
-//*************************************************************************
index a8ae7ec..56a096d 100644 (file)
@@ -3,8 +3,7 @@
 // Igor Pavlov under the terms of the GNU Lesser General Public License (LGPL).\r
 // It has been modified by WinMerge Team.\r
 \r
-#ifndef __MYCOM_H\r
-#define __MYCOM_H\r
+#pragma once\r
 \r
 #ifndef RINOK\r
 #define RINOK(x) { HRESULT __result_ = (x); if (__result_ != S_OK) return __result_; }\r
@@ -358,4 +357,3 @@ public:
        ~CMyDispParams() { Unnamed.Drop(); }\r
 };\r
 \r
-#endif\r
index 6cca299..89c6ff8 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef _DDXHELPER_H_\r
-#define _DDXHELPER_H_\r
+#pragma once\r
 \r
 #include "UnicodeString.h"\r
 \r
@@ -51,4 +50,3 @@ inline void DDX_CBStringExact(CDataExchange* pDX, int nIDC, String& value)
        DDX_CBStringExact(pDX, nIDC, PopString(value));\r
 }\r
 \r
-#endif\r
index 071f9ef..2478c46 100644 (file)
@@ -6,10 +6,7 @@
  */
 #pragma once
 
-#ifndef DirReportTypes_h_included
 #include "DirReportTypes.h"
-#endif
-
 #include "SuperComboBox.h"
 
 /** 
index d69c287..39763df 100644 (file)
@@ -27,8 +27,7 @@
 // ID line follows -- this is updated by SVN
 // $Id: MergeCmdLineInfo.h 6940 2009-08-01 17:29:01Z kimmov $
 
-#ifndef _MERGE_CMD_LINE_INFO_INCLUDED_
-#define _MERGE_CMD_LINE_INFO_INCLUDED_
+#pragma once
 
 #include "UnicodeString.h"
 #include "PathContext.h"
@@ -98,4 +97,3 @@ private:
        MergeCmdLineInfo& operator=(const MergeCmdLineInfo& rhs);
 };
 
-#endif // _MERGE_CMD_LINE_INFO_INCLUDED_
index 33a3e4b..a9c29f9 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once\r
+\r
 class COptionsMgr;\r
 \r
 namespace Options {\r
index e821a12..8741342 100644 (file)
@@ -1,6 +1,8 @@
 /*
  *     config.h - pre-built version for MSDOS and NT.
  */
+#pragma once
 #define HAVE_VPRINTF 1
 #define RETSIGTYPE void
 #define STDC_HEADERS 1
index a7621b7..98f7a25 100644 (file)
@@ -16,6 +16,9 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with GNU DIFF; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index 405e2fd..d1783a1 100644 (file)
@@ -17,8 +17,7 @@ You should have received a copy of the GNU General Public License
 along with GNU DIFF; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#ifndef __DIFF_H__
-#define __DIFF_H__
+#pragma once
 
 #include "system.h"
 #include <ctype.h>
@@ -386,4 +385,3 @@ int mywstat(const wchar_t *filename, struct _stat64 *buf);
 }
 #endif
 
-#endif
index f60f880..94d0f8b 100644 (file)
@@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
 along with GNU DIFF; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
+#pragma once
+
 /* We must define `volatile' and `const' first (the latter inside config.h),
    so that they're used consistently in all system includes.  */
 #if !defined(__STDC__) && !defined(_MSC_VER)
index 75b28af..9dfb2cc 100644 (file)
@@ -1,4 +1,4 @@
-#ifndef DECORATE_U
+#pragma once
 
 /**
  * @brief define the suffixes to decorate TCHAR width specific module/function names
@@ -40,5 +40,3 @@ struct DLLPSTUB
        static void Throw(LPCSTR name, HMODULE, DWORD dwError, BOOL bFreeLibrary);
        HMODULE Load();
 };
-
-#endif
index e4f3047..8456aad 100644 (file)
@@ -1,8 +1,7 @@
 /* This header file machine-generated by mktyplib.exe */\r
 /* Interface to type library: SourceSafeTypeLib */\r
 \r
-#ifndef _SourceSafeTypeLib_H_\r
-#define _SourceSafeTypeLib_H_\r
+#pragma once\r
 \r
 DEFINE_GUID(LIBID_SourceSafeTypeLib,0x783CD4E0L,0x9D54,0x11CF,0xB8,0xEE,0x00,0x60,0x8C,0xC9,0xA7,0x1F);\r
 #ifndef BEGIN_INTERFACE\r
@@ -597,4 +596,3 @@ DEFINE_GUID(CLSID_VSSApp,0x2A0DE0E1L,0x2E9F,0x11D0,0x92,0x36,0x00,0xAA,0x00,0xA1
 class VSSApp;\r
 #endif\r
 \r
-#endif\r