Scintilla Namespace
- corrected missing scintilla namespaces - activated usage of scintilla namespace in nmakefile and vcxproj Closes #3033
This commit is contained in:
parent
568248b127
commit
eba913d887
@ -1,6 +1,10 @@
|
|||||||
#ifndef ANSIDOCUMENTITERATOR_H_12481491281240
|
#ifndef ANSIDOCUMENTITERATOR_H_12481491281240
|
||||||
#define ANSIDOCUMENTITERATOR_H_12481491281240
|
#define ANSIDOCUMENTITERATOR_H_12481491281240
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
namespace Scintilla {
|
||||||
|
#endif
|
||||||
|
|
||||||
class AnsiDocumentIterator : public std::iterator<std::bidirectional_iterator_tag, char>
|
class AnsiDocumentIterator : public std::iterator<std::bidirectional_iterator_tag, char>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -91,4 +95,8 @@ private:
|
|||||||
Document* m_doc;
|
Document* m_doc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -1,5 +1,8 @@
|
|||||||
#include "UTF8DocumentIterator.h"
|
#include "UTF8DocumentIterator.h"
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
using namespace Scintilla;
|
||||||
|
#endif
|
||||||
|
|
||||||
void UTF8DocumentIterator::readCharacter()
|
void UTF8DocumentIterator::readCharacter()
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,12 @@
|
|||||||
#include "CaseFolder.h"
|
#include "CaseFolder.h"
|
||||||
#include <Document.h>
|
#include <Document.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
namespace Scintilla {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
class UTF8DocumentIterator : public std::iterator<std::bidirectional_iterator_tag, wchar_t>
|
class UTF8DocumentIterator : public std::iterator<std::bidirectional_iterator_tag, wchar_t>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -153,4 +159,8 @@ private:
|
|||||||
static const unsigned char m_firstByteMask[];
|
static const unsigned char m_firstByteMask[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // UTF8DOCUMENTITERATOR_H_3452843291318441149
|
#endif // UTF8DOCUMENTITERATOR_H_3452843291318441149
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
#include "Scintilla.h"
|
#include "Scintilla.h"
|
||||||
#include "SciLexer.h"
|
#include "SciLexer.h"
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
using namespace Scintilla;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define KEYWORD_BOXHEADER 1
|
#define KEYWORD_BOXHEADER 1
|
||||||
#define KEYWORD_FOLDCONTRACTED 2
|
#define KEYWORD_FOLDCONTRACTED 2
|
||||||
|
|
||||||
|
@ -39,6 +39,10 @@
|
|||||||
#include "CharacterSet.h"
|
#include "CharacterSet.h"
|
||||||
#include "LexerModule.h"
|
#include "LexerModule.h"
|
||||||
|
|
||||||
|
#ifdef SCI_NAMESPACE
|
||||||
|
using namespace Scintilla;
|
||||||
|
#endif
|
||||||
|
|
||||||
// The following definitions are a copy of the ones in FindReplaceDlg.h
|
// The following definitions are a copy of the ones in FindReplaceDlg.h
|
||||||
enum { searchHeaderLevel = SC_FOLDLEVELBASE + 1, fileHeaderLevel, resultLevel };
|
enum { searchHeaderLevel = SC_FOLDLEVELBASE + 1, fileHeaderLevel, resultLevel };
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level4</WarningLevel>
|
<WarningLevel>Level4</WarningLevel>
|
||||||
<PreprocessorDefinitions>WIN32;SCI_LEXER;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;_CRT_SECURE_NO_DEPRECATE;_WINDOWS;_USRDLL;SCI_OWNREGEX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;SCI_LEXER;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;_CRT_SECURE_NO_DEPRECATE;_WINDOWS;_USRDLL;SCI_OWNREGEX;SCI_NAMESPACE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalIncludeDirectories>..\include;..\src;..\lexlib;</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\include;..\src;..\lexlib;</AdditionalIncludeDirectories>
|
||||||
<BrowseInformation>true</BrowseInformation>
|
<BrowseInformation>true</BrowseInformation>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
@ -51,6 +51,9 @@ LDFLAGS=$(LDDEBUG) $(LDFLAGS)
|
|||||||
CXXFLAGS=$(CXXFLAGS) $(CXXNDEBUG)
|
CXXFLAGS=$(CXXFLAGS) $(CXXNDEBUG)
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
#unconditionally use scintilla namespace
|
||||||
|
CXXFLAGS=$(CXXFLAGS) -DSCI_NAMESPACE
|
||||||
|
|
||||||
INCLUDEDIRS=-I../include -I../src -I../lexlib
|
INCLUDEDIRS=-I../include -I../src -I../lexlib
|
||||||
CXXFLAGS=$(CXXFLAGS) $(INCLUDEDIRS)
|
CXXFLAGS=$(CXXFLAGS) $(INCLUDEDIRS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user