svenbarth
0de9940d01
* fix for Mantis #38023 : the code to convert LF to CRLF when converting to UTF-8 is disabled anyway, so disable unnecessary, duplicate if-branches as well
...
git-svn-id: trunk@47284 -
(cherry picked from commit c2454d5386
)
2024-01-19 11:54:54 +01:00
svenbarth
d1c29e6cb9
* in the default exception handler add the captured exception to the exception object stack as well
...
+ added test (needs to work with any exception handling mechanism; currently tested with SetJmp/LongJmp, SEH 32-bit and SEH 64-bit based exception handling)
git-svn-id: trunk@49486 -
(cherry picked from commit 2b3edb2c53
)
2024-01-19 11:54:38 +01:00
Michaël Van Canneyt
94e73c7285
* Fix issue 39431
...
(cherry picked from commit 5df6671ff2
)
2024-01-13 13:11:19 +01:00
Pierre Muller
4776d59d03
* rtl/macos/dos.pp: Remove unused unixutil in _USES clause of rtl/macos/dos.pp source.
...
* rtl/macos/Makefile.fpc: Update dependency list ifor dos unit: remove unixutil and add missing macostp.
* rtl/macos/Makefile: Regenerate.
(cherry picked from commit 2c622e2fe6
)
2024-01-09 11:46:31 +01:00
Pierre Muller
a6764eccd9
* Remove unused unixutil in _USES clause of rtl/macos/dos.pp source.
...
* Remove unixutil from units list for macosclassic OS target.
* Remove obsolete local build rule for unixutil unit.
2024-01-09 11:29:58 +01:00
Pierre Muller
f19a7fa798
Add missing explicit rules to allow compilation of Windows OS
2024-01-08 18:27:36 +01:00
Pierre Muller
33e2ef0eb9
Fix dragonfly rtl Makefile.fpc for cross-compilation according to Alfred's request
2024-01-08 15:47:30 +01:00
Pierre Muller
ab0549fe61
Add dummy version for symbian
...
(cherry picked from commit 13368fbb8a
)
2024-01-05 21:56:32 +01:00
Pierre Muller
e11fbf2bdc
Add CPU_UNITS for arm and i386 symbian
...
(cherry picked from commit ba9e93cde6
)
2024-01-05 21:52:20 +01:00
ondrej
c0cb2b6051
* fix memory leak in RegisterLazyInitThreadingProc
...
git-svn-id: trunk@47311 -
(cherry picked from commit a65158bfe8
)
2023-12-26 23:09:28 +01:00
Pierre Muller
3b45e9c5bb
Change libc statx function to weakexternal
...
Test if statx is nil before call
(cherry picked from commit be1cc68a99
)
2023-12-23 15:05:51 +01:00
pierre
61059435dd
Fix compilation of linux unit with -dFPC_USE_LIBC option
...
git-svn-id: trunk@48504 -
(cherry picked from commit 64bd8336f1
)
2023-12-22 17:55:58 +01:00
florian
2e750c3f1c
+ add missing semicolon, resolves #36868
...
git-svn-id: trunk@44578 -
(cherry picked from commit e32027c8d3
)
2023-12-22 17:54:59 +01:00
marcoonthegit
4f31b7138c
* comment schedgetaffitity for now at the request of closes #40569
2023-12-22 17:52:29 +01:00
Pierre Muller
355d9d3724
Update rtl/wince/Makefile after cherry-pick of commit 355c63beb1
2023-12-22 16:12:37 +01:00
Pierre Muller
70ca3c816f
Add cpu and mmx to CPU_UNITS for i386-wince target
...
(cherry picked from commit 355c63beb1
)
2023-12-22 16:09:24 +01:00
Karoly Balogh
ac4575291a
aros: build the CPU unit for i386 and x86_64 aros
...
(cherry picked from commit 5b0669d036
)
2023-12-22 13:51:36 +01:00
Michaël Van Canneyt
bf85a00d58
* Fix wrong TimeStampToMSecs result on 32-bit. Fixes issue #40522
...
(cherry picked from commit ed000e6cd7
)
2023-12-22 12:01:34 +01:00
florian
b1f6be15e9
* disable new syscalls on android
...
git-svn-id: trunk@48495 -
(cherry picked from commit 3922926d17
)
2023-12-21 10:54:45 +01:00
Pierre Muller
7cb40dc7d0
Add missing S_ISUID and S_ISGID constants
...
(cherry picked from commit 9feeb18b15
)
2023-12-21 10:54:07 +01:00
Pierre Muller
289ae1c43f
Add missing S_ISUID and S_ISGID constants
...
(cherry picked from commit 0907628b73
)
2023-12-21 10:36:42 +01:00
Pierre Muller
123b29f832
Add missing S_ISUID and S_ISGID constants
...
(cherry picked from commit 7cca82185e
)
2023-12-21 10:11:02 +01:00
Pierre Muller
9f773b5219
This change might generate failure to compile
...
older code for BeOS, because of field name changes.
Rename stat structure fields according to information in
https://www.haiku-os.org/legacy-docs/bebook/TheStorageKit_DefinedTypes.html#stat
Add S_ISUID and S_ISGID constants with value zero
as these features do not seem to be supported by BeOS.
(cherry picked from commit aa7f1f9667
)
2023-12-20 19:11:46 +01:00
Michaël Van Canneyt
88ada4b170
* No symlink support on WinCE
...
(cherry picked from commit 0639ec476d
)
2023-12-20 19:11:20 +01:00
Michaël Van Canneyt
a2144dfb03
* Attempt to fix FileGetDateTimeInfo
...
(cherry picked from commit 4f029720be
)
2023-12-20 19:10:39 +01:00
florian
1156db235a
* building on darwin (and most likely other BSDs) fixed
...
(cherry picked from commit d4d4498fc0
)
2023-12-20 19:07:24 +01:00
Michaël Van Canneyt
8f233d5bb7
* Fix compilation
...
(cherry picked from commit fead1ce818
)
2023-12-17 20:25:05 +01:00
Rika Ichinose
52d7e9b49f
Add Exchange<T> that works like std::exchange in C++.
...
(cherry picked from commit 05b7ebd34e
)
2023-12-17 18:26:05 +01:00
Michaël Van Canneyt
587c1df60e
* Define INVALID_HANDLE_VALUE for Delphi compatibility
...
(cherry picked from commit ff8511f2f1
)
2023-12-17 18:25:47 +01:00
Michaël Van Canneyt
fc6b11720a
* Implement ListIndexError
...
(cherry picked from commit 8fb39925eb
)
2023-12-17 18:25:41 +01:00
Michaël Van Canneyt
28d9c6ce56
* Add crossproduct and normalize to TPointF
...
(cherry picked from commit 7bcc949308
)
2023-12-17 18:17:21 +01:00
Michaël Van Canneyt
737aad778f
* Missing functions
...
(cherry picked from commit 24d8478650
)
2023-12-17 18:17:10 +01:00
Michaël Van Canneyt
72a709bccc
* Forgot CenterAt
...
(cherry picked from commit bc00d5ae06
)
2023-12-17 18:17:05 +01:00
Michaël Van Canneyt
95a3332816
* Add some missing identifiers to TRectF. Fixes issue #40068
...
(cherry picked from commit e28add8b31
)
2023-12-17 18:16:58 +01:00
Michaël Van Canneyt
69de05fab2
* Fix epsilon, add TRectF.FitInto
...
(cherry picked from commit b48c67f49f
)
2023-12-17 18:16:23 +01:00
Michaël Van Canneyt
99f246f982
* Epsilon for Delphi compatibility
...
(cherry picked from commit a6d3587432
)
2023-12-17 18:16:17 +01:00
Rika Ichinose
72eee6001f
Remake AdjustLineBreaks.
...
This version is correct and supposedly better in other ways (except for a bit of clarity maybe).
(cherry picked from commit 1c4151d82e
)
edited to work around changes related to the massive unmergable dotted rtl commits.
2023-12-17 18:05:00 +01:00
Sven/Sarah Barth
009b421498
* have the unsigned 32-bit overload of IntToHex use the signed 32-bit one to avoid usage of 64-bit arithmetic (and parameter passing) when it can be avoided
...
(cherry picked from commit 862cffa087
)
2023-12-17 17:58:09 +01:00
florian
18b6588bda
* reverted TryStrToInt to the old implementation since after the val fixed the changes are not
...
needed anymore as pointed out by Bart B
(cherry picked from commit 0764158fd1
)
2023-12-17 17:57:59 +01:00
florian
d1166342ca
* proper range checking for TryStrToDWord, should resolve all issues in #39406
...
(cherry picked from commit 983fbff871
)
2023-12-17 17:57:49 +01:00
florian
bbffe9e26a
* allow a range of Low(Longint) to High(DWord) in TryStrToInt, see also issue #39406
...
* moved test
(cherry picked from commit 435f3a9fe2
)
2023-12-17 17:57:41 +01:00
Michaël Van Canneyt
3828c73678
* Make hexdigits a global constant
...
(cherry picked from commit b1412ec5c0
)
2023-12-17 17:57:37 +01:00
florian
d64f88293f
* StrTo* functions are now using the TryStrTo* functions
...
(cherry picked from commit 40df955423
)
2023-12-17 17:56:32 +01:00
Michaël Van Canneyt
5cdb0b1a9e
* Fix integer overflow not being detected. Issue #39406
...
(cherry picked from commit 1e74c418ae
)
2023-12-17 17:56:24 +01:00
Michaël Van Canneyt
10c3ff6801
* Add CreateFmt constructor for EInOutArgumentException
...
(cherry picked from commit 2d3cd5bff2
)
2023-12-17 17:08:25 +01:00
Michaël Van Canneyt
d00b2e5c6b
* Add some missing exception classes
...
(cherry picked from commit 6eac18e8c1
)
2023-12-17 17:08:13 +01:00
Michaël Van Canneyt
8c5420ad56
* Add TPointF.Zero
...
(cherry picked from commit b3d3b65bdf
)
2023-12-16 23:22:13 +01:00
Michaël Van Canneyt
774ffb4219
* Fix typos, missing sparc
...
(cherry picked from commit d587f48892
)
2023-12-16 23:10:48 +01:00
Michaël Van Canneyt
d41ae0a18d
* add TClassicByteDynArray for delphi compatibility
...
(cherry picked from commit 9904727f75
)
2023-12-16 23:10:37 +01:00
Michaël Van Canneyt
23825645fc
* Add TClassicStringDynArray for Delphi compatibility
...
(cherry picked from commit 14fe7203fe
)
2023-12-16 23:10:30 +01:00