diff options
author | 2018-02-19 10:23:04 -0500 | |
---|---|---|
committer | 2018-02-19 10:23:04 -0500 | |
commit | 968530a9c69a6d2c061c7a0d37f0442795a669e8 (patch) | |
tree | 1dd77962e36d2f4ec54a7cb838b92e402675b6cc | |
parent | 0a4b24bf54063fabaabcb24e67f471f90f51b2c4 (diff) | |
download | textadept-968530a9c69a6d2c061c7a0d37f0442795a669e8.tar.gz textadept-968530a9c69a6d2c061c7a0d37f0442795a669e8.zip |
Fixed backports to compile on build server.
-rw-r--r-- | src/scintilla_backports/6310_7e28cdba6d61.patch | 2 | ||||
-rw-r--r-- | src/scintilla_backports/6436_a366ce1a811e.patch | 110 | ||||
-rw-r--r-- | src/scintilla_backports/revs | 1 |
3 files changed, 1 insertions, 112 deletions
diff --git a/src/scintilla_backports/6310_7e28cdba6d61.patch b/src/scintilla_backports/6310_7e28cdba6d61.patch index c9de09e8..42b0eccb 100644 --- a/src/scintilla_backports/6310_7e28cdba6d61.patch +++ b/src/scintilla_backports/6310_7e28cdba6d61.patch @@ -290,7 +290,7 @@ diff -r f2f32d58bcd8 -r 7e28cdba6d61 gtk/PlatGTK.cxx cssProvider(NULL), #endif - doubleClickAction(NULL), doubleClickActionData(NULL) { -+ delegate(nullptr) { ++ delegate(NULL) { } ~ListBoxX() override { if (pixhash) { diff --git a/src/scintilla_backports/6436_a366ce1a811e.patch b/src/scintilla_backports/6436_a366ce1a811e.patch deleted file mode 100644 index f2a22132..00000000 --- a/src/scintilla_backports/6436_a366ce1a811e.patch +++ /dev/null @@ -1,110 +0,0 @@ -# HG changeset patch -# User Neil <nyamatongwe@gmail.com> -# Date 1517091000 -39600 -# Node ID a366ce1a811e322b24f08a20825947113d39d698 -# Parent 5dd1b26df75f0ffa20624a61d1b77d24406ba048 -Use std::end when filling arrays as reduces chance of mistake. - -diff -r 5dd1b26df75f -r a366ce1a811e lexlib/WordList.cxx ---- a/lexlib/WordList.cxx Sun Jan 28 08:57:56 2018 +1100 -+++ b/lexlib/WordList.cxx Sun Jan 28 09:10:00 2018 +1100 -@@ -10,6 +10,7 @@ - #include <cstring> - - #include <algorithm> -+#include <iterator> - - #include "StringCopy.h" - #include "WordList.h" -@@ -128,7 +129,7 @@ - #else - SortWordList(words, len); - #endif -- std::fill(starts, starts + ELEMENTS(starts), -1); -+ std::fill(starts, std::end(starts), -1); - for (int l = len - 1; l >= 0; l--) { - unsigned char indexChar = words[l][0]; - starts[indexChar] = l; -diff -r 5dd1b26df75f -r a366ce1a811e scripts/HeaderOrder.txt ---- a/scripts/HeaderOrder.txt Sun Jan 28 08:57:56 2018 +1100 -+++ b/scripts/HeaderOrder.txt Sun Jan 28 09:10:00 2018 +1100 -@@ -39,6 +39,7 @@ - #include <set> - #include <forward_list> - #include <algorithm> -+#include <iterator> - #include <functional> - #include <memory> - #include <regex> -diff -r 5dd1b26df75f -r a366ce1a811e src/PositionCache.cxx ---- a/src/PositionCache.cxx Sun Jan 28 08:57:56 2018 +1100 -+++ b/src/PositionCache.cxx Sun Jan 28 09:10:00 2018 +1100 -@@ -14,5 +14,6 @@ - #include <vector> - #include <map> - #include <algorithm> -+#include <iterator> - - #include "Platform.h" -@@ -378,7 +379,7 @@ - } - - SpecialRepresentations::SpecialRepresentations() { -- std::fill(startByteHasReprs, startByteHasReprs+0x100, static_cast<short>(0)); -+ std::fill(startByteHasReprs, std::end(startByteHasReprs), static_cast<short>(0)); - } - - void SpecialRepresentations::SetRepresentation(const char *charBytes, const char *value) { -@@ -419,7 +420,7 @@ - - void SpecialRepresentations::Clear() { - mapReprs.clear(); -- std::fill(startByteHasReprs, startByteHasReprs+0x100, static_cast<short>(0)); -+ std::fill(startByteHasReprs, std::end(startByteHasReprs), static_cast<short>(0)); - } - - void BreakFinder::Insert(int val) { -diff -r 5dd1b26df75f -r a366ce1a811e src/RESearch.cxx ---- a/src/RESearch.cxx Sun Jan 28 08:57:56 2018 +1100 -+++ b/src/RESearch.cxx Sun Jan 28 09:10:00 2018 +1100 -@@ -205,6 +205,7 @@ - #include <stdexcept> - #include <string> - #include <algorithm> -+#include <iterator> - - #include "Position.h" - #include "CharClassify.h" -@@ -254,9 +255,9 @@ - charClass = charClassTable; - sta = NOP; /* status of lastpat */ - bol = 0; -- std::fill(bittab, bittab + BITBLK, static_cast<unsigned char>(0)); -- std::fill(tagstk, tagstk + MAXTAG, 0); -- std::fill(nfa, nfa + MAXNFA, '\0'); -+ std::fill(bittab, std::end(bittab), static_cast<unsigned char>(0)); -+ std::fill(tagstk, std::end(tagstk), 0); -+ std::fill(nfa, std::end(nfa), '\0'); - Clear(); - } - -diff -r 5dd1b26df75f -r a366ce1a811e src/XPM.cxx ---- a/src/XPM.cxx Sun Jan 28 08:57:56 2018 +1100 -+++ b/src/XPM.cxx Sun Jan 28 09:10:00 2018 +1100 -@@ -11,5 +11,7 @@ - #include <stdexcept> - #include <vector> - #include <map> -+#include <algorithm> -+#include <iterator> - - #include "Platform.h" -@@ -87,7 +89,7 @@ - if (!linesForm) - return; - -- std::fill(colourCodeTable, colourCodeTable+256, 0); -+ std::fill(colourCodeTable, std::end(colourCodeTable), 0); - const char *line0 = linesForm[0]; - width = atoi(line0); - line0 = NextField(line0); diff --git a/src/scintilla_backports/revs b/src/scintilla_backports/revs index e5f85299..51649e3e 100644 --- a/src/scintilla_backports/revs +++ b/src/scintilla_backports/revs @@ -67,7 +67,6 @@ b44bb3627bbd Moved *StyleBits* APIs into deprecated category. fd2f856b8d58 Use explicit typedefs instead of deprecated derivation from std::iterator. 73343682cbda Start of bidirectional code - implement SCI_SETBIDIRECTIONAL. ed27432729c3 Use std::abs in preference to abs as std::abs is generic and abs casts to int -a366ce1a811e Use std::end when filling arrays as reduces chance of mistake. 92c8f0f1b3e6 Add documentOption argument to SCI_CREATELOADER. 3e3bfe29a819 Extend SplitVector to allow more than 2 billion elements on 64-bit systems. 1bd57324aa36 Templatize Partitioning so it can hold different types. |