michael
c4cc9b59e0
* Tag is now PtrInt, for upcoming Delphi 64-bit compatibility
...
git-svn-id: trunk@16408 -
2010-11-23 21:19:39 +00:00
sergei
5f1d15c693
* Patch from LacaK2 implementing some missing properties of BCDVariant, partially fixes #16853 .
...
git-svn-id: trunk@16404 -
2010-11-22 22:50:40 +00:00
michael
a1d8ad7a27
* Changed var to out in TStringList.Find
...
git-svn-id: trunk@16395 -
2010-11-21 18:20:44 +00:00
sergei
907e7a32d5
* GetFileHandle(), THandleStream: changed type that is used to store file handle from Integer to THandle, so it can be redefined to 64 bits on certain platforms, see http://lists.freepascal.org/lists/fpc-devel/2010-November/023019.html
...
git-svn-id: trunk@16383 -
2010-11-20 12:58:53 +00:00
sergei
6d89ec4ee4
* SysUtils unit, fixed return value of FileSetDate:
...
* return value of GetLastOSError if one is available, to be consistent with handle-based implementations and Delphi behavior.
* otherwise, return -1
git-svn-id: trunk@16318 -
2010-11-09 09:52:42 +00:00
marco
71aa7eaabd
* fix from mantis 17818. Value is only peaked, add readvalue to also consume it.
...
git-svn-id: trunk@16301 -
2010-11-03 20:45:01 +00:00
sergei
ffc357a528
* TThread, Windows implementation: prevent resource leak when destroying an initially suspended and never resumed thread. The thread must be always resumed so that ThreadProc can complete and cleanup. Fixes Mantis #17560 .
...
git-svn-id: trunk@16290 -
2010-11-01 22:37:33 +00:00
florian
b4c912bf92
* made Byte/Word/Long/Int64Rec endian safe
...
+ Int128/OWordRec
git-svn-id: trunk@16279 -
2010-10-31 17:57:54 +00:00
sergei
12f6eb2c4e
* types.pp, applied a fix similar to r16224,16226 also to UnionRect function. It is very similar to IntersectRect and parameter aliasing issue applies to it as well (see Mantis #17722 ).
...
git-svn-id: trunk@16235 -
2010-10-28 04:18:53 +00:00
sekelsenmat
3c2a94fad3
Makes IntersectRect more efficient
...
git-svn-id: trunk@16226 -
2010-10-26 15:49:25 +00:00
sekelsenmat
b4b9354468
Makes IntersectRect more robust. See bug #17722
...
git-svn-id: trunk@16224 -
2010-10-26 14:49:35 +00:00
sekelsenmat
8b6e8079ec
Fixes a potential crash in TStrings.SaveToStream
...
git-svn-id: trunk@16187 -
2010-10-19 15:50:13 +00:00
joost
07bf44517c
* Merged XPCom branch into trunk, added support for constref and changed
...
the IInterface implementation to be XPCom-compatible
--- Merging r15997 through r16179 into '.':
U rtl/inc/variants.pp
U rtl/inc/objpash.inc
U rtl/inc/objpas.inc
U rtl/objpas/classes/persist.inc
U rtl/objpas/classes/compon.inc
U rtl/objpas/classes/classesh.inc
A tests/test/tconstref1.pp
A tests/test/tconstref2.pp
A tests/test/tconstref3.pp
U tests/test/tinterface4.pp
A tests/test/tconstref4.pp
U tests/webtbs/tw10897.pp
U tests/webtbs/tw4086.pp
U tests/webtbs/tw15363.pp
U tests/webtbs/tw2177.pp
U tests/webtbs/tw16592.pp
U tests/tbs/tb0546.pp
U compiler/sparc/cpupara.pas
U compiler/i386/cpupara.pas
U compiler/pdecsub.pas
U compiler/symdef.pas
U compiler/powerpc/cpupara.pas
U compiler/avr/cpupara.pas
U compiler/browcol.pas
U compiler/defcmp.pas
U compiler/powerpc64/cpupara.pas
U compiler/ncgrtti.pas
U compiler/x86_64/cpupara.pas
U compiler/opttail.pas
U compiler/htypechk.pas
U compiler/tokens.pas
U compiler/objcutil.pas
U compiler/ncal.pas
U compiler/symtable.pas
U compiler/symsym.pas
U compiler/m68k/cpupara.pas
U compiler/regvars.pas
U compiler/arm/cpupara.pas
U compiler/symconst.pas
U compiler/mips/cpupara.pas
U compiler/paramgr.pas
U compiler/psub.pas
U compiler/pdecvar.pas
U compiler/dbgstabs.pas
U compiler/options.pas
U packages/fcl-fpcunit/src/testutils.pp
git-svn-id: trunk@16180 -
2010-10-17 20:58:22 +00:00
marco
a680c63950
* TThread.Resume and suspend deprecated (see user changes trunk)
...
git-svn-id: trunk@16171 -
2010-10-15 22:15:57 +00:00
sergei
6a9a991dca
* Fixed TryStrToDateTime so it returns True only if both date and time are parsed successfully, resolves #17541 .
...
git-svn-id: trunk@16099 -
2010-10-07 09:48:18 +00:00
mazen
b127fc154a
* Fixed spell error revealed by lintian.
...
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
sergei
a66876704b
* Windows platforms: always start a thread in suspended state and resume it later in AfterConstruction if necessary, prevents race conditions in constructor. Fixes Mantis #16884 on Windows.
...
git-svn-id: trunk@16091 -
2010-10-06 16:57:15 +00:00
marco
6ebda8f2cc
* D2009 compat: TStringList.OwnsObjects
...
git-svn-id: trunk@16058 -
2010-09-28 14:52:44 +00:00
michael
b93ab63038
* Fixed IntToHex in case of (0,0)
...
git-svn-id: trunk@16026 -
2010-09-20 07:46:04 +00:00
michael
154c6ec4d2
* Implementation of values 11..15 of negcurrentformat from Zeljan Rikalo
...
git-svn-id: trunk@15982 -
2010-09-14 11:23:41 +00:00
michael
f7b268713d
* Patch from Zeljan Rikalo to fix issue #13722 (FloatToStrF negative 0)
...
git-svn-id: trunk@15945 -
2010-09-06 11:09:39 +00:00
marco
d39c2ed039
* fix for 17123, rounding issues decodedatetime
...
git-svn-id: trunk@15804 -
2010-08-13 23:36:07 +00:00
florian
4671615dc7
* disable east asia/era stuff on WinCE, the functions does not seem to be available there, fixed compilation of trunk for WinCE
...
git-svn-id: trunk@15782 -
2010-08-11 20:30:14 +00:00
marco
8caa62618f
* support for east asia locale in formatdatetime. Patch from Taka_JP, mantis 14955 modified for recent sysutils rework, and to init eastasia support only once.
...
git-svn-id: trunk@15776 -
2010-08-11 09:03:13 +00:00
Jonas Maebe
89be8d45e3
* use TrueBoolStrs/FalseBoolStrs for *StrToBool* (mantis #16848 )
...
git-svn-id: trunk@15764 -
2010-08-10 13:06:22 +00:00
michael
4d2786d238
* Patch from Luiz americo to use FPList where possible
...
git-svn-id: trunk@15663 -
2010-07-30 09:06:18 +00:00
paul
dbbe861797
rtl: make fgl compilable with 2.4.0
...
git-svn-id: trunk@15658 -
2010-07-29 01:47:57 +00:00
paul
790f6b0a4b
compiler: use delphi syntax for type, const and var section declarations in classes instead of fpc generics syntax
...
rtl: fix fgl to use the new syntax
tests: fix generics tests to use the new syntax
git-svn-id: trunk@15646 -
2010-07-27 00:59:32 +00:00
Jonas Maebe
0207e5f8cd
* fixed windows compilation after r15599
...
git-svn-id: trunk@15606 -
2010-07-19 09:24:26 +00:00
Jonas Maebe
d7cdd9afba
* allow tthread-based threads to only start executing once the constructor
...
has finished running (based on patch by Jared Davison, mantis #16884 )
git-svn-id: trunk@15599 -
2010-07-18 16:31:25 +00:00
marco
d8707ec5d3
* hmodule should scale with pointertype on non-windows.
...
git-svn-id: trunk@15510 -
2010-07-02 20:08:05 +00:00
Jonas Maebe
7d27f4c21d
* also support variants for %s in sysutils.format (mantis #16787 )
...
git-svn-id: trunk@15509 -
2010-07-02 19:59:58 +00:00
florian
138c5d1570
+ feature switch RESOURCES
...
* use of feature switches in objpas updated
+ build unit objpas for embedded targets
git-svn-id: trunk@15473 -
2010-06-22 12:37:41 +00:00
michael
45d60dbb97
* Patch from Mattias Gaertner to fix missing classname placeholder
...
git-svn-id: trunk@15448 -
2010-06-18 19:40:12 +00:00
michael
037c783442
* Patch from Mattias gaertner to support lazarus lfm encoding in TParser
...
git-svn-id: trunk@15415 -
2010-06-12 20:54:33 +00:00
michael
561972e0fc
* Added TDataModuleClass class pointer
...
git-svn-id: trunk@15353 -
2010-05-31 09:53:18 +00:00
paul
8dfed24f3a
rtl: don't use c-style +=, -= in freebidi, utf8bidi since they can't be compiled with default options in this case
...
git-svn-id: trunk@15321 -
2010-05-24 03:35:34 +00:00
Jonas Maebe
700aa3cf11
* GetEnumNameCount also counted the unit name after r14511 (mantis #16402 )
...
git-svn-id: trunk@15225 -
2010-05-04 17:59:58 +00:00
ivost
980c353421
* added function IncludeLeadingPathDelimiter: it adds a path delimiter in front of a path
...
* added function ExcludeLeadingPathDelimiter: it removes a path delimiter in front of a path
* added function ConcatPaths: it concats multiple path fragments, path delimiters are added if necessary
git-svn-id: trunk@15167 -
2010-04-24 21:05:05 +00:00
Jonas Maebe
c67712f81f
+ tthread.start method, simply calls tthread.resume for now (mantis #16326 )
...
git-svn-id: trunk@15165 -
2010-04-24 14:52:08 +00:00
paul
a1d94c6829
rtl: implement TStreamAdapter.CopyTo, .SetSize, return proper error value for Clone instead of raising exception ( #0016161 ) + test
...
git-svn-id: trunk@15138 -
2010-04-11 12:52:31 +00:00
marco
cbf7b49dd1
* removed packed from statstg, which causes trouble in win64, and is probably wrong. Mantis 16159
...
git-svn-id: trunk@15136 -
2010-04-11 11:21:39 +00:00
paul
17687d90ce
rtl: minor changes for TStreamAdapter:
...
- return STG_E_INVALIDPOINTER instead of E_INVLIDARG for Read,Write as msdn requires
- return STG_E_INVALIDFUNCTION instead of E_INVLIDARG for Seek as msdn requires
git-svn-id: trunk@15127 -
2010-04-10 17:50:29 +00:00
michael
bc735a639f
* Call specialchars in TStringList constructor
...
git-svn-id: trunk@15116 -
2010-04-08 06:51:26 +00:00
Jonas Maebe
a18f2594e2
* fixed FloatToStr for ffGeneral when dealing with numbers whose number of
...
significant digits before the decimal points matches the precision
parameter exactly (mantis #16188 )
* round instead of cut off digits in FloatToStr with ffGeneral
* take into account the minus sign when determining whether a number needs
to be represented using ffExponent instead of ffGeneral because it has
too many digits
git-svn-id: trunk@15114 -
2010-04-05 14:54:24 +00:00
paul
24d8a7d833
compiler: start implementation of class constructors/destructors: parsing is ready but at the moment neither class constructors nor destructors are called - this is to be implemented
...
git-svn-id: trunk@15109 -
2010-04-03 09:14:12 +00:00
Jonas Maebe
60f8b7fcb1
+ int64 version of randomrange() (mantis #16108 )
...
git-svn-id: trunk@15097 -
2010-03-30 20:04:19 +00:00
ivost
a6022f5df2
* removed IImplementorGetter interface and replaced it by the guid IObjectReference.
...
* GetInterface and GetInterfaceWeak is modified so that when querying for IObjectReference not an interface is returned but the object pointer
git-svn-id: trunk@15087 -
2010-03-28 12:35:50 +00:00
ivost
7025b1ac01
* added supports helper functions for IInterface supports TClass -> TObject,Boolean
...
git-svn-id: trunk@15086 -
2010-03-28 11:51:38 +00:00
ivost
5a588e5f06
* fixed Supports function so that it's using new function GetInterfaceWeak. Supports may have accidentially freed a objects.
...
git-svn-id: trunk@15078 -
2010-03-27 17:02:09 +00:00