// 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
int m_nLength; /**< Line length (without EOL bytes). */
int m_nEolChars; /**< # of EOL bytes. */
};
-
-#endif // _EDITOR_LINEINFO_H_
// ID line follows -- this is updated by SVN
// $Id$
-#ifndef _SYNTAX_COLORS_H_
-#define _SYNTAX_COLORS_H_
+#pragma once
#include <Windows.h>
#include <vector>
std::vector<COLORREF> m_colors; /**< Syntax highlight colors */
std::vector<bool> m_bolds; /**< Bold font enable/disable */
};
-
-#endif // _SYNTAX_COLORS_H_
// 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
}\r
};\r
\r
-#endif // _EDITOR_UNDO_RECORD_H_\r
// 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.
const ViewableWhitespaceChars * GetViewableWhitespaceChars(int codepage);
-#endif // ViewableWhitespace_included_h
// 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"
//{{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_)
// 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>
//{{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_)
// 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"
//{{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_)
// 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
//
//{{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_)
// 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"
//{{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_)
// - 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"
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-#endif // __CHCONDLG_H__INCLUDED__
// - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////
-#ifndef __REGEX_H
-#define __REGEX_H
+#pragma once
/*
* Operator:
int EDITPADC_CLASS RxReplace(LPCTSTR rep, LPCTSTR Src, int len, RxMatchRes match, LPTSTR *Dest, int *Dlen);
void EDITPADC_CLASS RxFree(RxNode *Node);
-#endif
//\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
*/\r
CCrystalParser *m_pSyntaxParser;\r
};\r
-\r
-#endif // !defined(AFX_CRYSTALEDITVIEWEX_H__5353A214_1059_11D3_929E_CEFE4CA77E5E__INCLUDED_)\r
// - 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"
CCrystalTextView *m_pTextView;
};
-
-#endif // !defined(AFX_CRYSTALPARSER_H__17435DA0_1F72_11D3_929E_FD90DABF8479__INCLUDED_)
// - 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
/** Index */
int &m_rnActualItems;
};
-
-#endif // !defined(AFX_CRYSTALTEXTBLOCK_H__37ECF0C1_145F_11D3_929E_444553540000__INCLUDED_)
/* 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
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__
// 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")
#define MAX_REMEMBERED 100
#define REMEMBERED_TO_REMOVE 10
-#endif // __EDITREG_H__INCLUDED__
-#ifndef __EDTLIB_H
-#define __EDTLIB_H
-#if _MSC_VER >= 1000
#pragma once
-#endif // _MSC_VER >= 1000
-
#include "crystalparser.h"
#include "ccrystaleditview.h"
#include "crystaleditviewex.h"
-#endif // __EDTLIB_H
// - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////
-#ifndef __FILESUP_H__INCLUDED__
-#define __FILESUP_H__INCLUDED__
+#pragma once
/////////////////////////////////////////////////////////////////////////////
#endif // _DEBUG
/////////////////////////////////////////////////////////////////////////////
-
-#endif // __FILESUP_H__INCLUDED__
// - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////
-#ifndef __FPATTERN_H__INCLUDED__
-#define __FPATTERN_H__INCLUDED__
+#pragma once
/******************************************************************************
* fpattern.h
int EDITPADC_CLASS fpattern_match (LPCTSTR pat, LPCTSTR fname);
int EDITPADC_CLASS fpattern_matchn (LPCTSTR pat, LPCTSTR fname);
-#endif // __FPATTERN_H__INCLUDED__
// - 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"
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-#endif // __GOTODLG_H__INCLUDED__
// - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////
-#ifndef __MEMCOMBO_H__INCLUDED__
-#define __MEMCOMBO_H__INCLUDED__
+#pragma once
////////////////////////////////////////////////////////////////////////////////
// Includes
#endif // _DEBUG
/////////////////////////////////////////////////////////////////////////////
-
-#endif // __MEMCOMBO_H__INCLUDED__
// - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////
-#ifndef __REGISTRY_H__INCLUDED__
-#define __REGISTRY_H__INCLUDED__
+#pragma once
/*////////////////////////////////////////////////////////////////////////////*/
bool EDITPADC_CLASS RegDeleteSubKeys (HKEY hKey);
/*////////////////////////////////////////////////////////////////////////////*/
-
-#endif /* __REGISTRY_H__INCLUDED__ */
-#ifndef __SPLASH_H__INCLUDED__
-#define __SPLASH_H__INCLUDED__
+
+#pragma once
/////////////////////////////////////////////////////////////////////////////
// CBigIcon window
};
/////////////////////////////////////////////////////////////////////////////
-
-#endif // __SPLASH_H__INCLUDED__
// - LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////
-#ifndef __STATBAR_H__INCLUDED__
-#define __STATBAR_H__INCLUDED__
+#pragma once
class EDITPADC_CLASS CEditStatusBar : public CStatusBar
{
DECLARE_MESSAGE_MAP ()
};
-
-#endif // __STATBAR_H__INCLUDED__
// 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)
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_
* defined with this macro as being exported.
*/
-#ifndef __WISPELLD_H__
-#define __WISPELLD_H__
+#pragma once
/*#ifdef WISPELL_EXPORTS
#define WISPELL_API __declspec (dllexport)
/* 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__ */
+#pragma once
+
#define DllBuild_Merge7z 10 // Minimum DllBuild of Merge7z plugin required
// We include dllpstub.h for Merge7z.h
// like to play with new stuff.
//*************************************************************************
-#ifndef BCMenu_H
-#define BCMenu_H
+#pragma once
#include <afxtempl.h>
static HTHEME m_hTheme;
};
-#endif
-
-//*************************************************************************
// 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
~CMyDispParams() { Unnamed.Drop(); }\r
};\r
\r
-#endif\r
-#ifndef _DDXHELPER_H_\r
-#define _DDXHELPER_H_\r
+#pragma once\r
\r
#include "UnicodeString.h"\r
\r
DDX_CBStringExact(pDX, nIDC, PopString(value));\r
}\r
\r
-#endif\r
*/
#pragma once
-#ifndef DirReportTypes_h_included
#include "DirReportTypes.h"
-#endif
-
#include "SuperComboBox.h"
/**
// 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"
MergeCmdLineInfo& operator=(const MergeCmdLineInfo& rhs);
};
-#endif // _MERGE_CMD_LINE_INFO_INCLUDED_
+#pragma once\r
+\r
class COptionsMgr;\r
\r
namespace Options {\r
/*
* config.h - pre-built version for MSDOS and NT.
*/
+#pragma once
+
#define HAVE_VPRINTF 1
#define RETSIGTYPE void
#define STDC_HEADERS 1
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
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>
}
#endif
-#endif
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)
-#ifndef DECORATE_U
+#pragma once
/**
* @brief define the suffixes to decorate TCHAR width specific module/function names
static void Throw(LPCSTR name, HMODULE, DWORD dwError, BOOL bFreeLibrary);
HMODULE Load();
};
-
-#endif
/* 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
class VSSApp;\r
#endif\r
\r
-#endif\r