| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2025-11-03 | Support ptrdiff_t if it has the same storage size as int, but does *not* ↵ | Robin Haberkorn | 1 | -1/+1 | |
| alias it * This is the case e.g. on NetBSD 10 for ARMv6 where Sci::Position == ptrdiff_t == long int, but obviously for other platforms as well, where it causes "invalid conversion" and "undefined symbol" errors. Scintilla was testing for aliasability by comparing the storage size with sizeof() or PTRDIFF_MAX == INT_MAX at the preprocessor level. This was fundamentally flawed. * In LineVector<T>::InsertLines() we are now using the C++17 construct std::is_convertible_v<From*,To*> instead. * We need RunStyles<ptrdiff_t> as well on the affected platforms. This is impossible to test for in a constant expression that can be used with the preprocessor. Also, it's not possible to conditionally instantiate templates. We tried to instantiate RunStyles for all scalar types that could be behind ptrdiff_t, but it was causing warnings on MSVC. Implicitly instantiating RunStyles would be possible, but is not desired. Therefore as a workaround, you can now define the PTRDIFF_DOESNT_ALIAS_INT macro when invoking the build system, to force instantiating RunStyles<ptrdiff_t>. When writing portable applications, you may have to use a compile-time check for checking aliasability of ptrdiff_t and int in order to define PTRDIFF_DOESNT_ALIAS_INT. | |||||
| 2024-12-02 | Improve performance of simple case where FillRange just inserts two entries and | Neil | 1 | -1/+18 | |
| does not need to split, merge, or delete runs. This avoids multiple binary searches and is a significant improvement for situations such as marking large numbers of search matches in a huge document. | |||||
| 2024-12-02 | Remove explicit initialization which is identical to default initialization. | Neil | 1 | -5/+2 | |
| Remove constructor argument which is same as default. Shorten code and avoid else. | |||||
| 2022-07-29 | Apply rule-of-zero to delete standard methods where possible as handled by | Neil | 1 | -4/+0 | |
| contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations. | |||||
| 2022-07-29 | Flatten Partitioning and RunStyles to avoid a level of indirection by containing | Neil | 1 | -55/+55 | |
| SplitVector and Partitioning directly instead of using std::unique_ptr. This will enable more value semantics and reduces potential memory allocation failure scenarios. | |||||
| 2022-07-28 | Use extra consts to avoid 32 to 64-bit widening warnings in headers. | Neil | 1 | -2/+4 | |
| This change wouldn't be worthwhile in implementation files but warnings in headers obscure more important diagnostics. | |||||
| 2022-02-16 | Bug [#2315] Fix undefined macros. Fixes key map for GTK on macOS and Haiku ↵ | Neil | 1 | -1/+1 | |
| build. | |||||
| 2021-05-24 | Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.h | Neil | 1 | -6/+5 | |
| and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal. | |||||
| 2021-03-18 | std::optional is a basic vocabulary type that may be used widely so include | Neil | 1 | -0/+1 | |
| almost everywhere. | |||||
| 2021-03-18 | Move assert and debug trace functions into their own header Debugging.h. | Neil | 1 | -2/+1 | |
| PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules. | |||||
| 2021-03-17 | Extract geometry and colour definitions from Platform.h into src/Geometry.h. | Neil | 1 | -0/+1 | |
| 2019-01-06 | Bug [#2068]. Fix some clang-tidy warnings. | Zufu Liu | 1 | -2/+2 | |
| 2018-07-31 | Define PLAT_HAIKU and use to avoid a reported compilation problem on 32-bit | Neil | 1 | -1/+1 | |
| Haiku where ptrdiff_t and int are the same size but different types. | |||||
| 2018-05-14 | Include <string_view> to allow future use in Platform interface and Unicode. | Neil | 1 | -0/+1 | |
| 2018-04-21 | Use noexcept in basic data structures where reasonable. | Neil | 1 | -10/+10 | |
| Declare the standard member functions in more classes | |||||
| 2018-04-20 | Stop "duplicate explicit instantiation" error on g++ 32-bit where int and | Neil | 1 | -0/+4 | |
| ptrdiff_t are the same type. | |||||
| 2018-04-17 | Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes. | Neil | 1 | -0/+2 | |
| This option is provisional and experimental. | |||||
| 2018-03-27 | Return a FillResult struct from RunStyles::FillRange instead of modifying | Neil | 1 | -8/+9 | |
| arguments as that is clumsy when converting types. | |||||
| 2018-03-09 | Use Position/Line/int more accurately in preparation for large documents. | Neil | 1 | -0/+1 | |
| 2018-03-01 | Use make_unique in preference to new. | Neil | 1 | -4/+4 | |
| From Effective Modern C++ Item 21. | |||||
| 2018-02-01 | Templatize RunStyles so it can be over ranges of different types and contain | Neil | 1 | -48/+72 | |
| different style types. Currently only instantiated over <int, int>. | |||||
| 2018-02-01 | Templatize Partitioning so it can hold different types. | Neil | 1 | -2/+2 | |
| 2017-09-11 | The Scintilla namespace is always active for internal symbols and for the lexer | Neil | 1 | -2/+0 | |
| interfaces ILexer4 and IDocument. | |||||
| 2017-05-21 | Make SplitVector work with move-only types like unique_ptr. | Neil | 1 | -0/+1 | |
| Provide InsertEmpty and both const and non-const reference returning operator[]. Add and fix comments. | |||||
| 2017-05-10 | Use unique_ptr fpr Partitioning, RunStyles, SparseVector, PositionCache and | Neil | 1 | -12/+4 | |
| Document. | |||||
| 2017-04-22 | Include <memory> for std::unique_ptr. | Neil | 1 | -0/+1 | |
| 2017-04-06 | Added const where possible. | Neil | 1 | -5/+5 | |
| 2017-04-01 | Standardize on C++ headers, remove headers that aren't needed and add <cstddef> | Neil | 1 | -4/+5 | |
| where it may be needed in the future. | |||||
| 2015-07-27 | Add Position.h as a place-holder and to allow #include "Position.h" in source. | Neil | 1 | -0/+1 | |
| 2013-07-21 | Normalising order of language headers. | Neil | 1 | -2/+2 | |
| 2013-07-21 | Make compile with libc++ on OS X. | Neil | 1 | -0/+1 | |
| 2013-05-24 | Made methods const where they can be and are logically const as well. | nyamatongwe | 1 | -4/+4 | |
| 2013-04-15 | Existing code fills 0 length ranges and ranges after document end so simply | nyamatongwe | 1 | -2/+2 | |
| return instead of throwing exceptions. | |||||
| 2013-04-15 | RunStyles can be corrupted by filling 0 length ranges and ranges that go ↵ | nyamatongwe | 1 | -0/+36 | |
| past end so throw std::invalid_argument exceptions for these conditions. Provide a Check method to validate the consistency of a RunStyles and throw std::runtime_error if corruption is detected. | |||||
| 2012-09-12 | Fix bug where removing all characters from indicator at end of document did | nyamatongwe | 1 | -0/+1 | |
| not remove that run causing iteration over the indicator to hang. | |||||
| 2011-06-07 | Add Find method on RunStyles. | nyamatongwe | 1 | -0/+15 | |
| 2011-06-07 | Fix bug with extra partition created when range filled. | nyamatongwe | 1 | -0/+2 | |
| 2011-06-07 | Add accessor to RunStyles for number of runs so Decoration can use public API. | nyamatongwe | 1 | -1/+5 | |
| Make RunStyles internal methods private. RunFromPosition is const so marker as const. | |||||
| 2011-06-07 | Make SCN_NEEDSHOWN notification work when word wrap is enabled. | nyamatongwe | 1 | -0/+11 | |
| This fixes the last remaining issue from bug #3291579. From Marko Njezic | |||||
| 2010-12-30 | Avoid redraws when setting an indicator over positions where it is already set. | nyamatongwe | 1 | -1/+3 | |
| From Tino Weinkauf. | |||||
| 2008-01-19 | Made som emethods const. | nyamatongwe | 1 | -2/+2 | |
| 2007-07-25 | Changed ContractionState data structure to be more efficient by not only | nyamatongwe | 1 | -0/+5 | |
| modifying data near an insertion or deletion when there is good locality of modification. | |||||
| 2007-06-12 | Fixed bug where setting the same range twice to the same value resulted | nyamatongwe | 1 | -7/+9 | |
| in rest of document being set. | |||||
| 2007-06-09 | Fixed bug when setting a range where the start of the range was already a | nyamatongwe | 1 | -3/+5 | |
| run start. | |||||
| 2007-06-01 | integrate OS X support for scintilla. a big patch with a little commit ↵ | scaraveo | 1 | -0/+4 | |
| message :) - now uses namespaces (optionally for non-os x) to avoid conflicts with OS X libraries - several fixes in the OS X layer since the branch was commited in 2005 - used in Komodo since 2005, so pretty stable | |||||
| 2007-04-19 | Optimized indicator changing with separate SC_MOD_CHANGEINDICATOR | nyamatongwe | 1 | -18/+27 | |
| notification flag. | |||||
| 2007-04-07 | More decoration code, with modifications reported from document to views | nyamatongwe | 1 | -3/+10 | |
| although this isn't optimal. Some checking for null changes. Messages documented. Methods for changing indicators in Accessor so can be used by lexers. | |||||
| 2007-04-05 | New files that implement decorations. | nyamatongwe | 1 | -0/+187 | |
