sergei
c0f6084c2e
* SysUtils.Format: Fixed behavior in case when format specifier contains both index and '*' for width/precision.
...
+ test
git-svn-id: trunk@16740 -
2011-01-08 20:08:16 +00:00
paul
e69de6110b
rtl: add mkOperatorOverload to TMethodKind enum
...
git-svn-id: trunk@16694 -
2011-01-03 16:10:36 +00:00
marco
ff2292aafa
* Patch from LacaK2 to improve decimalpoint localisation. (Mantis 18338)
...
git-svn-id: trunk@16653 -
2010-12-29 12:33:14 +00:00
marco
df16200a75
* Patch from LacaK2 fixing else clause of vartobcd, bug #16853
...
git-svn-id: trunk@16584 -
2010-12-17 18:57:16 +00:00
sergei
3c2d918cfe
* Partially undo revision 16529: removing VariantToShortString breaks webtbs/tw14536 which calls the mentioned function directly instead of using typecast.
...
git-svn-id: trunk@16557 -
2010-12-11 23:25:20 +00:00
sergei
ae7018cf85
variants, varutils: another portion of misc fixes:
...
* Handle Variant to ShortString conversions entirely in variants unit, removed VarUtils.VariantToShortString
+ support varUString in DoVarClearComplex
* fixed missing result assignment in TCustomVariantType.VarDataIsEmptyParam
* TCustomVariantType.UnaryOp and BinaryOp now 'implemented', they raise EVariantInvalidOp
git-svn-id: trunk@16529 -
2010-12-10 03:38:21 +00:00
sergei
5bf51c991c
* VarUtils, fixed missing support for interfaces
...
- NoInterfaces() not used anymore, removed
+ Basic test for VariantArray of IInterface
git-svn-id: trunk@16527 -
2010-12-09 16:38:55 +00:00
sergei
4e3cedb492
* VariantInit is a procedure, not a function (according to both MSDN and Delphi docs).
...
git-svn-id: trunk@16525 -
2010-12-09 01:27:09 +00:00
sergei
ddfb032913
* VarUtils, fixed a wrong identifier
...
git-svn-id: trunk@16524 -
2010-12-08 23:42:39 +00:00
marco
69c89d4579
* more tcustomvariant conversion helpers from Lacak2. Mantis 16853
...
git-svn-id: trunk@16504 -
2010-12-04 20:21:03 +00:00
sergei
b8aec6e4aa
+ Support for UnicodeString in variant conversions, based on patch from Ivan Shikhalev, resolves #18083 .
...
git-svn-id: trunk@16502 -
2010-12-04 03:53:28 +00:00
marco
9534c5bd8b
* Delphi XE (2010?) compatible alias for defaultformatsettings.
...
* deprecated separate globals (Delphi XE). Causes some deprecated
warnings in dati.inc that still have to be fixed.
git-svn-id: trunk@16482 -
2010-11-30 09:49:19 +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
michael
fa0454afe2
* Fixed references to sub components (mantis #18021 )
...
git-svn-id: trunk@16448 -
2010-11-26 14:51:43 +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
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