mirror of
				https://github.com/notepad-plus-plus/notepad-plus-plus.git
				synced 2025-10-31 19:44:06 +01:00 
			
		
		
		
	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 | ||||
| #define ANSIDOCUMENTITERATOR_H_12481491281240 | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| namespace Scintilla { | ||||
| #endif | ||||
| 
 | ||||
| class AnsiDocumentIterator : public std::iterator<std::bidirectional_iterator_tag, char> | ||||
| { | ||||
| public: | ||||
| @ -91,4 +95,8 @@ private: | ||||
| 	Document* m_doc; | ||||
| }; | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| } | ||||
| #endif | ||||
| 
 | ||||
| #endif | ||||
| @ -1,5 +1,8 @@ | ||||
| #include "UTF8DocumentIterator.h" | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| using namespace Scintilla; | ||||
| #endif | ||||
| 
 | ||||
| void UTF8DocumentIterator::readCharacter() | ||||
| { | ||||
|  | ||||
| @ -15,6 +15,12 @@ | ||||
| #include "CaseFolder.h" | ||||
| #include <Document.h> | ||||
| 
 | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| namespace Scintilla { | ||||
| #endif | ||||
| 
 | ||||
| 
 | ||||
| class UTF8DocumentIterator : public std::iterator<std::bidirectional_iterator_tag, wchar_t> | ||||
| { | ||||
| public: | ||||
| @ -153,4 +159,8 @@ private: | ||||
| 		static const unsigned char m_firstByteMask[]; | ||||
| }; | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| } | ||||
| #endif | ||||
| 
 | ||||
| #endif // UTF8DOCUMENTITERATOR_H_3452843291318441149
 | ||||
|  | ||||
| @ -27,6 +27,10 @@ | ||||
| #include "Scintilla.h" | ||||
| #include "SciLexer.h" | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| using namespace Scintilla; | ||||
| #endif | ||||
| 
 | ||||
| #define KEYWORD_BOXHEADER 1 | ||||
| #define KEYWORD_FOLDCONTRACTED 2 | ||||
| 
 | ||||
|  | ||||
| @ -39,6 +39,10 @@ | ||||
| #include "CharacterSet.h" | ||||
| #include "LexerModule.h" | ||||
| 
 | ||||
| #ifdef SCI_NAMESPACE | ||||
| using namespace Scintilla; | ||||
| #endif | ||||
| 
 | ||||
| // The following definitions are a copy of the ones in FindReplaceDlg.h
 | ||||
| enum { searchHeaderLevel = SC_FOLDLEVELBASE + 1, fileHeaderLevel, resultLevel }; | ||||
| 
 | ||||
|  | ||||
| @ -57,7 +57,7 @@ | ||||
|   <ItemDefinitionGroup> | ||||
|     <ClCompile> | ||||
|       <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> | ||||
|       <BrowseInformation>true</BrowseInformation> | ||||
|       <MultiProcessorCompilation>true</MultiProcessorCompilation> | ||||
|  | ||||
| @ -51,6 +51,9 @@ LDFLAGS=$(LDDEBUG) $(LDFLAGS) | ||||
| CXXFLAGS=$(CXXFLAGS) $(CXXNDEBUG) | ||||
| !ENDIF | ||||
| 
 | ||||
| #unconditionally use scintilla namespace
 | ||||
| CXXFLAGS=$(CXXFLAGS) -DSCI_NAMESPACE | ||||
| 
 | ||||
| INCLUDEDIRS=-I../include -I../src -I../lexlib | ||||
| CXXFLAGS=$(CXXFLAGS) $(INCLUDEDIRS) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user