Commit Graph

80 Commits

Author SHA1 Message Date
marcoonthegit
f532cf1698 * Use an own put for tfpginterfacedobjectlist as per bug #39846.
Maybe not the most elegant, but solves the immediately
2022-08-14 16:24:35 +02:00
Michaël Van Canneyt
5df6671ff2 * Fix issue 39431 2021-11-11 19:36:05 +01:00
Károly Balogh
45b5e9215c rtl: remove defines for v2.x compiler from the common part of the RTL. It's no longer suppported to build with that
git-svn-id: trunk@49036 -
2021-03-23 09:32:49 +00:00
marco
aa391dadbf * only free if not ffreeobjects, mantis 036853
git-svn-id: trunk@44457 -
2020-03-31 14:53:03 +00:00
marco
37a8536bd4 * undo 43513 which ifdefed usage of ismanagedtype for 3.2. 3.2 now supports ismanagedtype
git-svn-id: trunk@43971 -
2020-01-18 15:17:02 +00:00
michael
37a9cda682 * Treat 3.2 as 3.0.4
git-svn-id: trunk@43513 -
2019-11-18 16:00:03 +00:00
michael
a5d3aabfc2 * Fix compilation with 3.0.4
git-svn-id: trunk@43482 -
2019-11-15 16:57:13 +00:00
michael
6fcd7fe3f8 * avoid warning about visibility of ItemIsmanaged
git-svn-id: trunk@43474 -
2019-11-15 14:26:12 +00:00
michael
d21a262a6c * Fix bug #0036270: optimize TFPSList.AddList and .Assign
git-svn-id: trunk@43473 -
2019-11-15 14:12:11 +00:00
michael
2557c8e99b * Fix bug ID #0036268, more descriptive comment
git-svn-id: trunk@43404 -
2019-11-06 10:42:11 +00:00
svenbarth
b7a716cd81 * correct return a pointer to the list so that List^[x] works as it did before 3.2
+ added test

git-svn-id: trunk@41938 -
2019-04-26 08:13:11 +00:00
nickysn
1d7ff66602 + added .Sort() overloads with a SortingAlgorithm parameter to TFPGList,
TFPGObjectList, TFPGInterfacedObjectList and TFPSMap

git-svn-id: trunk@41196 -
2019-02-03 19:49:35 +00:00
nickysn
ad677070f4 * hook TFPSList.QuickSort to also call the default sorting algorithm from sortbase
git-svn-id: trunk@41179 -
2019-02-02 23:08:25 +00:00
nickysn
4ea42ab6d2 * use the sortbase sorting algorithm in fgl as well
git-svn-id: trunk@41176 -
2019-02-02 22:49:39 +00:00
marco
15fcd0ab61 * remove old ifdefs
git-svn-id: trunk@39642 -
2018-08-19 14:54:58 +00:00
svenbarth
38c30a557d * deprecate MaxGListSize; it's no longer used by the generic types
git-svn-id: trunk@39465 -
2018-07-17 19:30:29 +00:00
svenbarth
2ec7a5acff * change declaration of TTypeList from a static array to a pointer to T as the static array might breach the
limits for static arrays if the used type is too large (especially on 32-bit systems); as FPC supports indexing
of typed pointers like arrays this should be mostly backwards compatible

git-svn-id: trunk@39464 -
2018-07-17 19:30:26 +00:00
svenbarth
ddb501bddf * use a TObject constraint for TFPGObjectList and TFPGObjectMap to ensure that only TObject and its descendants
are used (allows for a better error message)

git-svn-id: trunk@39363 -
2018-07-03 18:34:41 +00:00
marco
b20dd5cdbb * fpslist.deleterange mantis #32807
git-svn-id: trunk@37871 -
2017-12-29 18:05:13 +00:00
michael
aabc5dc217 * Add AddList to list classes (bug ID 32447)
git-svn-id: trunk@37268 -
2017-09-20 14:21:52 +00:00
michael
e4184e0561 * Patch from Denis Kozlov to fix find in case of non-sorted list
git-svn-id: trunk@35942 -
2017-04-24 20:52:41 +00:00
florian
759a53dfc7 - removed comment that the unit is a prototype and changing: the comment was introduced 10 years ago, the unit is part of stable release for years, it is documented
git-svn-id: trunk@35073 -
2016-12-04 21:16:00 +00:00
florian
55d9fea401 * CLASSESINLINE -> FGLINLINE
* inlining enabled

git-svn-id: trunk@35072 -
2016-12-04 21:14:00 +00:00
michael
aa6a8acb72 * Introduce TFPSList checkindex (bug ID 30886)
git-svn-id: trunk@34872 -
2016-11-11 10:16:57 +00:00
michael
ee40c7618c * Make TFPGListEnumeratorSpec public (Bug ID 30573)
git-svn-id: trunk@34485 -
2016-09-10 17:15:10 +00:00
marco
d4fd7520ef * wrap getfirst and getlast in fcount<>0 because otherwise it will dereference nil.
Mantis #30080

git-svn-id: trunk@33598 -
2016-05-01 14:43:12 +00:00
michael
46315176f4 * Patch from Silvio Clecio implementing TFPGMapObject (Bug ID 29438)
git-svn-id: trunk@32987 -
2016-01-22 23:07:05 +00:00
michael
2b80ac1353 * Fix bug ID #29415 (compilation with 2.6.4)
git-svn-id: trunk@32959 -
2016-01-17 09:21:07 +00:00
michael
4e7115a956 * 2 Patches from Silvio Clecio
git-svn-id: trunk@32947 -
2016-01-15 20:59:29 +00:00
michael
64c324caaf * Patch from Silvio Clecio to add a TryGetValue method to TFPGMap (bug ID 29397)
git-svn-id: trunk@32942 -
2016-01-15 07:48:49 +00:00
marco
5d2a54136a * see also r31267, mantis #28289, change calculation.
git-svn-id: trunk@31381 -
2015-08-24 12:03:56 +00:00
florian
a797c2fc46 * calculate middle element P correctly if (L+R>=2^31), resolves #28289
git-svn-id: trunk@31267 -
2015-08-03 20:09:50 +00:00
michael
0e68cb641d * Applied patch from bug ID #25635, fixing memory leak
git-svn-id: trunk@26714 -
2014-02-08 09:42:59 +00:00
nickysn
730f7c82b7 * some fixes, intended to get units fgl and classes to compile on 16-bit cpus
git-svn-id: trunk@24649 -
2013-05-30 18:58:25 +00:00
svenbarth
bb5dc545f8 rtl/objpas/fgl.pp:
Fix typo in comment; fixes Mantis #23352

git-svn-id: trunk@23036 -
2012-11-19 19:23:58 +00:00
florian
39aef35bdc * pass not only exception address but also frame to raise:
if an address is passed the compiler cannot know a good 
  value for the frame so it passed nil and no stack trace is printed, resolves #12528

git-svn-id: trunk@22932 -
2012-11-04 20:40:21 +00:00
marco
262ff83658 * binary compare data compared data1 with itself, mantis #22241 Patch by ...
git-svn-id: trunk@21576 -
2012-06-10 09:30:11 +00:00
marco
6b93cbcbea * Fix for #21636, TFPSList.Pack several fixes.
git-svn-id: trunk@21039 -
2012-04-25 17:25:00 +00:00
florian
4c95e9fce5 * commented pdata type as proposed in #20004 by Michalis Kamburelis, resolves #20004
git-svn-id: trunk@18244 -
2011-08-17 11:47:41 +00:00
florian
ae8c250c3e * fix indention
git-svn-id: trunk@18238 -
2011-08-17 09:20:28 +00:00
florian
9b88297389 * patch by Michalis Kamburelis to keep the ending of TFPSList filled with zeros (space between count and capacity), resolves #20005
git-svn-id: trunk@18237 -
2011-08-17 09:05:58 +00:00
florian
6cb6d9ffaf * patch by Michalis Kamburelis to make FGL lists First and Last properties that are settable, resolves #19874
git-svn-id: trunk@18223 -
2011-08-16 17:11:48 +00:00
florian
3787ed993c * made some fields in fgl.pp private as proposed by Michalis Kamburelis, resolves #19873
git-svn-id: trunk@18210 -
2011-08-14 19:52:01 +00:00
florian
4a34192510 * fix TFPGList.Extract to return the correct values by a patch by Michalis Kamburelis, resolves #19960
git-svn-id: trunk@18205 -
2011-08-14 13:57:33 +00:00
marco
079831b50e * Deref old content of node in FPSList.put. Mantis #19854
git-svn-id: trunk@18063 -
2011-08-02 15:15:27 +00:00
florian
6b42ba170b + TFPGObjectList.GetEnumerator and TFPGInterfacedObjectList.GetEnumerator, resolves #18094
git-svn-id: trunk@16471 -
2010-11-28 20:32:35 +00:00
ivost
5f39d255e1 * added TFPGMapInterfacedObjectData: This generic class expects a TInterfacedObject as type of TData. The advantage over TFPGMap is, that refcounting is used. It's compareable to TFPGInterfacedObjectList. Note that this only works within the TData part, TKey is not refcounted!
git-svn-id: trunk@16455 -
2010-11-27 16:02:01 +00:00
florian
3d13c2e2be * cleaned up ver2_0 defines
git-svn-id: trunk@16430 -
2010-11-25 14:28:31 +00:00
florian
ef0899425b * adds assign methods to the fgl classes based on a patch by Aleksa Todorovic, resolves #10479
git-svn-id: trunk@16429 -
2010-11-25 14:12:13 +00:00
ivost
e770bc597f * fixed refcounting problem. When copy an item over an existing one, the existing one was not dereferenced
* removed some old (useless) commented code

git-svn-id: trunk@16424 -
2010-11-24 23:08:12 +00:00