Commit Graph

2023 Commits

Author SHA1 Message Date
marco
135467a029 --- Merging r49478 into '.':
U    rtl/objpas/classes/streams.inc
--- Recording mergeinfo for merge of r49478 into '.':
 U   .

# revisions: 49478
r49478 | marco | 2021-06-05 17:42:34 +0200 (Sat, 05 Jun 2021) | 2 lines
Changed paths:
   M /trunk/rtl/objpas/classes/streams.inc

 * fix from Sebastian Hellwig for writeunicodestring bytes number, mantis   0038963

git-svn-id: branches/fixes_3_2@49610 -
2021-07-15 15:36:48 +00:00
michael
619c520fd6 * Merging revisions r49225 from trunk:
------------------------------------------------------------------------
    r49225 | michael | 2021-04-18 12:45:47 +0200 (Sun, 18 Apr 2021) | 1 line
    
    * Fix issue ID #38772
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@49301 -
2021-05-01 08:52:31 +00:00
florian
d758c95e9b -- Zusammenführen von r46778 in ».«:
U    rtl/objpas/sysutils/fmtflt.inc
A    tests/test/units/sysutils/tw37374.pp
-- Aufzeichnung der Informationen für Zusammenführung von r46778 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@48104 -
2021-01-07 21:06:28 +00:00
florian
06a0e48958 -- Zusammenführen von r43183 in ».«:
U    compiler/dbgdwarf.pas
-- Aufzeichnung der Informationen für Zusammenführung von r43183 in ».«:
 U   .
-- Zusammenführen von r47286 in ».«:
U    compiler/symdef.pas
-- Aufzeichnung der Informationen für Zusammenführung von r47286 in ».«:
 G   .
-- Zusammenführen von r44070 in ».«:
U    rtl/objpas/sysutils/sysstr.inc
-- Aufzeichnung der Informationen für Zusammenführung von r44070 in ».«:
 G   .

git-svn-id: branches/fixes_3_2@47912 -
2020-12-30 14:52:55 +00:00
svenbarth
74a1b6406e --- Merging r45159 into '.':
U    rtl/nativent/systhrd.inc
U    rtl/os2/systhrd.inc
U    rtl/win/systhrd.inc
--- Recording mergeinfo for merge of r45159 into '.':
 U   .
--- Merging r45160 into '.':
U    rtl/amicommon/athreads.pp
U    rtl/beos/bethreads.pp
U    rtl/inc/thread.inc
U    rtl/inc/threadh.inc
G    rtl/nativent/systhrd.inc
U    rtl/netware/systhrd.inc
U    rtl/netwlibc/systhrd.inc
U    rtl/objpas/classes/classes.inc
U    rtl/objpas/classes/classesh.inc
G    rtl/os2/systhrd.inc
U    rtl/unix/cthreads.pp
G    rtl/win/systhrd.inc
--- Recording mergeinfo for merge of r45160 into '.':
 G   .
--- Merging r45206 into '.':
U    rtl/win/sysos.inc
G    rtl/win/systhrd.inc
U    rtl/win/syswin.inc
--- Recording mergeinfo for merge of r45206 into '.':
 G   .
--- Merging r45207 into '.':
U    rtl/linux/pthread.inc
--- Recording mergeinfo for merge of r45207 into '.':
 G   .
--- Merging r45233 into '.':
G    rtl/linux/pthread.inc
G    rtl/unix/cthreads.pp
--- Recording mergeinfo for merge of r45233 into '.':
 G   .
--- Merging r45237 into '.':
G    rtl/unix/cthreads.pp
G    rtl/win/systhrd.inc
--- Recording mergeinfo for merge of r45237 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47806 -
2020-12-17 22:44:26 +00:00
svenbarth
432fcd52bc Merged revision(s) 45409, 46897-46898, 47007, 47011, 47065, 47084 from trunk:
* fix for Mantis #37042: apply patch and test (adjusted for Big Endian) by Bi0T1N to add support for TBitConverter
........
* avoid range check error when using SwapEndian with 16-bit constants
+ added test
........
* readd SmallInt typecasts to SmallInt overload of SwapEndian
........
* when removing a method from the synchronization queue using TThread.RemoveQueuedEvent then both the Code and the Data need to match (Delphi does the same)
+ added test
........
* simplify TThread.RemoveQueuedEvent - decide what to delete and not what to leave (better corresponds with the docs)
........
+ add ability to specify a SQLite VFS when opening a SQLite database
........
* fix test: TThread.WaitFor calls CheckSynchronize as well, so the thread needs to signal when it's done with removing entries from the queue
........

git-svn-id: branches/fixes_3_2@47782 -
2020-12-15 22:31:59 +00:00
marco
0feee25b1e # revisions: 46531,46744,46747,47288,47327,47366,47392,47393,47414
git-svn-id: branches/fixes_3_2@47725 -
2020-12-08 20:32:00 +00:00
marco
9d335225d8 --- Merging r47055 into '.':
U    rtl/objpas/sysutils/filutil.inc
U    rtl/objpas/sysutils/filutilh.inc
--- Recording mergeinfo for merge of r47055 into '.':
 U   .

# revisions: 47055
r47055 | michael | 2020-10-06 09:59:09 +0200 (Tue, 06 Oct 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/filutil.inc
   M /trunk/rtl/objpas/sysutils/filutilh.inc

* Add GetFileContents and GetFileAsString

git-svn-id: branches/fixes_3_2@47582 -
2020-11-25 17:06:24 +00:00
marco
9163637388 # revisions: 45993,46211,46430
git-svn-id: branches/fixes_3_2@47576 -
2020-11-25 08:10:43 +00:00
marco
55401227f9 --- Merging r42559 into '.':
U    rtl/objpas/sysutils/filutil.inc
--- Recording mergeinfo for merge of r42559 into '.':
 U   .

# revisions: 42559
r42559 | svenbarth | 2019-08-02 15:16:17 +0200 (Fri, 02 Aug 2019) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/filutil.inc

* fix for Mantis #35906: use more accurate modified time from the FindData on Windows for the Timestamp

git-svn-id: branches/fixes_3_2@47261 -
2020-10-31 15:27:29 +00:00
marco
c2bd150407 --- Merging r47068 into '.':
U    rtl/objpas/sysutils/syshelp.inc
U    rtl/objpas/sysutils/syshelph.inc
--- Recording mergeinfo for merge of r47068 into '.':
 U   .

# revisions: 47068
r47068 | michael | 2020-10-09 13:21:30 +0200 (Fri, 09 Oct 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/syshelp.inc
   M /trunk/rtl/objpas/sysutils/syshelph.inc

* Patch from Werner Pamler to implement TStringSplitOptions.ExcludeLastEmpty

git-svn-id: branches/fixes_3_2@47099 -
2020-10-12 08:01:59 +00:00
marco
3659780850 --- Merging r46972 into '.':
U    rtl/objpas/math.pp
--- Recording mergeinfo for merge of r46972 into '.':
 U   .

# revisions: 46972
r46972 | florian | 2020-09-27 15:05:36 +0200 (Sun, 27 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/math.pp

  * reported by Bart on the mailing list: insert empty line to make clear to which function the comment applies

git-svn-id: branches/fixes_3_2@47098 -
2020-10-12 06:09:24 +00:00
marco
0b26dba64c --- Merging r46951 into '.':
U    rtl/objpas/sysutils/syshelp.inc
--- Recording mergeinfo for merge of r46951 into '.':
 U   .

# revisions: 46951
r46951 | michael | 2020-09-25 10:51:21 +0200 (Fri, 25 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/syshelp.inc

* Fix bug ID #37814: correctly initialize max chars

git-svn-id: branches/fixes_3_2@47097 -
2020-10-12 06:08:49 +00:00
marco
124bf1d108 # revisions: 44389,45572
git-svn-id: branches/fixes_3_2@47094 -
2020-10-11 15:49:03 +00:00
marco
8f8b5ed35b # revisions: 45522
git-svn-id: branches/fixes_3_2@47088 -
2020-10-11 13:41:52 +00:00
michael
dbcd3d0b64 * Merging revisions 47061 from trunk:
------------------------------------------------------------------------
    r47061 | michael | 2020-10-07 12:15:13 +0200 (Wed, 07 Oct 2020) | 1 line
    
    * Fix bug where position is not advanced when calling ReadAnsiString/ReadString
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@47062 -
2020-10-07 10:23:29 +00:00
marco
782ecf6c32 --- Merging r46763 into '.':
U    rtl/objpas/math.pp
--- Recording mergeinfo for merge of r46763 into '.':
 U   .

# revisions: 46763
r46763 | michael | 2020-09-04 17:19:28 +0200 (Fri, 04 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/math.pp

* Fix defines for fpdoc

git-svn-id: branches/fixes_3_2@46861 -
2020-09-13 12:38:53 +00:00
marco
55b4b54c2a # revisions: 45573,45790,45793
git-svn-id: branches/fixes_3_2@46830 -
2020-09-10 13:57:39 +00:00
michael
c72cd8ef67 * Merging revisions r46530 from trunk:
------------------------------------------------------------------------
    r46530 | michael | 2020-08-21 09:38:33 +0200 (Fri, 21 Aug 2020) | 1 line
    
    * Fix bug ID #0037605: Setting quotechar to NULL char disables quoting
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46640 -
2020-08-23 10:26:23 +00:00
michael
896cbd84e1 * Merging revisions r45520,r45521 from trunk:
------------------------------------------------------------------------
    r45520 | michael | 2020-05-28 11:39:35 +0200 (Thu, 28 May 2020) | 1 line
    
    * Add nullable (bug ID 0037128)
    ------------------------------------------------------------------------
    r45521 | michael | 2020-05-28 11:45:43 +0200 (Thu, 28 May 2020) | 1 line
    
    * Moved constant to rtlconsts
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46605 -
2020-08-23 09:28:54 +00:00
michael
a14117e0bb * Merging revisions r45805 from trunk:
------------------------------------------------------------------------
    r45805 | michael | 2020-07-19 00:35:36 +0200 (Sun, 19 Jul 2020) | 1 line
    
    * Add TerminatedSet (delphi compatibility, bug ID #37388)
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46598 -
2020-08-23 09:24:13 +00:00
michael
0a2f57724b * Merging revisions r45444 from trunk:
------------------------------------------------------------------------
    r45444 | michael | 2020-05-20 09:32:09 +0200 (Wed, 20 May 2020) | 1 line
    
    * Fix bug ID #37118
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46587 -
2020-08-23 09:20:22 +00:00
michael
adbd474287 * Merging revisions r45425 from trunk:
------------------------------------------------------------------------
    r45425 | michael | 2020-05-18 19:29:48 +0200 (Mon, 18 May 2020) | 1 line
    
    * clarify dubious case statements
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46585 -
2020-08-23 09:19:14 +00:00
ondrej
e17cadbaa7 Merge r46337 from trunk
Revision: 46337
Author: ondrej
Date: 2020-08-09 08:13:06
Message:
TWriter: fix default value handling for Int64/QWord values. Issue #37525

git-svn-id: branches/fixes_3_2@46339 -
2020-08-09 13:21:55 +00:00
marco
a0f699ac3e # revisions: 44312,44313
git-svn-id: branches/fixes_3_2@45705 -
2020-06-27 20:47:37 +00:00
marco
baf8b99261 # revisions: 45370
git-svn-id: branches/fixes_3_2@45689 -
2020-06-24 17:58:59 +00:00
marco
b9e071c1c2 # revisions: 45336
git-svn-id: branches/fixes_3_2@45688 -
2020-06-24 17:46:40 +00:00
marco
b087c236b5 # revisions: 44457,44777
git-svn-id: branches/fixes_3_2@44865 -
2020-04-19 18:20:20 +00:00
marco
32b4647870 # revisions: 44443,44667,44714,44724
git-svn-id: branches/fixes_3_2@44864 -
2020-04-19 18:13:59 +00:00
marco
8250336193 # revisions: 44496,44529,44632,44635,44643,44644,44664
git-svn-id: branches/fixes_3_2@44863 -
2020-04-19 18:06:48 +00:00
marco
6d1a81ffde --- Recording mergeinfo for merge of r44225 into '.':
G   .

# revisions: 44225

git-svn-id: branches/fixes_3_2@44307 -
2020-03-17 09:36:47 +00:00
marco
913dd3190f # revisions: 43950,44275,44276,44277,44278,44280,44282,44290
git-svn-id: branches/fixes_3_2@44298 -
2020-03-14 15:22:22 +00:00
marco
1bf341f0ff * revs 43341 (Solaris makefile) ,43971 (ismanagedtype usage 3.2.x ifdef in
fgl)

git-svn-id: branches/fixes_3_2@44091 -
2020-02-02 14:12:42 +00:00
ondrej
9e9c7e1409 Merging revisions r43838, r43839, r43840, r43841, r43842, r43844, r43845, r43846, r43848, r43942, r43945, r43946, r43947, r43948 from trunk
(TStrings&TEncoding encoding fixes)

r43838
classes: fix TMBCSEncoding.IsSingleByte. Issue #36504
---------------------
r43839
classes: fix TStrings.SaveToStream overloads (Delphi-compatibility + introduce IgnoreEncoding-overload for legacy FPC code like for LoadFromStream)
---------------------
r43840
sysutils: fix TMBCSEncoding.GetPreamble
---------------------
r43841
classes: add TStrings.Options (Delphi-compatibility)
---------------------
r43842
sysutils: change TEncoding.Default from ANSI to SystemEncoding. (It is Delphi-compatible indeed because default SystemEncoding is ANSI.)
---------------------
r43844
fpmkunit: fix compilation after r43841
---------------------
r43845
classes: introduce TRawByteStringStream
---------------------
r43846
sysutils: TEncoding.IsStandardEncoding: FSystemEncodings are standard encodings (they must not be destroyed in user code)
---------------------
r43848
classes: add TStringsOption.soPreserveBOM
---------------------
r43942
TStrings: old SaveToFile(string) and SaveToStream(TStream) should ignore Encoding and stay backwards compatible within FPC. Use the other overloads for Encoding-aware SaveTo* methods
---------------------
r43945
TStrings: add missing SaveToFile overload with IgnoreEncoding parameter
---------------------
r43946
Revert r43942: TStrings: old SaveToFile(string) and SaveToStream(TStream) should ignore Encoding and stay backwards compatible within FPC. Use the other overloads for Encoding-aware SaveTo* methods
---------------------
r43947
TStrings: default options:  * remove soWriteBOM for FPC backwards compatibility * add soPreserveBOM so that a loaded file is correctly resaved
---------------------
r43948
TStrings.SaveToStream(TStream): use FEncoding as the default for IgnoreEncoding=False so that loaded files are correctly resaved
---------------------

git-svn-id: branches/fixes_3_2@44067 -
2020-01-30 06:21:12 +00:00
michael
57026e8804 * Merging revisions 43787,r43798,r43799,r43800,r43806,r43807,r43836 from trunk:
------------------------------------------------------------------------
    r43787 | michael | 2019-12-25 14:56:23 +0100 (Wed, 25 Dec 2019) | 1 line
    
    * Remove some unused identifiers
    ------------------------------------------------------------------------
    r43798 | michael | 2019-12-27 12:02:30 +0100 (Fri, 27 Dec 2019) | 1 line
    
    * Fix bug ID #36484: macos forbids loading unversioned library
    ------------------------------------------------------------------------
    r43799 | michael | 2019-12-27 12:08:52 +0100 (Fri, 27 Dec 2019) | 1 line
    
    * Fix bug #36478: add array of category names
    ------------------------------------------------------------------------
    r43800 | michael | 2019-12-27 23:09:52 +0100 (Fri, 27 Dec 2019) | 1 line
    
    * Fix recno
    ------------------------------------------------------------------------
    r43806 | michael | 2019-12-28 22:21:13 +0100 (Sat, 28 Dec 2019) | 1 line
    
    * Search with Postscript font name and humanreadable font name
    ------------------------------------------------------------------------
    r43807 | michael | 2019-12-28 22:21:45 +0100 (Sat, 28 Dec 2019) | 1 line
    
    * Set default font to postscript name
    ------------------------------------------------------------------------
    r43836 | michael | 2020-01-02 15:10:29 +0100 (Thu, 02 Jan 2020) | 1 line
    
    * Fix bug #0036503
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43989 -
2020-01-19 16:17:05 +00:00
marco
e01f4d52f5 --- Merging r42062 into '.':
U    rtl/objpas/classes/classesh.inc
--- Recording mergeinfo for merge of r42062 into '.':
 U   .

# revisions: 42062

git-svn-id: branches/fixes_3_2@43961 -
2020-01-17 08:57:19 +00:00
marco
21cdd55d9c --- Merging r43826 into '.':
U    rtl/objpas/sysutils/sysutilh.inc
U    rtl/objpas/sysutils/sysutils.inc
--- Recording mergeinfo for merge of r43826 into '.':
 U   .

# revisions: 43826

git-svn-id: branches/fixes_3_2@43925 -
2020-01-13 11:17:43 +00:00
michael
b355df88ad * Merging revisions r43513 from trunk:
------------------------------------------------------------------------
    r43513 | michael | 2019-11-18 17:00:03 +0100 (Mon, 18 Nov 2019) | 1 line
    
    * Treat 3.2 as 3.0.4
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43754 -
2019-12-23 13:49:57 +00:00
michael
5594fb1cc3 * Merging revisions r43714 from trunk:
------------------------------------------------------------------------
    r43714 | michael | 2019-12-23 14:15:19 +0100 (Mon, 23 Dec 2019) | 1 line
    
    * Fix bug ID #34303, readability opimizations
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43753 -
2019-12-23 13:45:48 +00:00
michael
bc1966c1dc * Merging revisions r43482 from trunk:
------------------------------------------------------------------------
    r43482 | michael | 2019-11-15 17:57:13 +0100 (Fri, 15 Nov 2019) | 1 line
    
    * Fix compilation with 3.0.4
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43752 -
2019-12-23 13:44:40 +00:00
michael
9e36aec7b1 * Merging revisions r43474 from trunk:
------------------------------------------------------------------------
    r43474 | michael | 2019-11-15 15:26:12 +0100 (Fri, 15 Nov 2019) | 1 line
    
    * avoid warning about visibility of ItemIsmanaged
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43750 -
2019-12-23 13:43:54 +00:00
michael
a51130badd * Merging revisions r43473 from trunk:
------------------------------------------------------------------------
    r43473 | michael | 2019-11-15 15:12:11 +0100 (Fri, 15 Nov 2019) | 1 line
    
    * Fix bug #0036270: optimize TFPSList.AddList and .Assign
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43749 -
2019-12-23 13:43:40 +00:00
michael
385d0ab62f * Merging revisions r43454 from trunk:
------------------------------------------------------------------------
    r43454 | michael | 2019-11-12 14:04:07 +0100 (Tue, 12 Nov 2019) | 1 line
    
    * Fix bug #36284: small refactoring
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43747 -
2019-12-23 13:42:07 +00:00
michael
4c6149e1fd * Merging revisions r43417 from trunk:
------------------------------------------------------------------------
    r43417 | michael | 2019-11-08 12:43:10 +0100 (Fri, 08 Nov 2019) | 1 line
    
    * Bit helpers for ordinal functions, adapted from batch by Thaddy De Koning (bug ID 0036146)
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43745 -
2019-12-23 13:38:27 +00:00
michael
18e1a2db97 * Merging revisions r43416 from trunk:
------------------------------------------------------------------------
    r43416 | michael | 2019-11-08 10:31:45 +0100 (Fri, 08 Nov 2019) | 1 line
    
    * Observe doclear
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43744 -
2019-12-23 13:38:07 +00:00
michael
a7c884aea0 * Merging revisions r43415 from trunk:
------------------------------------------------------------------------
    r43415 | michael | 2019-11-08 10:21:08 +0100 (Fri, 08 Nov 2019) | 1 line
    
    * Refactor AddDelimitedText/SetDelimitedText
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43743 -
2019-12-23 13:37:58 +00:00
michael
32b9d91358 * Merging revisions r43414 from trunk:
------------------------------------------------------------------------
    r43414 | michael | 2019-11-08 09:36:31 +0100 (Fri, 08 Nov 2019) | 1 line
    
    * Reduce use of Length(aValue) in setdelimitedtext
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43742 -
2019-12-23 13:37:46 +00:00
michael
c99c6a45c2 * Merging revisions r43405 from trunk:
------------------------------------------------------------------------
    r43405 | michael | 2019-11-06 11:51:34 +0100 (Wed, 06 Nov 2019) | 1 line
    
    * Add AddDelimitedText,AddCommatext by Werner Pamler (bug ID 36249)
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43741 -
2019-12-23 13:37:31 +00:00
michael
469350538a * Merging revisions r43404 from trunk:
------------------------------------------------------------------------
    r43404 | michael | 2019-11-06 11:42:11 +0100 (Wed, 06 Nov 2019) | 1 line
    
    * Fix bug ID #0036268, more descriptive comment
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43740 -
2019-12-23 13:36:48 +00:00
michael
0678bdf90b * Merging revisions r43365 from trunk:
------------------------------------------------------------------------
    r43365 | michael | 2019-11-02 16:08:27 +0100 (Sat, 02 Nov 2019) | 1 line
    
    * Add some functional methods to TStrings
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43739 -
2019-12-23 13:34:43 +00:00