diff options
author | nyamatongwe <unknown> | 2013-05-01 20:59:08 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-01 20:59:08 +1000 |
commit | 09dc79183814921a99c8f811040c7d303cec8407 (patch) | |
tree | e4ea416bb8b4b300b2329e97dc2b0ca226731037 | |
parent | 6714f692bdfc86212fd026f087771b23df4c1738 (diff) | |
download | scintilla-mirror-09dc79183814921a99c8f811040c7d303cec8407.tar.gz |
Removed SVector.h and all references as it is no longer used.
-rw-r--r-- | cocoa/ScintillaCocoa.h | 1 | ||||
-rw-r--r-- | gtk/ScintillaGTK.cxx | 1 | ||||
-rw-r--r-- | gtk/deps.mak | 2 | ||||
-rw-r--r-- | qt/ScintillaEditBase/ScintillaEditBase.pro | 1 | ||||
-rw-r--r-- | qt/ScintillaEditBase/ScintillaQt.h | 1 | ||||
-rw-r--r-- | src/SVector.h | 123 | ||||
-rw-r--r-- | win32/scintilla.mak | 20 | ||||
-rw-r--r-- | win32/scintilla_vc6.mak | 20 |
8 files changed, 21 insertions, 148 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 7648b84d8..b609f2343 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -29,7 +29,6 @@ #include "PropSetSimple.h" #endif -#include "SVector.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index b0e2131c5..a62c16e96 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -30,7 +30,6 @@ #ifdef SCI_LEXER #include "SciLexer.h" #endif -#include "SVector.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" diff --git a/gtk/deps.mak b/gtk/deps.mak index 3803c25ee..eb39ad093 100644 --- a/gtk/deps.mak +++ b/gtk/deps.mak @@ -3,7 +3,7 @@ PlatGTK.o: PlatGTK.cxx \ ../src/UniConversion.h ../src/XPM.h Converter.h ScintillaGTK.o: ScintillaGTK.cxx \ ../include/ILexer.h ../include/Scintilla.h ../include/ScintillaWidget.h \ - ../include/SciLexer.h ../src/SVector.h ../src/SplitVector.h \ + ../include/SciLexer.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/ContractionState.h \ ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h ../src/Indicator.h \ ../src/XPM.h ../src/LineMarker.h ../src/Style.h ../src/AutoComplete.h \ diff --git a/qt/ScintillaEditBase/ScintillaEditBase.pro b/qt/ScintillaEditBase/ScintillaEditBase.pro index 4b17ebf90..9797574eb 100644 --- a/qt/ScintillaEditBase/ScintillaEditBase.pro +++ b/qt/ScintillaEditBase/ScintillaEditBase.pro @@ -57,7 +57,6 @@ HEADERS += \ ../../src/XPM.h \ ../../src/ViewStyle.h \ ../../src/UniConversion.h \ - ../../src/SVector.h \ ../../src/Style.h \ ../../src/SplitVector.h \ ../../src/Selection.h \ diff --git a/qt/ScintillaEditBase/ScintillaQt.h b/qt/ScintillaEditBase/ScintillaQt.h index 61e24290d..608367782 100644 --- a/qt/ScintillaEditBase/ScintillaQt.h +++ b/qt/ScintillaEditBase/ScintillaQt.h @@ -23,7 +23,6 @@ #include "Scintilla.h" #include "Platform.h" #include "ILexer.h" -#include "SVector.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" diff --git a/src/SVector.h b/src/SVector.h deleted file mode 100644 index 12a7d5d40..000000000 --- a/src/SVector.h +++ /dev/null @@ -1,123 +0,0 @@ -// Scintilla source code edit control -/** @file SVector.h - ** A simple expandable vector. - **/ -// Copyright 1998-2001 by Neil Hodgson <neilh@hare.net.au> -// The License.txt file describes the conditions under which this software may be distributed. - -#ifndef SVECTOR_H -#define SVECTOR_H - -#ifdef SCI_NAMESPACE -namespace Scintilla { -#endif - -/** - * A simple expandable integer vector. - * Storage not allocated for elements until an element is used. - * This makes it very lightweight unless used so is a good match for optional features. - */ -class SVector { - enum { allocSize = 4000 }; - - int *v; ///< The vector - unsigned int size; ///< Number of elements allocated - unsigned int len; ///< Number of elements used in vector - - /** Internally allocate more elements than the user wants - * to avoid thrashing the memory allocator. */ - void SizeTo(int newSize) { - if (newSize < allocSize) - newSize += allocSize; - else - newSize = (newSize * 3) / 2; - int *newv = new int[newSize]; - size = newSize; - unsigned int i=0; - for (; i<len; i++) { - newv[i] = v[i]; - } - for (; i<size; i++) { - newv[i] = 0; - } - delete []v; - v = newv; - } - -public: - SVector() { - v = 0; - len = 0; - size = 0; - } - ~SVector() { - Free(); - } - /// Constructor from another vector. - SVector(const SVector &other) { - v = 0; - len = 0; - size = 0; - if (other.Length() > 0) { - SizeTo(other.Length()); - for (int i=0; i<other.Length(); i++) - v[i] = other.v[i]; - len = other.Length(); - } - } - /// Copy constructor. - SVector &operator=(const SVector &other) { - if (this != &other) { - delete []v; - v = 0; - len = 0; - size = 0; - if (other.Length() > 0) { - SizeTo(other.Length()); - for (int i=0; i<other.Length(); i++) - v[i] = other.v[i]; - len = other.Length(); - } - } - return *this; - } - /** @brief Accessor. - * Allows to access values from the list, and grows it if accessing - * outside the current bounds. The returned value in this case is 0. */ - int &operator[](unsigned int i) { - if (i >= len) { - if (i >= size) { - SizeTo(i); - } - len = i+1; - } - return v[i]; - } - /// Reset vector. - void Free() { - delete []v; - v = 0; - size = 0; - len = 0; - } - /** @brief Grow vector size. - * Doesn't allow a vector to be shrinked. */ - void SetLength(unsigned int newLength) { - if (newLength > len) { - if (newLength >= size) { - SizeTo(newLength); - } - } - len = newLength; - } - /// Get the current length (number of used elements) of the vector. - int Length() const { - return len; - } -}; - -#ifdef SCI_NAMESPACE -} -#endif - -#endif diff --git a/win32/scintilla.mak b/win32/scintilla.mak index 30da30041..a943609b1 100644 --- a/win32/scintilla.mak +++ b/win32/scintilla.mak @@ -261,7 +261,7 @@ $(DIR_O)\Accessor.obj: ../lexlib/Accessor.cxx ../lexlib/Accessor.h $(DIR_O)\CallTip.obj: ../src/CallTip.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/CallTip.h $(DIR_O)\CellBuffer.obj: ../src/CellBuffer.cxx ../include/Platform.h \ - ../include/Scintilla.h ../src/SVector.h ../src/SplitVector.h \ + ../include/Scintilla.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/CellBuffer.h $(DIR_O)\CharacterSet.obj: ../lexlib/CharacterSet.cxx ../lexlib/CharacterSet.h $(DIR_O)\CharClassify.obj: ../src/CharClassify.cxx ../src/CharClassify.h @@ -271,12 +271,12 @@ $(DIR_O)\Decoration.obj: ../src/Decoration.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/Decoration.h $(DIR_O)\Document.obj: ../src/Document.cxx ../include/Platform.h \ - ../include/Scintilla.h ../src/SVector.h ../src/SplitVector.h \ + ../include/Scintilla.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/CellBuffer.h \ ../src/CharClassify.h ../src/Decoration.h ../src/Document.h \ ../src/RESearch.h ../src/PerLine.h $(DIR_O)\Editor.obj: ../src/Editor.cxx ../include/Platform.h ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/CellBuffer.h ../src/KeyMap.h \ ../src/RunStyles.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -479,12 +479,12 @@ $(DIR_O)\LexerSimple.obj: ../lexlib/LexerSimple.cxx ../lexlib/LexerSimple.h $(DIR_O)\LineMarker.obj: ../src/LineMarker.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/XPM.h ../src/LineMarker.h $(DIR_O)\PerLine.obj: ../src/PerLine.cxx ../include/Platform.h \ - ../include/Scintilla.h ../src/SVector.h ../src/SplitVector.h \ + ../include/Scintilla.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/PerLine.h $(DIR_O)\PlatWin.obj: PlatWin.cxx ../include/Platform.h \ ../src/UniConversion.h ../src/XPM.h $(DIR_O)\PositionCache.obj: ../src/PositionCache.cxx ../include/Platform.h ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/CellBuffer.h ../src/KeyMap.h \ ../src/RunStyles.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -496,7 +496,7 @@ $(DIR_O)\RunStyles.obj: ../src/RunStyles.cxx ../include/Platform.h \ ../src/RunStyles.h $(DIR_O)\ScintillaBase.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/CellBuffer.h \ ../src/CallTip.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ @@ -504,7 +504,7 @@ $(DIR_O)\ScintillaBase.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../src/Document.h ../src/Editor.h ../src/Selection.h ../src/ScintillaBase.h $(DIR_O)\ScintillaBaseL.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/CellBuffer.h \ ../src/CallTip.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ @@ -512,7 +512,7 @@ $(DIR_O)\ScintillaBaseL.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../src/Document.h ../src/Editor.h ../src/Selection.h ../src/ScintillaBase.h $(DIR_O)\ScintillaWin.obj: ScintillaWin.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/ContractionState.h \ - ../src/SVector.h ../src/SplitVector.h ../src/Partitioning.h \ + ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/AutoComplete.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -520,7 +520,7 @@ $(DIR_O)\ScintillaWin.obj: ScintillaWin.cxx ../include/Platform.h \ ../src/ScintillaBase.h ../src/Selection.h ../src/UniConversion.h $(DIR_O)\ScintillaWinS.obj: ScintillaWin.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/ContractionState.h \ - ../src/SVector.h ../src/SplitVector.h ../src/Partitioning.h \ + ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/AutoComplete.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -528,7 +528,7 @@ $(DIR_O)\ScintillaWinS.obj: ScintillaWin.cxx ../include/Platform.h \ ../src/ScintillaBase.h ../src/Selection.h ../src/UniConversion.h $(DIR_O)\ScintillaWinL.obj: ScintillaWin.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/ContractionState.h \ - ../src/SVector.h ../src/SplitVector.h ../src/Partitioning.h \ + ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/AutoComplete.h ../src/ViewStyle.h ../src/CharClassify.h \ diff --git a/win32/scintilla_vc6.mak b/win32/scintilla_vc6.mak index e46627996..c03de3da5 100644 --- a/win32/scintilla_vc6.mak +++ b/win32/scintilla_vc6.mak @@ -255,7 +255,7 @@ $(DIR_O)\Accessor.obj: ../lexlib/Accessor.cxx ../lexlib/Accessor.h $(DIR_O)\CallTip.obj: ../src/CallTip.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/CallTip.h $(DIR_O)\CellBuffer.obj: ../src/CellBuffer.cxx ../include/Platform.h \ - ../include/Scintilla.h ../src/SVector.h ../src/SplitVector.h \ + ../include/Scintilla.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/CellBuffer.h $(DIR_O)\CharacterSet.obj: ../lexlib/CharacterSet.cxx ../lexlib/CharacterSet.h $(DIR_O)\CharClassify.obj: ../src/CharClassify.cxx ../src/CharClassify.h @@ -265,12 +265,12 @@ $(DIR_O)\Decoration.obj: ../src/Decoration.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/Decoration.h $(DIR_O)\Document.obj: ../src/Document.cxx ../include/Platform.h \ - ../include/Scintilla.h ../src/SVector.h ../src/SplitVector.h \ + ../include/Scintilla.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/CellBuffer.h \ ../src/CharClassify.h ../src/Decoration.h ../src/Document.h \ ../src/RESearch.h ../src/PerLine.h $(DIR_O)\Editor.obj: ../src/Editor.cxx ../include/Platform.h ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/CellBuffer.h ../src/KeyMap.h \ ../src/RunStyles.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -473,12 +473,12 @@ $(DIR_O)\LexerSimple.obj: ../lexlib/LexerSimple.cxx ../lexlib/LexerSimple.h $(DIR_O)\LineMarker.obj: ../src/LineMarker.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/XPM.h ../src/LineMarker.h $(DIR_O)\PerLine.obj: ../src/PerLine.cxx ../include/Platform.h \ - ../include/Scintilla.h ../src/SVector.h ../src/SplitVector.h \ + ../include/Scintilla.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/PerLine.h $(DIR_O)\PlatWin.obj: PlatWin.cxx ../include/Platform.h \ ../src/UniConversion.h ../src/XPM.h $(DIR_O)\PositionCache.obj: ../src/Editor.cxx ../include/Platform.h ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/CellBuffer.h ../src/KeyMap.h \ ../src/RunStyles.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -490,7 +490,7 @@ $(DIR_O)\RunStyles.obj: ../src/RunStyles.cxx ../include/Platform.h \ ../src/RunStyles.h $(DIR_O)\ScintillaBase.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/CellBuffer.h \ ../src/CallTip.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ @@ -498,7 +498,7 @@ $(DIR_O)\ScintillaBase.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../src/Document.h ../src/Editor.h ../src/Selection.h ../src/ScintillaBase.h $(DIR_O)\ScintillaBaseL.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../include/Scintilla.h \ - ../src/ContractionState.h ../src/SVector.h ../src/SplitVector.h \ + ../src/ContractionState.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/CellBuffer.h \ ../src/CallTip.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ @@ -506,7 +506,7 @@ $(DIR_O)\ScintillaBaseL.obj: ../src/ScintillaBase.cxx ../include/Platform.h \ ../src/Document.h ../src/Editor.h ../src/Selection.h ../src/ScintillaBase.h $(DIR_O)\ScintillaWin.obj: ScintillaWin.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/ContractionState.h \ - ../src/SVector.h ../src/SplitVector.h ../src/Partitioning.h \ + ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/AutoComplete.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -514,7 +514,7 @@ $(DIR_O)\ScintillaWin.obj: ScintillaWin.cxx ../include/Platform.h \ ../src/ScintillaBase.h ../src/Selection.h ../src/UniConversion.h $(DIR_O)\ScintillaWinS.obj: ScintillaWin.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/ContractionState.h \ - ../src/SVector.h ../src/SplitVector.h ../src/Partitioning.h \ + ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/AutoComplete.h ../src/ViewStyle.h ../src/CharClassify.h \ @@ -522,7 +522,7 @@ $(DIR_O)\ScintillaWinS.obj: ScintillaWin.cxx ../include/Platform.h \ ../src/ScintillaBase.h ../src/Selection.h ../src/UniConversion.h $(DIR_O)\ScintillaWinL.obj: ScintillaWin.cxx ../include/Platform.h \ ../include/Scintilla.h ../src/ContractionState.h \ - ../src/SVector.h ../src/SplitVector.h ../src/Partitioning.h \ + ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/AutoComplete.h ../src/ViewStyle.h ../src/CharClassify.h \ |