Commit Graph

1098 Commits

Author SHA1 Message Date
ivost
fff6e218af * readded BeforeDestructor that calls Destroying (delphi compatibility issue)
* uncommented code in Notification procedure (delphi compatibility issue)

git-svn-id: trunk@13874 -
2009-10-16 18:12:11 +00:00
ivost
3cfcdb2ab9 * reverted parts of r13852 (removed +/- with sets and added include/exclude)
git-svn-id: trunk@13873 -
2009-10-16 17:34:50 +00:00
michael
e4244e0452 * Forgot to commit
git-svn-id: trunk@13871 -
2009-10-16 15:31:25 +00:00
michael
cb29ddbd04 * TryStrToTime/TryStrToDate no longer need to catch exceptions
git-svn-id: trunk@13865 -
2009-10-16 09:31:09 +00:00
michael
dadd6631ad * Patch from Alex Rayne (bug ID 14622) to provide some overloaded versions of the strtodate/strtotime functions
git-svn-id: trunk@13864 -
2009-10-16 08:16:55 +00:00
ivost
242560f138 * corrected some typo that was inserted by r13853
git-svn-id: trunk@13854 -
2009-10-13 15:48:42 +00:00
ivost
65bca0a26d * enhanced how observers are notified by subjects on destroying
git-svn-id: trunk@13853 -
2009-10-13 12:22:36 +00:00
ivost
74c09e2268 * fixed strange free notification behavior of TComponent. Must be some memory corruption or so.
* replaced deprecated Include / Exclude calls

git-svn-id: trunk@13852 -
2009-10-13 12:05:14 +00:00
ivost
f18a2ab69c * fixed bug in TFPSList.SetCount. Deref was not called when shrinking the list.
git-svn-id: trunk@13851 -
2009-10-12 21:23:38 +00:00
marco
1e7ee7aef4 * Patch from Paul Ishenin, load stringlists with fmdenywrite. (improves sharing behaviour)
git-svn-id: trunk@13803 -
2009-10-04 13:36:43 +00:00
Jonas Maebe
1aa1686778 * fixed varbyref in variant conversion helpers (patch+test by Paul Ishenin,
mantis #14536)

git-svn-id: trunk@13687 -
2009-09-10 16:57:06 +00:00
Jonas Maebe
c2c68ddb8f - removed FPC_NEW_BIGENDIAN_SETS define and if(n)defs
* left old cpu-specific set helper code under ifdef FPC_OLD_BIGENDIAN_SETS
    in case someone wants to write new assembler set helpers (although most
    of them should be optimally generated by the compiler already if
    http://wiki.freepascal.org/FPC_HowToDo#Bit.28field.29_getting.2Fsetting_primitives
    are optimally implemented)

git-svn-id: trunk@13582 -
2009-08-23 08:16:40 +00:00
Jonas Maebe
0eec337a00 - removed SUPPORT_UNALIGNED, FPC_SUPPORTS_UNALIGNED and FPC_UNALIGNED_FIXED
defines and ifdefs (already all defined by 2.2.4)

git-svn-id: trunk@13581 -
2009-08-23 07:51:26 +00:00
michael
a7ed599879 * Patch from martin friebe (bug id 14380) to fix streaming of frames
git-svn-id: trunk@13567 -
2009-08-20 11:29:06 +00:00
florian
a14db25c64 + procedure DivMod(Dividend: Integer; Divisor: integer; var Result, Remainder: integer); and procedure DivMod(Dividend: cardinal; Divisor: cardinal; var Result, Remainder: cardinal);, resolves #14286
+ assembler implementations of DivMod for i386

git-svn-id: trunk@13508 -
2009-08-09 20:47:06 +00:00
marco
2c82c6a747 * several functions are now marked with overload;
* implementation of RandomFrom for some float type
  (Mantis #12662)

git-svn-id: trunk@13490 -
2009-08-04 08:20:13 +00:00
florian
44f588b7ad * fixed nested comment warning
git-svn-id: trunk@13450 -
2009-07-26 12:55:01 +00:00
florian
bc8ccacab8 * TInterfacedPersistent requires that the interface is requested from the owner if an owner is SetActive
* unified coding style

git-svn-id: trunk@13409 -
2009-07-19 09:36:43 +00:00
florian
5d8835861c + unicode functions for sysutils, makes tunistr6.pp compiling
git-svn-id: trunk@13402 -
2009-07-17 14:05:19 +00:00
florian
ee49e8acb6 * SScanf uses StrToFloat to convert the string to a float so it has to use DecimalSeparator to parse the string
* test adapted to use DecimalSeparator to create the test string

git-svn-id: trunk@13399 -
2009-07-16 21:12:45 +00:00
florian
87df99a53d * reverted partially r11598 because it breaks delphi compatibility and e.g. tw3721.pp
git-svn-id: trunk@13398 -
2009-07-16 21:01:27 +00:00
Jonas Maebe
55578e8226 * fixed FloatToDecimal() for inf/nan (mantis #14143, thanks to
Sergei Gorelkin for the test program)

git-svn-id: trunk@13394 -
2009-07-16 13:11:36 +00:00
florian
6dfd5cb5b8 * fix ExtractFileDrive for \\server\share\path\file: it should return \\server\share
* made test easier to debug

git-svn-id: trunk@13392 -
2009-07-15 20:40:34 +00:00
Jonas Maebe
77feb9d45c * fixed setstrprop() for shortstring properties (based on hint by Zawullon,
mantis #14040)

git-svn-id: trunk@13323 -
2009-06-26 11:34:04 +00:00
ivost
91430b6837 * reverted 13297
git-svn-id: trunk@13298 -
2009-06-19 09:03:51 +00:00
ivost
8b7167e538 * revised TComponent class. There was a lot of outdated, bad, maybe also old code. Tested also with Lazarus.
git-svn-id: trunk@13297 -
2009-06-19 00:07:59 +00:00
ivost
da55f04221 * fixed bug in SetAncestor of TComponent
git-svn-id: trunk@13293 -
2009-06-18 22:38:30 +00:00
Jonas Maebe
79e6ed5047 * fixed CenterPoint() function (patch by Alexander S. Klenin, mantis #13972)
git-svn-id: trunk@13274 -
2009-06-14 14:12:09 +00:00
florian
855a65a061 + RandomRange
git-svn-id: trunk@13262 -
2009-06-11 20:43:24 +00:00
Jonas Maebe
ba951580a2 * fixes and cleanups for tbits (patch by Sergei Gorelkin, mantis #13890)
git-svn-id: trunk@13243 -
2009-06-06 14:35:25 +00:00
ivost
91ae3e8788 * added TryStringToGuid function (former StringToGuid is using this now)
git-svn-id: trunk@13237 -
2009-06-05 20:35:12 +00:00
ivost
db429f2d48 * added GUID_NULL constant
git-svn-id: trunk@13236 -
2009-06-05 20:23:38 +00:00
ivost
b5be9e008e * added GuidCase function to intf/guid helper functions
git-svn-id: trunk@13234 -
2009-06-05 14:36:43 +00:00
florian
398b5806b1 * TCollectionItem.Changed checks update counter of collection, resolves #13813
git-svn-id: trunk@13225 -
2009-06-01 16:09:56 +00:00
Jonas Maebe
ee69d00bec - unconditionally enabled {$ifdef PARAOUTFILE}-code (that define was
decomissioned quite a while ago, but this file was forgotten in
    that process)

git-svn-id: trunk@13181 -
2009-05-21 09:57:45 +00:00
ivost
b340822af2 * added FreeObjects property to TFPGObjectList (as known from TObjectList in contnrs)
git-svn-id: trunk@13108 -
2009-05-06 22:50:25 +00:00
Jonas Maebe
8193cd175d * corrected *Between() functions: add epsilon and truncate, rather than
round the results (bug reported on irc)

git-svn-id: trunk@13107 -
2009-05-06 20:35:20 +00:00
ivost
f38c6c609d * implemented TFPGInterfacedObjectList. it's the same as TFPGObjectList but ref counted.
git-svn-id: trunk@13102 -
2009-05-05 12:26:42 +00:00
Jonas Maebe
9ab6e355a3 * Miscellaneous is with two l's...
git-svn-id: trunk@13087 -
2009-05-03 11:48:30 +00:00
Jonas Maebe
2706eeafcf * comment change: Playthingies -> Miscelaneous
git-svn-id: trunk@13086 -
2009-05-03 08:17:02 +00:00
Jonas Maebe
445c842db3 * made ifthen() declaration in strutils Delphi-compatible (removed overloads
that cause various problems, added "overload" directive so it gets
    overloaded next to the routines in the "math" unit) (based on patch
    by Alexander S. Klenin, mantis #13619)
  - removed "inline" from that function because all the reference increasing/
    decreasing in its body mainly cause code bloat and little if any speed
    increase

git-svn-id: trunk@13084 -
2009-05-02 15:50:41 +00:00
yury
80fe51380d * Removed unused private fields TThread.FMethod and TThread.FSynchronizeException.
* Removed all code of TThread.Synchronize() for BeOS, since existing code is copy/paste from win32 code and does not work anyway.

git-svn-id: trunk@13078 -
2009-05-02 12:09:30 +00:00
Jonas Maebe
f6d452c2c0 * remove the RTL's installed signal handlers at the end of the system
unit's initialization code in case we're in a library
  + implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
    UnhookSignal() in the sysutils unit
  * for Kylix compatibility, these routines support operating on
    SIGINT and SIGQUIT as well, although they are not hooked by default
    by FPC. The run time errors/exception codes for these signals are
    resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
    to 234).
  * changed the BSD syscall version of fpsigaction to use pointer
    rather than "var" arguments (compatible with other targets, and
    required to be able to pass nil arguments inside the system unit)
  -> together fixes mantis #12704

git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
d89eedf38d * support varbyref and vararray (the latter if convertable to a single
element of its element type) in TBinaryObjectWriter.WriteVariant
    by letting variantmanager handle their conversion transparently

git-svn-id: trunk@13075 -
2009-05-02 08:28:42 +00:00
Jonas Maebe
8cae53bb18 * fixed errors with parsing negative, >$99 and invalid BCD numbers in
BCDToInt() (patch from Milla, mantis #13512)

git-svn-id: trunk@13052 -
2009-04-27 16:46:42 +00:00
Jonas Maebe
e8edc31a89 * don't insert thousandseparator if it is #0 (mantis #13552, patch by
Jesus Reyes)

git-svn-id: trunk@13028 -
2009-04-23 19:16:49 +00:00
Jonas Maebe
6a813b8e7b * fixed rounding error in DateTimeToUnix (mantis #12894 and #12936)
* fixed errors in Inc*() routines regarding skipping the black
    home in the data-time continuum around 0, and the same for the
    *Between() functions
  + tests, test...

git-svn-id: trunk@12958 -
2009-03-22 18:26:34 +00:00
Jonas Maebe
1c2d2ae481 * fixed SimpleRoundTo() function (mantis #10159)
git-svn-id: trunk@12957 -
2009-03-22 16:29:54 +00:00
Jonas Maebe
6f4637b32a * do not do anything when writing to a t(custom)memorystream if the current
position is negative (patch by Collin Western, mantis #13318)

git-svn-id: trunk@12955 -
2009-03-22 15:53:16 +00:00
joost
51b49d324e * Implemented function ExeSearch
git-svn-id: trunk@12947 -
2009-03-22 10:02:24 +00:00