Commit Graph

2095 Commits (d0c528e9995bb4c8a9d8b3412cf997daec60394c)

Author SHA1 Message Date
NN 2ef5e5eca3 Support compilation in VS2015.
Changes:
_CRT_NON_CONFORMING_WCSTOK - to have old wcstok behaviour
dbghelp.h doesn't disable warnings, do it manually.
Better casting from pointer to integral.
Disable warnings in tinyXml headers.
Disable warnings 4456;4457;4459 to not touch the source.
More details about the warnings: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
2015-05-19 14:01:27 +03:00
Don Ho a76ff09ac0 [RELEASE] Notepad++ 6.7.8.1 release (WinGup bug-fix: remove the dependency of msvcr120.dll) 2015-05-19 03:40:56 +02:00
NN eca9471ba8 This file is not intended to be committed 2015-05-18 16:18:19 +03:00
Andreas Jönsson 7b9c342bda Fix outdated comment. 2015-05-18 09:32:24 +02:00
Robert Dailey 5c69e59187 Enable multiprocessor build
Project now utilizes the /MP compiler switch to perform
parallelized builds. The number of parallel builds performed
is determined on a per-machine basis based on available
logical CPUs.

Long term this will provide the best performance output to
code maintainability ratio compared to just enabling
precompiled headers.

Using my personal machine (8 cores), I got the following
timings (Debug configuration):

* Normal build           : 89 seconds
* Multi-processor build  : 28 seconds
* PCH enabled            : 27 seconds

Note that the multi-processor build timings can be further
reduced with proper dependency management and removal of
existing precompiled header file (precompiledHeaders.h).

Specific Changes:

* Precompiled header support disabled (not compatible with
  /MP flag).
* precompiledHeader.cpp deleted.
* Solution File added.
* Minimal Rebuild (/Gm) disabled (ignored when /MP is on).

precompiledHeaders.h still exists because it contains a ton of
inclusions required by lots of files. A second and less trivial
cleanup will involve removing the precompiledHeaders.h file and
individually correcting and satisfying dependencies in each source
file in the code base.
2015-05-17 22:34:34 -05:00
Andreas Jönsson 91da641adc Use initializer list in ISorter. 2015-05-17 21:50:06 +02:00
Andreas Jönsson be230c1a29 Add a version of std::stod which takes locale.
We need a string-to-double conversion function which acts the same on
all computers, irrespective of which locale is running. We need to
guarantee that the function expects '.' as the decimal point, and not
','. The choice of en-US is more or less arbitrary.
2015-05-17 21:23:08 +02:00
Andreas Jönsson 0e42d3348a Fix handling of negative numbers + empty lines. 2015-05-17 20:05:25 +02:00
Andreas Jönsson ad2cc85c0e Simplify NativeLangSpeaker::messageBox. 2015-05-17 19:29:43 +02:00
Andreas Jönsson d0bafb7fba Add more options for sorting.
User can now choose between lexicographic, integer and decimal sorting.
For decimal sorting there are two further options: decimal point ('.')
or decimal comma (',').

When doing integer/decimal sort, the parsing is not as strict as
before. E.g during integer sorting the program will interpret "123abc"
as 123.

Performance of integer sorting has been improved by 30%.

The implementation of sorting is delegated to classes which implement
the new "ISorter" interface. Unfortunately due to template issues most
of the code had to go in the header file.
2015-05-17 19:18:43 +02:00
Andreas Jönsson 4d8e731d3e Add const to NativeLangSpeaker::messageBox(). 2015-05-17 19:09:21 +02:00
Don Ho 5c272a8818 [RELEASE] Notepad++ 6.7.8 release. 2015-05-16 02:36:09 +02:00
Don Ho 50410cc744 [BUG_FIXED] Fix compiling problem in debug mode
This problem is due to the sort lines enhancement.
2015-05-15 19:41:59 +02:00
Don Ho 6b853cf3d3 [UPDATE] Update WinGup to version 3.0 and several localization files. 2015-05-15 16:10:42 +02:00
Don Ho c033d58cb8 [UPDATE] Remove outdated user manual from release package. 2015-05-15 15:19:20 +02:00
Andreas Jönsson 98cafadc3f Remove const. 2015-05-15 11:49:42 +02:00
Andreas Jönsson 014c06c89c Remove const. 2015-05-15 11:46:39 +02:00
Don HO 72c8f0b4ae Merge pull request #44 from andreas-jonsson/more_optimize_sort
[BUG_FIXED] Fix issues related to sort optimization.
2015-05-15 03:32:15 +02:00
Don HO b6d5c2b45a Merge pull request #35 from cmeriaux/goToNextIndicator
[BUG_FIXED] Fix "Jump to next indicator" command broken with only one character.
2015-05-15 03:00:00 +02:00
Don HO 3a301ee6ad Merge pull request #48 from laugel/master
[UPDATE] Added the "config" extension for XML files.
2015-05-13 20:07:49 +02:00
Don HO c3c0cc4a24 Merge pull request #47 from prclx323800/translation
[UPDATE] Translate "Restore Recent Closed File".
2015-05-12 10:53:27 +02:00
Don HO 4ab13f02cb Merge pull request #52 from oneill/fix-auto-detect-settings
[BUG_FIXED] Fix file status auto-detection settings.
2015-05-12 10:40:56 +02:00
oneill@users.noreply.github.com cf0f8df7a8 Retain field values when disabling status auto-detection 2015-05-12 01:28:00 +02:00
oneill@users.noreply.github.com d98232b76e Fix the file status auto-detection setting not being set correctly 2015-05-12 01:24:16 +02:00
Andreas Jönsson 83de4a9da2 Use long long in numeric sort (ie 64 bit numbers). 2015-05-11 09:26:31 +02:00
Jean-Yves LAUGEL 22f2e101a6 Added the "config" extension for XML files. 2015-05-10 16:59:57 +02:00
Lin Xiao ba0e08f06e Conform to translation file format 2015-05-10 20:22:28 +08:00
Lin Xiao 2968fb9a29 Translate "Restore Recent Closed File" 2015-05-10 20:01:29 +08:00
Andreas Jönsson f4132c1634 Add "repeat" option to column editor.
This allows the inserted text to be repeated x times. As an example,
if we have selected 6 columns and let initial number = 10,
increase by = 5 and repeat = 2, then the column editor will insert the
following:

10
10
15
15
20
20
2015-05-10 13:06:25 +02:00
Andreas Jönsson ee225f5cad Handle empty lines properly in numeric sort. 2015-05-10 11:00:58 +02:00
Andreas Jönsson 936d9c56fc When sorting, reserve enough space for work + output. 2015-05-10 10:30:17 +02:00
Andreas Jönsson 60505765cc Remove ScintillaEditView::getLine, no longer used. 2015-05-10 10:29:21 +02:00
Andreas Jönsson dd846658e6 Use new kind of loop. 2015-05-10 10:27:36 +02:00
Andreas Jönsson 501ce1d689 Make reference signs consistent. 2015-05-10 10:25:56 +02:00
Andreas Jönsson 83c16755ab Don't cache int->string conversion, it doesn't speed up anything. 2015-05-09 21:23:40 +02:00
Andreas Jönsson 4b3fbdd570 Don't throw pointers (MFC habit). 2015-05-09 13:25:36 +02:00
Andreas Jönsson 6f004d86a4 Rename sortAllLines -> sortEntireDocument. 2015-05-09 13:21:35 +02:00
Andreas Jönsson e258bcb3a7 Speed up numeric sorting by 10x.
Convert strings to int, sort, then convert back to strings.
2015-05-09 13:20:37 +02:00
Andreas Jönsson bcbe48b13f Make stoi_CountEmptyLinesAsMinimum more restrictive.
It now only accepts digits and possibly a single minus character as the first character.
Ordinary std::stoi has too much special magic, e.g. it converts "1 a" to "1".
2015-05-09 12:49:47 +02:00
Andreas Jönsson 0eca4db949 Improve numeric sorting. No need to read lines from Scintilla, we already
have them in a vector.
2015-05-09 11:25:07 +02:00
Andreas Jönsson eee7c4f16e Sort numerically (not lexicographically) if all lines are integers. 2015-05-09 11:02:58 +02:00
Andreas Jönsson 6e84be21f4 Fix newline bug when not sorting all lines. 2015-05-09 10:22:50 +02:00
Andreas Jönsson 351b9b6bff Rename quickSortLines -> sortLines. 2015-05-09 10:05:45 +02:00
Andreas Jönsson 01c1667b09 Use TCHAR instead of _TCHAR. 2015-05-09 08:34:56 +02:00
Andreas Jönsson c926e18f42 Use more const. 2015-05-09 08:34:44 +02:00
Don HO 00c2e09d98 Merge pull request #40 from andreas-jonsson/optimize_sort
[ENHANCEMENT] Improve largely the performance of sort lines feature
2015-05-09 01:54:37 +02:00
Andreas Jönsson 4f7752e4a3 Add more const. 2015-05-09 00:17:18 +02:00
Andreas Jönsson 1f4a1fb2e7 Optimize sort.
Remove custom, recursive implementation of quicksort which becomes too
slow to use after a couple of hundred lines.
2015-05-08 23:27:21 +02:00
Don Ho 4e065b2d3f [UPDATE] Conform to GitHub project standard format. 2015-05-08 16:00:42 +02:00
Don HO b02adce942 Merge branch 'master' of https://github.com/donho/notepad-plus-plus 2015-05-08 12:53:51 +02:00