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
michael
53e10c99d4
* Fix bug #33984 , fix for correct string definition in unicodestringreplace
...
git-svn-id: trunk@39452 -
2018-07-14 16:27:52 +00:00
michael
844a9b0ca6
* Actually observe TStringStream.OwnsEncoding in destructor
...
git-svn-id: trunk@39379 -
2018-07-04 11:03:21 +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
michael
a9205c9fba
* Fix bug ID #32837 , correct Mantissa and Fraction in float helpers, patch from Bart Broersma
...
git-svn-id: trunk@39346 -
2018-06-29 20:51:32 +00:00
michael
58b480e0b2
* Fix bug ID #33860
...
git-svn-id: trunk@39330 -
2018-06-28 12:41:49 +00:00
svenbarth
8536abce8a
* as the management operator feature is not platform specific using a specific define for it aside from a
...
version check is unnecessary, thus remove the FPC_HAS_MANAGEMENT_OPERATOR define and instead check for VER3_0
git-svn-id: trunk@39257 -
2018-06-20 19:00:24 +00:00
svenbarth
ac0322c323
+ add a flags field to the record init RTTI which declares whether
...
a) the current record contains a field with non-trivial initialization
b) and of the parents contains such a field (only relevant for objects and classes)
git-svn-id: trunk@39255 -
2018-06-20 19:00:17 +00:00
florian
400861a907
* fixed TBits.NotBits, it is just an Xor operation, resolves #33706
...
git-svn-id: trunk@39243 -
2018-06-19 20:38:15 +00:00
svenbarth
8a195c44ba
+ add overloads of IsInfinite() for Single and Extended (compatible with Delphi)
...
git-svn-id: trunk@39135 -
2018-05-28 15:36:18 +00:00
pierre
dfcb34aef2
* Ansi2UnicodeMove:
...
- Avoid calling Utf8ToUnicode with only three parameters,
as this is not reliable if the ansitring contains embedded #0 chars.
Use explicit high(SizeUInt) or allocated length explicitly.
- Change destLen type to SizeUInt.
* UpperAnsiString, LowerAnsiString:
Also avoid call to Utf8ToUnicode with only three parameters.
Change type of slen and ulen local variables to SizeUInt.
* CompareStrAnsiString:
Fix sign of return value if l2=0 (was returning negative value)
git-svn-id: trunk@38972 -
2018-05-11 12:12:37 +00:00
pierre
26cc97745a
Fix wrong starting index in CompareStrAnsiString function
...
git-svn-id: trunk@38963 -
2018-05-09 23:14:45 +00:00
michael
7aa7f1b96f
* Fix bug #33681
...
git-svn-id: trunk@38896 -
2018-05-03 07:09:05 +00:00
michael
e4ef17b5c0
* Use SizeInt, let StartsWith/EndsWith handle #0 characters (bug ID 33559)
...
git-svn-id: trunk@38769 -
2018-04-14 12:06:48 +00:00
florian
add418db0e
* properly define Min/Max values of Native*Int helpers, resolves #33543
...
git-svn-id: trunk@38664 -
2018-04-02 21:31:23 +00:00
michael
8b19eddd13
* Remove scrollh again, Lazarus solved it another way
...
git-svn-id: trunk@38658 -
2018-04-01 08:19:17 +00:00
michael
616d8073f2
* Implement flushbuffer abstract method in TFiler (part 2) (bug ID 33062)
...
git-svn-id: trunk@38656 -
2018-04-01 07:19:34 +00:00
michael
a137486439
* Implement flushbuffer abstract method in TFiler (bug ID 33062)
...
git-svn-id: trunk@38655 -
2018-04-01 07:16:34 +00:00
michael
6d49a7b93f
* Put Collection.Assign loop in beginupdate/endupdate (bug ID 33517)
...
git-svn-id: trunk@38628 -
2018-03-26 19:02:51 +00:00
michael
31a354a3bc
* Fix bug #33516
...
git-svn-id: trunk@38627 -
2018-03-26 16:31:28 +00:00
pierre
921b406c05
Fix for webtbs/tw11006.pp and test/tbs/tb0632.pp instability.
...
* Add ThreadQueueLockCounter variable to
postpone call to DoneCriticlSection to the last thread
that decrements back the counter to zero.
* CommonCleanup:
Protect ThreadQueue emptying within
a Enter/Leave-CriticalSection to avoid access y other
threads at the same time.
git-svn-id: trunk@38626 -
2018-03-25 20:32:25 +00:00
michael
e46b89c8bb
* Patch from Ondrej Pokorny to fix camelcase (bug ID 4b46872)
...
git-svn-id: trunk@38619 -
2018-03-24 14:39:56 +00:00
michael
16ba47be46
* Patch from Ondrej Pokorny to convert unit names to CamelCase (bug ID 33481)
...
git-svn-id: trunk@38616 -
2018-03-23 22:06:36 +00:00
michael
bf3e437dd6
* Fix bug #33475 , add AddPair for Delphi compatibility, modified patch by Silvio Clecio
...
git-svn-id: trunk@38587 -
2018-03-21 10:30:02 +00:00
pierre
31620a9c94
Add ESigQuit Exception class and use it in exceptmap
...
git-svn-id: trunk@38586 -
2018-03-21 10:28:33 +00:00
pierre
250e924ad3
+ Add RTE 236 for thread errors:
...
inc/systemh.inc and java/jsystemh.inc:
+ Add reThreadError (and also reNoDynLibsSupport) to TRuntimeError.
* Add new values to RuntimeErrorExitCodes after extension of TRuntimeError
inc/system.inc and java/jsystem.inc:
* use RTE 236 in fpc_threaderror.
objpas/sysconst.pp and objpas/sysutils/stre.inc:
+ Add SThreadError string constant.
objpas/sysutils/sysutilh.inc:
+ Add EThreadError class.
objpas/sysutils/sysutils.inc
+ Add 236 to EThreadError conversion to exeptmap.
git-svn-id: trunk@38584 -
2018-03-21 10:19:04 +00:00
michael
a877616dd5
* Fix bug #33441 (patch from Silvio Clécio)
...
git-svn-id: trunk@38539 -
2018-03-17 00:01:51 +00:00
florian
8a2cf56d51
* fixed operator mod for floats as proposed by wp in #33167 , resolves #33167
...
git-svn-id: trunk@38332 -
2018-02-24 18:23:06 +00:00
michael
77caa28bab
* Fix bug #33204
...
git-svn-id: trunk@38327 -
2018-02-24 11:12:11 +00:00
svenbarth
640480272f
* adjust TThread.Synchronize so that it also works correctly if the passed in thread instance is not the instance of the current thread
...
+ added test
git-svn-id: trunk@38124 -
2018-02-05 21:50:00 +00:00
svenbarth
2d52536460
* only check for the method if one is given at all (otherwise everything would be skipped)
...
git-svn-id: trunk@38115 -
2018-02-04 20:20:32 +00:00
michael
56fae4697a
* Accidentally removed keyword virtual from loadfromfile
...
git-svn-id: trunk@37966 -
2018-01-14 11:52:13 +00:00
michael
cbc50c5fe6
* Restore signature of loadfromstream/loadfromfile, make default delphi compatible
...
git-svn-id: trunk@37965 -
2018-01-14 10:11:56 +00:00
michael
5c1df42fa4
* Fix bug #32871
...
git-svn-id: trunk@37962 -
2018-01-13 18:21:44 +00:00
michael
f6a08a2c74
* Patch from Ondrej Pokorny to allow correct nodefault/stored for strings
...
git-svn-id: trunk@37954 -
2018-01-13 10:22:16 +00:00
marco
af85960d62
* East Asian locales era patch from Mantis #33003
...
git-svn-id: trunk@37944 -
2018-01-11 10:29:32 +00:00
marco
acf6fde3cf
* fix widestringreplace, shared routine missed some *sizeof(srchar) here and there.
...
patch from Cyrax, Mantis #32649
git-svn-id: trunk@37882 -
2017-12-30 15:51:53 +00:00
marco
b20dd5cdbb
* fpslist.deleterange mantis #32807
...
git-svn-id: trunk@37871 -
2017-12-29 18:05:13 +00:00
michael
e160d4c530
* Fix bug ID #32889 , handle ReadInterfaceRaw in TReader
...
git-svn-id: trunk@37856 -
2017-12-29 10:54:14 +00:00
michael
5e40444272
* Free component on error (bug ID 32626)
...
git-svn-id: trunk@37851 -
2017-12-29 09:37:57 +00:00
michael
fb7d2d9ebd
* Patch from Anton Shepelev to fix variance and standard deviation calculation (bug ID 32804)
...
git-svn-id: trunk@37791 -
2017-12-24 10:02:02 +00:00
pierre
29b52824cf
Try to fix TRect problem for wince
...
git-svn-id: trunk@37783 -
2017-12-22 11:50:59 +00:00
pierre
ec45d8617c
Fix wince rtl compilation (fix for bug report 32859)
...
git-svn-id: trunk@37778 -
2017-12-21 17:45:20 +00:00
nickysn
532ff65e87
+ enabled compilation of unit types for win16
...
git-svn-id: trunk@37736 -
2017-12-15 17:55:29 +00:00
nickysn
5409450195
+ ported and enabled compilation of unit sysutils for win16
...
git-svn-id: trunk@37734 -
2017-12-15 16:58:49 +00:00
florian
b41cb26727
+ write selected features in ppu of the system unit and load them further on
...
* ppu version update
* -Sf might be used only during system unit compilation
* loadsystemunit factored out so the system unit can be loaded earlier than other units to get features set
git-svn-id: trunk@37708 -
2017-12-10 16:32:56 +00:00
marco
a5487d327f
* intmean, patch by Bart. Bug #32661
...
git-svn-id: trunk@37688 -
2017-12-06 10:30:02 +00:00
florian
7741b495bd
- duplicate defintion of TBoundArray removed, resolves #32530
...
git-svn-id: trunk@37627 -
2017-11-26 21:03:52 +00:00
marco
fb57fd7324
* patch from Mattias fixing save/restore ancestorpos in twriter. Mantis #32607
...
git-svn-id: trunk@37513 -
2017-10-24 13:23:26 +00:00