Commit graph

41 commits

Author SHA1 Message Date
Mirek Fidler
4947d30123 CtrlCore: Improved OutOfMemoryPanic 2026-01-29 11:06:56 +01:00
Mirek Fidler
34ff691308 sizeof(wchar) is changed to 4 (32 bits) to support non BMP unicode characters
This might bring some incompatibilities in the code that expects wchar to be 16 bit, which
  escpecially involves dealing with Win32 (and to lesser extend MacOS) APIs, so if your application
  is doing that, please check all instances of WCHAR (UniChar on MacOS) or even wchar
  especially type casts.

  To support host APIs, char16 is introduced (but there is no 16-bit String varian).

  Use ToSystemCharsetW, FromSystemCharsetW to convert texts to Win32 API.

- Support of drawing non-BMP characters in GUI
- Vastly improved character font replacement code (when drawing characters missing with requested font, replacement font is used)
- Last instances of Win32 ANSI calls (those ending with A) are removed
- UTF handling routines are refactored and their's naming is unified
- RTF is now being able to handle non-BMP characters (RTF is used as clipboard format for RichText)

Other minor changes:

- fixed TryRealloc issue
- improved MemoryCheck
- Removed MemoryAlloc48/MemoryFree48
- In theide Background parsing should less often cause delays in the main thread
2021-12-02 12:03:19 +01:00
cxl
b00a33ce5a Core: Fixed issue with allocator 4KB reserve
git-svn-id: svn://ultimatepp.org/upp/trunk@13633 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-10-08 09:03:02 +00:00
cxl
43142d3255 Core: Heap
git-svn-id: svn://ultimatepp.org/upp/trunk@13460 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-30 12:31:23 +00:00
cxl
96f83e17d0 Core: HEAPLOG improved
git-svn-id: svn://ultimatepp.org/upp/trunk@13458 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-29 18:07:52 +00:00
cxl
2b2a40454d Core: HEAPLOG
git-svn-id: svn://ultimatepp.org/upp/trunk@13454 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-28 06:58:00 +00:00
cxl
b54f93fd87 Core: HEAPLOG flag
git-svn-id: svn://ultimatepp.org/upp/trunk@13452 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-28 06:45:29 +00:00
cxl
3092c4348f Core: Heap fix
git-svn-id: svn://ultimatepp.org/upp/trunk@13451 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-27 16:35:44 +00:00
cxl
acdee1885b Core: finetuning allocator
git-svn-id: svn://ultimatepp.org/upp/trunk@13449 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-27 13:17:50 +00:00
cxl
d451e400fd Core: Heap improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@13443 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-26 14:16:47 +00:00
cxl
541e45cab1 Core: Heap options
git-svn-id: svn://ultimatepp.org/upp/trunk@13439 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-25 17:11:11 +00:00
cxl
b7baa4fd01 Core: Heap improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@13437 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-25 15:47:29 +00:00
cxl
68f8a11b0f Core: Heap improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@13434 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-25 14:00:18 +00:00
cxl
f2c64f8067 Core: Allocator improvement
git-svn-id: svn://ultimatepp.org/upp/trunk@13411 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-17 22:01:07 +00:00
cxl
e093ff22b1 Core: Fixed allocator issue on thread exit
git-svn-id: svn://ultimatepp.org/upp/trunk@13410 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-17 21:28:11 +00:00
cxl
6796767686 Core: CoWork improvements, migw TLS workaround FastMingwTLS
git-svn-id: svn://ultimatepp.org/upp/trunk@13386 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-12 21:49:33 +00:00
cxl
e53932b2f5 Core: Improved approximate best fit in allocator
git-svn-id: svn://ultimatepp.org/upp/trunk@13377 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-10 15:26:34 +00:00
cxl
edbc91f8a1 Core: Heap issues
git-svn-id: svn://ultimatepp.org/upp/trunk@13369 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-08 16:37:55 +00:00
cxl
0276338ea6 Core2019 merged to to trunk
git-svn-id: svn://ultimatepp.org/upp/trunk@13359 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2019-06-07 07:06:32 +00:00
cxl
409fb36254 Painter: Create optimizations
git-svn-id: svn://ultimatepp.org/upp/trunk@12542 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-11-15 11:38:37 +00:00
cxl
31f5442c13 Core: Fixed issue with CoWork, removed HEAP256 option
git-svn-id: svn://ultimatepp.org/upp/trunk@11656 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-01-03 08:06:45 +00:00
cxl
8d1f9faa92 .mtp3
git-svn-id: svn://ultimatepp.org/upp/trunk@11636 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-12-29 07:50:11 +00:00
cxl
b78b5ade79 Core: LoadFromFile, StoreToFile Event variant
git-svn-id: svn://ultimatepp.org/upp/trunk@11385 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-10-16 12:07:32 +00:00
cxl
80a0b077c8 Heap fix
git-svn-id: svn://ultimatepp.org/upp/trunk@9789 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-03 21:41:39 +00:00
cxl
699d23c600 temporary mingw thread_local in heap fix
git-svn-id: svn://ultimatepp.org/upp/trunk@9760 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-01 22:01:10 +00:00
cxl
5edae0e110 .reorganizing
git-svn-id: svn://ultimatepp.org/upp/trunk@9759 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-01 20:21:16 +00:00
cxl
536e0571b3 .docs
git-svn-id: svn://ultimatepp.org/upp/trunk@9365 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-01-03 08:06:30 +00:00
cxl
585b6a30d6 Core: Allocator fix
git-svn-id: svn://ultimatepp.org/upp/trunk@9354 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-12-27 16:29:59 +00:00
cxl
c4f52fe9d2 Core: Allocator now is optimizited w.r.t. remote frees (buffers for single flush)
git-svn-id: svn://ultimatepp.org/upp/trunk@9349 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-12-26 18:25:59 +00:00
cxl
71f6ca9fbc .comments
git-svn-id: svn://ultimatepp.org/upp/trunk@9324 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-12-23 15:27:12 +00:00
cxl
1277e92041 Core: TryRealloc improved
git-svn-id: svn://ultimatepp.org/upp/trunk@8099 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-01-26 19:24:15 +00:00
cxl
edc75a9c4b Core: GetMemoryBlockSize, TryRealloc
git-svn-id: svn://ultimatepp.org/upp/trunk@8097 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-01-26 19:04:51 +00:00
cxl
ec702d7e17 Core: Fixed heap allocator issue in Win32
git-svn-id: svn://ultimatepp.org/upp/trunk@6665 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-17 15:03:08 +00:00
cxl
3f5748aafc Core: Heap fixes for Win32
git-svn-id: svn://ultimatepp.org/upp/trunk@6663 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-17 13:13:15 +00:00
cxl
bed93110d7 Core: Heap enhancements, NanoStrings, Fixed*Map, fix in Socket - non-ASCII char < 0 issue
git-svn-id: svn://ultimatepp.org/upp/trunk@6661 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-17 13:05:36 +00:00
cxl
6b9e2fb9f1 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@6633 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-03 13:04:05 +00:00
cxl
9e1b30113a uppsrc: Fixed more Win64 warnings
git-svn-id: svn://ultimatepp.org/upp/trunk@5822 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-02-18 09:57:51 +00:00
cxl
b2f2cc2a8c Core: Out of memory panic now displays info about requested block size and allocated memory (RM #240)
git-svn-id: svn://ultimatepp.org/upp/trunk@4471 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-01-26 19:25:05 +00:00
mdelfede
cb0ff92715 new uvs2 releases : uppsrc-2598 tutorial-38 examples-141 reference-113
git-svn-id: svn://ultimatepp.org/upp/trunk@300 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-16 23:06:34 +00:00
mdelfede
2a998c5051 new uvs2 releases : uppsrc-2593 tutorial-38 examples-141 reference-113
git-svn-id: svn://ultimatepp.org/upp/trunk@298 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-14 09:32:32 +00:00
mdelfede
263ff5f895 changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-07 22:31:27 +00:00