Commit Graph

835 Commits

Author SHA1 Message Date
marco
0f53f299f1 * fix for oldbugid 4365 new id 6279
closefile no longer under {dollar I-}

git-svn-id: trunk@3937 -
2006-06-25 11:17:18 +00:00
peter
4c065bce45 * move InterLocked functions to system unit
git-svn-id: trunk@3933 -
2006-06-25 09:26:23 +00:00
florian
53cdd50152 * RomanToInt fixed, solves #7060
git-svn-id: trunk@3900 -
2006-06-20 08:00:55 +00:00
michael
85017f4139 + Fixed incMonth so it truncates on the number of days in the target month
git-svn-id: trunk@3864 -
2006-06-13 22:23:25 +00:00
michael
dc0e8428a6 + Fixed rights parameter in TFileStream.Create and FileCreate
git-svn-id: trunk@3862 -
2006-06-13 22:01:49 +00:00
oro06
42bd89095f *fix fileopen (please OS2,EMX maintainers have a look)
git-svn-id: trunk@3858 -
2006-06-13 08:15:35 +00:00
Vincent Snijders
48e7db040e * fixed typo * fixed typo (issue #7042)
git-svn-id: trunk@3849 -
2006-06-12 17:25:04 +00:00
Jonas Maebe
cb58ac7f18 * initise result of SafeLoadLibrary for non-windows
git-svn-id: trunk@3775 -
2006-06-03 13:46:40 +00:00
Tomas Hajny
4d9e404403 * remove GetEnv dependency
git-svn-id: trunk@3729 -
2006-05-28 22:27:27 +00:00
Tomas Hajny
a9b515c0bf * fexpand defines kept in platform specific sysutils.pp
git-svn-id: trunk@3726 -
2006-05-28 21:29:26 +00:00
yury
198a56cc21 * fixed: Message box is not displayed when unhandled exception occurs and SysUtils is used in GUI apps for all Windows targets.
git-svn-id: trunk@3721 -
2006-05-28 20:30:47 +00:00
florian
2a62055580 + added expand defines for all OSes, hopefully no OS forgotten
git-svn-id: trunk@3708 -
2006-05-27 21:30:35 +00:00
florian
02db8f5c84 * fixes Joost's commit for non unix hopefully
git-svn-id: trunk@3690 -
2006-05-27 08:35:56 +00:00
joost
35c5b75792 + Several dateutil-fixes for dates before 1899/12/30
git-svn-id: trunk@3687 -
2006-05-26 20:55:03 +00:00
michael
7c29068ae3 * Patch from Joost van der Sluis to correct negative date-times
git-svn-id: trunk@3635 -
2006-05-23 07:36:51 +00:00
peter
da85b3db8c * fix linux build
git-svn-id: trunk@3626 -
2006-05-22 06:57:41 +00:00
peter
0237088689 * remove dos unit from sysutils
git-svn-id: trunk@3620 -
2006-05-21 20:17:17 +00:00
michael
b9a0fae596 * Fixed bug #6491, fileextdrive
git-svn-id: trunk@3560 -
2006-05-18 12:45:03 +00:00
michael
4d01d98667 + Made validaterename case-insensitive (after bug #5166)
git-svn-id: trunk@3550 -
2006-05-17 06:12:44 +00:00
michael
f1cb336ee0 + FindComponent should be cse insensitive
git-svn-id: trunk@3545 -
2006-05-16 11:14:09 +00:00
oro06
bf6a603d28 *wince fix: SetErrorMode not exist
+wince : ascfun for Ansi func header

git-svn-id: trunk@3490 -
2006-05-13 14:32:11 +00:00
florian
32f4039978 * fixed compilation on non unix
git-svn-id: trunk@3487 -
2006-05-13 09:09:40 +00:00
florian
47fac4ee6e * moved *SSECSR to system unit
* exposed cpu feature detection on i386 from system unit
+ SafeLoadLibrary

git-svn-id: trunk@3481 -
2006-05-11 19:13:54 +00:00
florian
34176d3d9a * fixed bootstrapping with 2.0.x
git-svn-id: trunk@3473 -
2006-05-11 07:36:45 +00:00
florian
0bbbfd23e5 * wince has to reuse also TSystemTime from the Windows unit inside the sysutils unit
git-svn-id: trunk@3472 -
2006-05-10 20:21:56 +00:00
marco
eaad63e82b * fix for 4970
git-svn-id: trunk@3318 -
2006-04-23 09:55:59 +00:00
michael
e9420ae581 * Fix from programo@vp.pl for frexp function, in case X=0 or X=1
git-svn-id: trunk@3310 -
2006-04-21 18:50:26 +00:00
peter
b36e38ead1 * win64 compile fixes
git-svn-id: trunk@3296 -
2006-04-20 11:16:46 +00:00
florian
17d3ebe748 * hopefully now fixed for all platforms
git-svn-id: trunk@3238 -
2006-04-17 07:51:31 +00:00
tom_at_work
c0348fff89 * fixed compilation for 64 bit targets
git-svn-id: trunk@3236 -
2006-04-17 07:40:31 +00:00
florian
474ba9723c * i386-linux building fixed
git-svn-id: trunk@3229 -
2006-04-16 14:16:02 +00:00
florian
4084c4261d + more units for winx64
git-svn-id: trunk@3226 -
2006-04-16 11:37:28 +00:00
micha
ff31761d62 fix datetime from/to timestamp conversion (delphi compat)
git-svn-id: trunk@3201 -
2006-04-13 16:32:07 +00:00
florian
89f8474388 * unified and moved some win32/win64 stuff
+ more units on win64 compile

git-svn-id: trunk@3131 -
2006-04-02 20:52:17 +00:00
marco
d0a755a621 * pinteger removed
git-svn-id: trunk@3092 -
2006-03-31 08:23:43 +00:00
marco
5d4300fd45 * PSysCharset.
git-svn-id: trunk@3052 -
2006-03-27 09:01:14 +00:00
marco
dd063d920d * currentyear (bug 4904)
git-svn-id: trunk@3031 -
2006-03-25 15:07:54 +00:00
Jonas Maebe
77d20627dc * removed duplicate EVariant class from varutils and incorporated
its implementation details in the EVariant class of sysutils
  + added conversions of variant error codes to exception messages
   (together these fix tw4704)

git-svn-id: trunk@3026 -
2006-03-24 22:47:15 +00:00
Jonas Maebe
2c3d8af195 * fixed typo (invalid type case -> invalid type cast)
git-svn-id: trunk@3025 -
2006-03-24 22:19:47 +00:00
marco
51e976769d * set trim functions.
git-svn-id: trunk@3013 -
2006-03-22 20:15:03 +00:00
peter
096113d370 * support setting translations per unit
* store unitname as the first entry in the resourcestring table

git-svn-id: trunk@2987 -
2006-03-20 12:07:29 +00:00
peter
ddfa0bd1dd * use resourcstring table again
git-svn-id: trunk@2979 -
2006-03-19 21:16:32 +00:00
marco
457d44c2c2 * fix for 4419 + removed undocumented trimming.
Probably original programmer used space as separator and then
	this works.

git-svn-id: trunk@2891 -
2006-03-12 19:15:07 +00:00
peter
9d96f32bdc * remove resourcestring tables
git-svn-id: trunk@2835 -
2006-03-10 15:20:35 +00:00
peter
042afa256c * reset lockcount in SafeArrayCreate and SafeArrayCopy, patch by Tomas Stejskal
-This line, and those below, will be ignored--

M    varutils.inc

git-svn-id: trunk@2503 -
2006-02-10 06:50:23 +00:00
Jonas Maebe
7338c03fac + comp and int64 overloads for floattostr(f)
git-svn-id: trunk@2403 -
2006-02-02 10:33:12 +00:00
Jonas Maebe
e9a6b3dc10 * fixed some FloatToStrF and FloatToStr precision problems. Still fails
for some corner cases (e.g. 8.502 as double), but that problem is in
    str_real

git-svn-id: trunk@2390 -
2006-02-01 10:22:52 +00:00
peter
e58e92c4fa * added sumInt
git-svn-id: trunk@2380 -
2006-01-29 19:46:14 +00:00
michael
dcb932d367 + Patch from Michalis Kamburelis to fix hex2dec behaviour in case of error
git-svn-id: trunk@2373 -
2006-01-29 10:28:37 +00:00
michael
cbdda429c5 + Patch from Graeme Geldenhuys to fix ExtractFileDrive
git-svn-id: trunk@2359 -
2006-01-28 18:10:07 +00:00
michael
736b9ec000 + Patch from Graeme Geldenhuys to add delphi compatibility function
git-svn-id: trunk@2358 -
2006-01-28 18:07:23 +00:00
peter
6c905f6266 * added missing varString,varOlestr to ordinals
git-svn-id: trunk@2340 -
2006-01-25 22:05:31 +00:00
peter
6bbf8f4e22 * always write backtracestr for exception address to print also backtrace info for
exceptions generated from the main body

git-svn-id: trunk@2265 -
2006-01-12 08:46:36 +00:00
florian
f60d89cc75 + StrToQWord patch from Vincent Snijders
git-svn-id: trunk@2148 -
2006-01-03 22:15:22 +00:00
marco
51297c3d7b * PosSet(Ex)
git-svn-id: trunk@2076 -
2005-12-29 15:37:19 +00:00
Jonas Maebe
ea3c2fdf46 * fixed used of uninitialized variable in VariantToSingle()
git-svn-id: trunk@2054 -
2005-12-26 15:32:40 +00:00
oro06
c007b1cd90 +arm/wince more fcl units : process, fileinfo
*types.pp : new define Win32orCE added

git-svn-id: trunk@2051 -
2005-12-26 11:06:05 +00:00
peter
9b0c8269bc * remove also 255 limit for ExtractFileExt
git-svn-id: trunk@2033 -
2005-12-23 10:02:21 +00:00
marco
5008bb74b1 * removed 255 char limit in extractfilename
git-svn-id: trunk@2032 -
2005-12-23 09:41:19 +00:00
peter
68e56b9fc7 * write only unique property names in rtti
git-svn-id: trunk@2007 -
2005-12-20 14:44:48 +00:00
peter
6238b1a917 * use NameIndex in GetPropInfos
git-svn-id: trunk@2004 -
2005-12-20 10:35:08 +00:00
Jonas Maebe
5769739834 * fixed floattostr and friends for systems where extended = double
git-svn-id: trunk@1882 -
2005-12-05 14:09:35 +00:00
florian
446c24ed77 * fixed StrToFloat for large constants
git-svn-id: trunk@1817 -
2005-11-24 20:50:40 +00:00
florian
fd2afe913f * AnsiEndsStr fixed
git-svn-id: trunk@1807 -
2005-11-23 19:30:33 +00:00
florian
609a9c0412 * fixed AnsiContainsText
git-svn-id: trunk@1806 -
2005-11-23 19:21:21 +00:00
tom_at_work
9d7ac02696 * fixed tb0488 on unix platforms (missing cwstring uses)
* 64bit big-endian fix of dynamic array handling
* added qword support for %x format specifier of format() functions

git-svn-id: trunk@1773 -
2005-11-16 20:50:38 +00:00
peter
4286b4364c * Mac conversions from Mark de Wever
git-svn-id: trunk@1764 -
2005-11-16 06:38:33 +00:00
Vincent Snijders
353f623f1f removed seek64bit define
git-svn-id: trunk@1704 -
2005-11-09 13:26:22 +00:00
Tomas Hajny
e90a6deebb * Alle -> all
git-svn-id: trunk@1681 -
2005-11-06 19:00:30 +00:00
florian
9efae2700b * more rangecheck fixing
git-svn-id: trunk@1676 -
2005-11-06 09:21:52 +00:00
florian
a636570436 * compile with $R-
git-svn-id: trunk@1675 -
2005-11-06 09:18:35 +00:00
florian
9749238cfe * OrdType isn't valid for Int64 and QWord
git-svn-id: trunk@1644 -
2005-11-04 21:22:00 +00:00
florian
ba22b0b3af + format("%d",[<qword>]); fixes 4489
git-svn-id: trunk@1640 -
2005-11-04 19:01:33 +00:00
tom_at_work
7a1860190b * fixes error introduced in sscanf() when looking for 64 bit unsafe pointer casts
git-svn-id: trunk@1632 -
2005-11-02 19:55:57 +00:00
tom_at_work
653f4b465d * fixed some typecasts of pointers to Longint for 64 bit architectures (Linux and generic parts of the RTL only)
* 64 bit sockets unit fixes

git-svn-id: trunk@1625 -
2005-11-01 22:40:23 +00:00
florian
11336b091d + TInterfaceList implemented
git-svn-id: trunk@1453 -
2005-10-17 21:39:46 +00:00
florian
71dac7c02f + RegisterClassAlias implemenentation from Stefan van den Berg
git-svn-id: trunk@1449 -
2005-10-17 20:56:39 +00:00
Jonas Maebe
f67ffaa7c8 * fixed TextToFloat for platforms where currency = Int64 (webtbs/tw4093)
git-svn-id: trunk@1402 -
2005-10-16 06:28:14 +00:00
tom_at_work
282f33100f * bugfix of webbug 4404
git-svn-id: trunk@1304 -
2005-10-05 21:56:49 +00:00
florian
d4bb99a5fb + runerror 214: bus error/data misaligment
git-svn-id: trunk@1263 -
2005-10-03 08:25:20 +00:00
florian
d629426b67 + system qualifier added
git-svn-id: trunk@1187 -
2005-09-25 14:35:01 +00:00
florian
e0d2eee158 * GenericAnsiStrComp fix from Vincent Snijders
git-svn-id: trunk@1172 -
2005-09-24 09:59:26 +00:00
florian
c7cd9ff06b * TMultiReadExclusiveWriteSynchronizer fixed and moved to SysUtils
git-svn-id: trunk@1164 -
2005-09-23 13:07:11 +00:00
oro06
84cd7d6706 * fixed stream resource unicode issue
git-svn-id: trunk@1160 -
2005-09-23 10:02:01 +00:00
florian
95b995fe27 * fixed resource streams for 64 bit systems
git-svn-id: trunk@1158 -
2005-09-23 09:56:14 +00:00
florian
c94849ddb0 * readded overload directive to lowercase
+ lowercase(<variant>);

git-svn-id: trunk@1156 -
2005-09-22 17:18:28 +00:00
florian
6df53bf057 - removed overload directive from LowerCase, UpperCase hasn't one either
git-svn-id: trunk@1151 -
2005-09-20 21:10:24 +00:00
peter
22a20e15e4 * aligntoptr needs to use unsigned calculations, patch by Thomas
git-svn-id: trunk@1148 -
2005-09-20 13:53:54 +00:00
florian
527a01bc9d + TResourceStream implemented
git-svn-id: trunk@1143 -
2005-09-19 20:15:25 +00:00
florian
b245075bb3 * unix: faSymLink
* unix: TSearchRec.PathOnly

git-svn-id: trunk@1101 -
2005-09-17 20:05:04 +00:00
florian
6bce91adc0 + CurrToStrF
+ ListSeparator

git-svn-id: trunk@1100 -
2005-09-17 19:31:59 +00:00
florian
b1b0ffc1ec * fixed more 64 bit issues (by Vincents Snijders)
git-svn-id: trunk@1092 -
2005-09-16 18:40:17 +00:00
florian
af3b2f28ca * generic AnsiStrComp fixed
git-svn-id: trunk@1057 -
2005-09-06 21:07:16 +00:00
yury
24cf46266d * Added WinCE defines.
git-svn-id: trunk@1035 -
2005-09-02 11:57:16 +00:00
michael
752ba67635 + Added Windows-Compatible GetTempFileName to sysutils
git-svn-id: trunk@1031 -
2005-09-02 09:57:43 +00:00
marco
0f9a1ab006 * delphi compat fields added to syslocale
git-svn-id: trunk@1028 -
2005-09-02 09:30:48 +00:00
florian
2d606f52f3 + added missing inline directives for 2.0.x
git-svn-id: trunk@818 -
2005-08-07 15:17:07 +00:00
florian
494664ae3f + some inline directives added
+ max/min(cardinal,cardinal) removed, causes trouble, see e.g. webtbs/tw3900.pp

git-svn-id: trunk@817 -
2005-08-07 15:10:55 +00:00
florian
39310ff5dd * marked several small "wrapper only" procedures as inline
* fixed some warnings

git-svn-id: trunk@808 -
2005-08-07 08:26:30 +00:00
florian
547c3f92b2 * AnsiReplaceText fixed, fixes 4260
git-svn-id: trunk@807 -
2005-08-07 07:57:27 +00:00
florian
451a7c3366 + GetEnumNameCount by Danny Milosavljevic
git-svn-id: trunk@783 -
2005-08-03 18:54:18 +00:00
michael
42f219cfc4 + Fix for bug #4222 by Rodrigo Robles
git-svn-id: trunk@745 -
2005-07-25 17:11:08 +00:00
florian
9e6c9d4fc7 * sysutils.format: floating point formatting takes care of currency type now
git-svn-id: trunk@736 -
2005-07-24 12:14:18 +00:00
michael
84a4c40a3d + Patch from Joost Van der Sluis to fix DoEncodeTime
git-svn-id: trunk@732 -
2005-07-23 21:13:58 +00:00
florian
bf311fd100 + ExpandUNCFilename for win32 from Klaus Hartnegg
git-svn-id: trunk@715 -
2005-07-20 18:39:21 +00:00
florian
e686da2026 * fixed and removed some missing HASINLINE directives, needs more work
git-svn-id: trunk@637 -
2005-07-17 08:21:17 +00:00
florian
ce08f48926 - from Jakob Klos: removed DefaultTextLineBreakStyle and TTextLineBreakStyle, it's already in the system unit
git-svn-id: trunk@624 -
2005-07-14 10:27:32 +00:00
florian
6ed53e2c70 * Trim removes now all spaces and controll chars
+ Trim* for widestrings

git-svn-id: trunk@618 -
2005-07-13 08:32:41 +00:00
florian
cfcaff7dc9 * fixed mysql date problems using sscanf :]
* better integer parsing in sscanf

git-svn-id: trunk@609 -
2005-07-10 13:43:49 +00:00
florian
4258bee1c5 + char support for sscanf
git-svn-id: trunk@605 -
2005-07-09 22:42:39 +00:00
florian
0d79442d0f + sscanf
git-svn-id: trunk@604 -
2005-07-09 22:34:26 +00:00
Vincent Snijders
a879211175 fixed setting memstream capacity to 0
git-svn-id: trunk@590 -
2005-07-05 21:54:32 +00:00
peter
73e0105080 * use Reallocmem in TStream.Realloc
* prevent setting the capacity < 0, which will give an RTE when
    passed to the heap manager

git-svn-id: trunk@566 -
2005-07-03 13:20:06 +00:00
florian
a440df217b * v.vtype=varString -> double fixed
git-svn-id: trunk@564 -
2005-07-02 16:11:35 +00:00
florian
f5b9130b98 * deallocation of translated resourcestrings
* load heaptrc before objpas

git-svn-id: trunk@549 -
2005-06-30 19:07:45 +00:00
michael
64f1948f3e + Added overloaded stringtoset which starts from typinfo, not propinfo
git-svn-id: trunk@492 -
2005-06-25 17:26:36 +00:00
michael
2ec3e6db01 + Added overloaded settostring which starts from typinfo, not propinfo
git-svn-id: trunk@491 -
2005-06-25 17:22:21 +00:00
florian
13e3102954 * Patch from Vincent Snijders:
* 1. except.patch implements ExceptFrameCount and ExceptFrames
  * 2. arg.patch fixes a bug in the copying of the commandfilename to the arg array. The #0 character was not copied, so the pchar was not properly terminated.

git-svn-id: trunk@461 -
2005-06-21 12:55:45 +00:00
florian
67d640ad13 * some parts of strutils cleaned up, bug #3124 fixed
git-svn-id: trunk@459 -
2005-06-20 20:46:11 +00:00
Jonas Maebe
437f35315c * fixed datetime related routines for unix
git-svn-id: trunk@444 -
2005-06-19 14:49:37 +00:00
florian
90cdc1b6fe * fixed interface rtti, fixes bug #4089
git-svn-id: trunk@422 -
2005-06-15 21:27:51 +00:00
michael
d2d33c03fb + Added missing FileSetDate call
git-svn-id: trunk@403 -
2005-06-14 11:46:31 +00:00
michael
7fb254755d + Optimizations for lower/uppercase functions
git-svn-id: trunk@380 -
2005-06-11 13:14:59 +00:00
florian
64c72bd312 * patch from Joost van der Sluis to remove VIRTUALPASCAL define since VP is officially dead
git-svn-id: trunk@374 -
2005-06-10 17:05:35 +00:00
michael
a775d3d487 + Removed HASCURRENCY VALUEGETMEM VALUEFREEMEM defines
git-svn-id: trunk@293 -
2005-06-09 17:33:22 +00:00
florian
6992fde8fc * patch from Ales to Katona to change some var parameters to out
parameters

git-svn-id: trunk@292 -
2005-06-09 07:42:40 +00:00
michael
21425e303c + Removed HASVARIANT define
git-svn-id: trunk@244 -
2005-06-07 20:48:31 +00:00
michael
8a226bba52 + Removed HASWIDESTRING/HASWIDECHAR defines
git-svn-id: trunk@241 -
2005-06-07 20:42:22 +00:00
michael
23ad0ae1ec + Removed HASINTF and VER1_0 defines
git-svn-id: trunk@239 -
2005-06-07 20:30:03 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
c5b90ed37c * fixed variant array creation and copying on non win32 system
git-svn-id: trunk@170 -
2005-06-01 19:30:17 +00:00
florian
4f30642b4a * fixed StrToDate to throw proper exceptions in case of an error, fixes bug #3913
git-svn-id: trunk@156 -
2005-05-30 20:37:35 +00:00
michael
08c7681c60 + EncodeDate routines raise EConvertError as needed
git-svn-id: trunk@110 -
2005-05-25 21:26:36 +00:00
florian
dfcb5903a9 * fixed TimeStampToMSecs as suggested by Vinzent Hoefler in bug report 3915
git-svn-id: trunk@67 -
2005-05-22 12:25:12 +00:00
michael
180fd52858 + Reworked GUID creation
git-svn-id: trunk@43 -
2005-05-21 10:03:44 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
michael
ffb55c4254 + Removed VER1_0 defines
git-svn-id: trunk@33 -
2005-05-19 21:14:45 +00:00
michael
99658cf4d6 + Implementation of CreateGUID
git-svn-id: trunk@27 -
2005-05-19 17:31:25 +00:00
florian
f949a53da8 * format(%u",[<qword>]); fixed
* made test working

git-svn-id: trunk@13 -
2005-05-17 22:27:53 +00:00
peter
b68af1b0e3 * post 2.0.0 fixes from cvs
git-svn-id: trunk@7 -
2005-05-16 20:59:02 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
michael
30b55c8bee + Added MAX_PATH for Delphi/Kylix compatibility. 2005-05-12 20:30:51 +00:00
michael
b60c5b9cd2 + Fixed bug #3957 2005-05-09 18:35:06 +00:00
florian
207e67cc4d + cycling with 1.0.x fixed, hopefully the last fix of this for ever ;) 2005-05-08 08:03:15 +00:00
florian
bf179526ff + TryStrToDate/Time functions 2005-05-07 10:23:17 +00:00
florian
c36eadddf7 + variants: string -> float/int casts 2005-04-28 09:15:43 +00:00
michael
525e2cf1ff + Added FormatCurr by Uberto Barbini 2005-04-26 16:40:51 +00:00
michael
f30652e048 + Added TypInfo unit constants 2005-04-16 09:25:02 +00:00
michael
686de2c1f8 + Moved constants to rtlconsts and added callbacks for variant support 2005-04-16 09:24:29 +00:00
michael
783376530d + Streaming of subcomponents added by Marc Weustink 2005-04-15 07:21:09 +00:00