Commit Graph

2484 Commits

Author SHA1 Message Date
Alligator-1
cb237c9008 const for TFormatSettings 2025-03-09 14:53:24 +00:00
Michaël Van Canneyt
1a32b53f2c * Add GetTypeName, GetPropName 2025-03-04 18:01:47 +01:00
Michaël Van Canneyt
3b8a4137a5 * IInterfaceListEx 2025-02-27 17:36:43 +01:00
Michaël Van Canneyt
35a21de57c * Allow TFormatSettings.Create with string (using callback) 2025-02-19 20:36:54 +01:00
Michaël Van Canneyt
545db4a070 * Extend GetLocalTimeOffset to return Dst or not 2025-02-19 17:31:01 +01:00
Rika Ichinose
6631f83ccf Change CompareChar uses inside compiler/RTL to CompareByte. 2025-02-07 20:51:50 +03:00
Michaël Van Canneyt
28fc3da2bd * Patch from Eric Grange to fix TRectF.FitInto 2025-01-24 11:53:09 +01:00
Sven/Sarah Barth
9fccadc1f0 * leave GetFileContents() early if the file size is 0 to avoid a range error if the RTL is compiled with range checks 2025-01-13 23:30:02 +01:00
Rika Ichinose
9dfbc38a50 Don’t use explicit Move in Extract<T> and Swap<T>. 2024-12-23 21:06:22 +00:00
Michaël Van Canneyt
a8345da53f * TBasicActionLink.Update must always return value. Fix issue #41070 2024-12-20 12:28:20 +01:00
Michaël Van Canneyt
73287c1fa8 * Patch from Bart B to improve Slice(). Fixes issue #41068 2024-12-18 20:41:55 +01:00
Michaël Van Canneyt
6f5f567087 * Patch from Amexander Bagel to restore Delphi-compatible behaviour in TThread.Queue. Fixes issue #41043 2024-11-26 08:52:40 +01:00
Michaël Van Canneyt
0c83b3dc6c * Add Delphi-Compatible new findCmdLineSwitch overload 2024-11-23 10:23:36 +01:00
Frederic Kehrein
64c27a86a8 * Adding new generic Extract and Swap function to RTL
These allow to move data from one variable to another without triggering
the copy operation. Extract makes use of the newly introduced move
semantic for function results and Swap uses System.Move to not trigger
the copy mechanism.
2024-11-16 22:08:06 +00:00
Frederic Kehrein
4b92df28cf Adding static properties to extended RTTI 2024-11-15 12:47:41 +00:00
Michaël Van Canneyt
6e73a3b0e1 * Patch from Alfred Glänzer, fix FindComponentClass to use actual typinfo structures. Fixes issue #41000 2024-11-09 09:46:14 +01:00
Zoë Peterson
208806f27f Make SysUtils' TSystemTime declaration on non-Windows platforms compatible with the Win32 and Delphi declarations 2024-11-07 18:58:18 -06:00
Rika Ichinose
0b97f169b0 Remove conditionals that rely on not defined(FPC_HAS_CPSTRING). 2024-11-04 10:28:33 +00:00
Lipinast Lekrisov
f7bcabd956 Added TRttiIndexedProperty, the whole property handling infrastructure has been significantly redesigned 2024-11-03 18:07:45 +00:00
Frederic Kehrein
59a1199110 Adding support for indexed properties in extended RTTI 2024-10-31 14:51:00 +00:00
Sven/Sarah Barth
2ef822e8e8 * fix #40305: with type helpers now supporting inheriting from unique type aliases, declare a TRealHelper as a descendant of TDoubleHelper (cause Real is a Double)
+ added test
2024-10-25 15:26:32 +02:00
Michaël Van Canneyt
a2deb9cbf1 * Allow %o, let %p handle object pointers and class pointers. Fixes issue #40762 2024-10-09 09:11:08 +02:00
Frederic Kehrein
23dd7a5173 Adding TNullPtr to types
Additional changes:
* Now using TNullPtr instead of custom type in TNullable
* Adding assignment of variants with TNulPtr to avoid name conflicts
* Adding comparison to TNullPtr (Pointers, TObjects, TNullable)
2024-10-02 05:30:09 +00:00
Michaël Van Canneyt
aec11012e8 * Remove superfluous initialization of local variable. Fixes issue #40917 2024-09-13 16:09:36 +02:00
florian
a867530056 * another fix of cosh/sinh overflow checking 2024-09-06 22:24:38 +02:00
florian
81ffe0ed36 * improved cosh/sinh argument checking 2024-09-05 22:21:56 +02:00
florian
d4a2f67a6d + check argument range for cosh/sinh 2024-09-04 22:08:45 +02:00
florian
1850eab89a * ensure that the final assignment in the hyperbolic functions raises an exception if they overflow 2024-09-02 21:35:54 +01:00
florian
d8278b1699 * make typing more consitent; cosmetics 2024-08-30 21:42:07 +01:00
Michaël Van Canneyt
8139c0a8bd * Properly nest beginupdate/endupdate in doaddobject 2024-08-27 09:52:36 +02:00
Rika Ichinose
d7352e7b66 Remove most of the VER3_0 conditionals. 2024-08-25 09:44:11 +00:00
Michaël Van Canneyt
58560d333e * Keep old behaviour, but keep issue #40898 solved 2024-08-24 16:20:27 +02:00
Michaël Van Canneyt
edde858cfa * try to avoid incompatibility with lazarus (and possibly others) 2024-08-22 14:47:07 +02:00
Michaël Van Canneyt
8d5cf6ca5c * Alternative approach for AddObject, which does not break backwards compatibility. Fixes issue #40899 2024-08-22 08:33:38 +02:00
florian
2f0cd77d86 * remove outdated defines, resolves #40897 2024-08-21 23:08:33 +02:00
Michaël Van Canneyt
d3c902e5a1 * Fix behaviour of AddObject when duplicates=dupIgnore. Patch by Artem Izmaylov. Fixes issue #40898 2024-08-21 17:06:30 +02:00
Michaël Van Canneyt
487afd243e * DefineProperties can have dot in name. 2024-08-19 10:54:05 +02:00
Michaël Van Canneyt
5186044e81 * TStrings.InsertObject is virtual in Delphi 2024-08-14 15:15:08 +02:00
Michaël Van Canneyt
0533acdc27 * Add RangeIndexError (delphi compatible) 2024-08-14 15:14:24 +02:00
Michaël Van Canneyt
15ba298bae * Additional check on action. 2024-08-13 10:35:39 +02:00
Michaël Van Canneyt
68acd78640 * Add SMEnuSeparator for Delphi compatibility 2024-08-13 10:32:29 +02:00
Michaël Van Canneyt
2accac30ae * Check if action is assigned before calling update on it 2024-08-13 10:24:36 +02:00
Rika Ichinose
a575a5c0fd Move Int128Rec to System; remove i386 and x86_64 CPU unit dependency on SysUtils. 2024-07-15 13:31:20 +00:00
Michaël Van Canneyt
634e01d525 * Improved ToString for TComponent 2024-07-11 12:08:18 +02:00
Michaël Van Canneyt
cf4fc4e385 * Add property to better simulate Delphi behaviour 2024-07-11 11:46:33 +02:00
Michaël Van Canneyt
0b4d9a6732 * Some utility routines 2024-07-11 11:46:33 +02:00
Ondrej Pokorny
617d56f23a Move EqualsValue/LessThanValue/GreaterThanValue to unit Types, refer to them in the Math unit 2024-07-10 11:38:42 +02:00
Alligator-1
326073512d const array - reducing unnecessary data copying 2024-07-08 06:26:17 +00:00
Michaël Van Canneyt
680c096ac5 * Delphi compatibility: ListIndexErrorMsg 2024-07-05 15:55:47 +02:00
Michaël Van Canneyt
816e3fc538 * Some routines for list index error, delphi-compatible 2024-07-05 15:35:33 +02:00