svenbarth
8cd1f1973b
- remove unneeded local variable
...
git-svn-id: trunk@42386 -
2019-07-12 22:06:48 +00:00
svenbarth
affa9f9d9c
* to be on the safe side: don't include AttributeTable fields when cycling
...
git-svn-id: trunk@42385 -
2019-07-12 22:06:44 +00:00
svenbarth
3ad24c9db8
* as attributes can be part of any type they are best suited in a common part of TTypeData
...
git-svn-id: trunk@42375 -
2019-07-12 22:06:09 +00:00
svenbarth
de15025a47
* streamline retrieval of attributes (both in TypInfo and RTTI units)
...
git-svn-id: trunk@42373 -
2019-07-12 22:06:02 +00:00
svenbarth
e060a43d70
* rename TAttributeData to the more appropriate TAttributeTable
...
git-svn-id: trunk@42371 -
2019-07-12 22:05:55 +00:00
svenbarth
c17dafc2f9
* fix TClassData by including the AttributeTable at the right location
...
git-svn-id: trunk@42370 -
2019-07-12 22:05:51 +00:00
svenbarth
e296b26e9e
- remove unit info and related code again as that will be handled similar, but differently with dynamic packages
...
git-svn-id: trunk@42369 -
2019-07-12 22:05:47 +00:00
svenbarth
ee940c8270
* always write a class' reference to the attribute table, even if the unit does not have attributes
...
git-svn-id: trunk@42368 -
2019-07-12 22:05:42 +00:00
svenbarth
788d976f3a
* use a Word instead of a Byte for the attribute index (after all the compiler writes a Word to the count field)
...
git-svn-id: trunk@42367 -
2019-07-12 22:05:39 +00:00
svenbarth
5153a288dc
* it's more correct for GetPropAttribute to return a TCustomAttribute instead of a TObject
...
git-svn-id: trunk@42366 -
2019-07-12 22:05:33 +00:00
svenbarth
d137e06ade
* instead of embedding the attributes inside the class' and property's type data only store a reference to a table of attributes
...
git-svn-id: trunk@42365 -
2019-07-12 22:05:29 +00:00
svenbarth
84848df18d
Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 3/3]
...
Added FPC_REQUIRES_PROPER_ALIGNMENT to TUnitInfo definition. Added FPC_HAS_EXTENDED_RTTI define.
git-svn-id: trunk@42358 -
2019-07-12 22:04:56 +00:00
svenbarth
b2932393df
Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 1/3]
...
Implemented attributes for class types and properties (based on work by Joost van der Sluis). Added TCustomAttribute - a base class for attributes. Added TUnitInfo record to RTTI. It contains the unit name and unit options (for now only a flag which specifies if the unit contains attributes). Added several tests for attributes.
git-svn-id: trunk@42356 -
2019-07-12 22:04:48 +00:00
michael
a516b6fd74
* Fix bug ID #0035817
...
git-svn-id: trunk@42351 -
2019-07-11 20:33:39 +00:00
michael
561fa85104
* Fix comment for DateTimeToStr
...
git-svn-id: trunk@42315 -
2019-06-30 17:20:35 +00:00
michael
024714fa20
* Fix non-threading platforms
...
git-svn-id: trunk@42249 -
2019-06-19 08:10:26 +00:00
michael
ade808cb43
* Patch from Pascal Riekenberg to make component loading thread safe (bug ID 35638)
...
git-svn-id: trunk@42248 -
2019-06-19 06:25:02 +00:00
svenbarth
cc5549f3e7
* change Value argument of SetToString and result of of StringToSet from Integer to LongInt so that small sets are handled on 8/16-bit platforms as they are on 32- and 64-bit
...
git-svn-id: trunk@42245 -
2019-06-17 20:48:58 +00:00
svenbarth
15d0deff81
* fix SetToString/StringToSet for 8/16-bit platforms
...
git-svn-id: trunk@42244 -
2019-06-17 20:48:49 +00:00
svenbarth
89e454aca8
* rework/extend SetToString/StringToSet so that sets with a size > 4 can be converted as well (this is Delphi compatible)
...
+ added test
git-svn-id: trunk@42240 -
2019-06-16 21:36:25 +00:00
michael
b2e47cceb2
* Added constant for new error message in stringlist
...
git-svn-id: trunk@42172 -
2019-06-04 07:29:53 +00:00
michael
4d1e2c6aa5
* Sort public properties/methods in stringlist
...
git-svn-id: trunk@42171 -
2019-06-04 07:08:45 +00:00
michael
7c36912eb0
* Better fix for 35660: Introduced TMissingNameValueSeparatorAction
...
git-svn-id: trunk@42170 -
2019-06-04 07:00:48 +00:00
michael
de30f7852d
* Changed String.Split to conform to behaviour in Delphi Rio (bug ID 35669)
...
git-svn-id: trunk@42168 -
2019-06-03 06:27:37 +00:00
michael
833e00bfbd
* Fix bug #35660 , introduce prefervaluestonames
...
git-svn-id: trunk@42153 -
2019-06-01 09:42:27 +00:00
michael
167ca93d25
* Patch from Ondrej to remove unnecessary overload keywords
...
git-svn-id: trunk@42062 -
2019-05-14 08:36:52 +00:00
michael
6649fab22d
* Fix bug ID #0035580
...
git-svn-id: trunk@42058 -
2019-05-13 20:23:50 +00:00
michael
e4385d1b19
* Fix bug ID #35576
...
git-svn-id: trunk@42057 -
2019-05-13 20:15:00 +00:00
michael
dc592a888f
* Make explicit that Integer is 32-bit
...
git-svn-id: trunk@42056 -
2019-05-13 11:47:46 +00:00
michael
fdccb0d62f
* FIx compilation with 3.0.4
...
git-svn-id: trunk@42049 -
2019-05-12 15:36:04 +00:00
michael
58f1a8513b
* FIx compilation for platforms that do not have extended
...
git-svn-id: trunk@42048 -
2019-05-12 15:33:26 +00:00
michael
60efc9e81c
* Add Read/Write(Buffer) TBytes, ReadData/WriteData, ReadBufferData/WriteBufferData to be Delphi compatible
...
git-svn-id: trunk@42042 -
2019-05-12 10:09:16 +00:00
pierre
819752c334
Avoid warnings when -v0 is used by using $push/$pop
...
git-svn-id: trunk@41960 -
2019-04-29 14:19:16 +00:00
michael
a254a49e84
* Patch from Ondrej Pokorny to fix bug ID : #32961 reflect system code page change in TEncoding
...
git-svn-id: trunk@41951 -
2019-04-28 09:02:41 +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
svenbarth
9d10f21b07
* applied patch by Thaddy de Koning to fix Mantis #35378 : correctly declare TNativeIntHelper.MinValue
...
git-svn-id: trunk@41881 -
2019-04-16 09:24:05 +00:00
michael
27894ebe68
* Patch from Serge Anvarov to improve TStrings.GetNextLine and TStrings.GetNextLineBreak (bug ID 35331)
...
git-svn-id: trunk@41853 -
2019-04-09 11:35:56 +00:00
michael
08d6b446f0
* Fix bug ID #35345 , allow tstrings.text to exceed 2Gb
...
git-svn-id: trunk@41852 -
2019-04-09 11:16:56 +00:00
michael
cae2c94e90
* Patch from Ondrej Pokorny to let AddStrings call beginupdate/endupdate under all circumstances (bug ID 35341)
...
git-svn-id: trunk@41849 -
2019-04-08 07:51:19 +00:00
michael
e3973e9c4e
* Fix bug #35305 , lazy instantiation of class alias list. Patch from Ondrej Pokorny
...
git-svn-id: trunk@41819 -
2019-04-01 17:31:20 +00:00
michael
60606e61ef
* Patch from Ondrej Pokorny to make RegisterClassAlias thread-safe
...
git-svn-id: trunk@41818 -
2019-04-01 17:25:29 +00:00
michael
1951aff5a4
* Fix formatfloat in case E not followed by +/- (bug id 35297)
...
git-svn-id: trunk@41803 -
2019-03-30 15:47:50 +00:00
michael
2669b68e6d
* Added move on TCollection (bug ID 32673)
...
git-svn-id: trunk@41795 -
2019-03-26 07:03:24 +00:00
michael
905ccf9363
* Make FreeEncodings protected: they cannot be public, as it causes AVs (see bug ID #34856 )
...
git-svn-id: trunk@41547 -
2019-03-02 10:42:19 +00:00
michael
541bf05b94
* Add overloaded version of AssignFile with codepage. See bug ID #34889
...
git-svn-id: trunk@41342 -
2019-02-16 12:52:00 +00:00
michael
3fcc1c5f0e
* Complete the implementation of IsLeadChar
...
git-svn-id: trunk@41336 -
2019-02-16 10:50:31 +00:00
michael
4143ecf6c0
Fix bug ID #35086 : TParser should reset position (tentative)
...
git-svn-id: trunk@41331 -
2019-02-16 08:39:40 +00:00
michael
a750039f7c
* Add overloaded version of stringreplace with replacement count (ID 23987)
...
git-svn-id: trunk@41330 -
2019-02-16 07:55:26 +00:00
svenbarth
b810d8f32b
* fix for Mantis #35027 : ensure that the synchronize event entry is reset correctly in case of an exception
...
+ added test
git-svn-id: trunk@41281 -
2019-02-10 15:43:03 +00:00
svenbarth
1502a13e7c
* fix for Mantis #35028 : when the mainthread executes a queued ThreadMethod make sure that the queue entry is released even if an exception is raised
...
+ added test
git-svn-id: trunk@41280 -
2019-02-10 15:42:58 +00:00