Commit Graph

1492 Commits

Author SHA1 Message Date
peter
198aa2e72a * change value to const string to remvoe implicit exception stack:
git-svn-id: trunk@1949 -
2005-12-14 17:23:32 +00:00
Jonas Maebe
9b9dd342c5 * fixed strpos() in case source or target is nil
+ added test for this

git-svn-id: trunk@1907 -
2005-12-09 14:57:10 +00:00
Jonas Maebe
31b173fe85 * always keep 1 free os chunk available in the freelist to avoid
a performance killing corner case where one block is constantly allocated
    and freed and can result in a redividing of an os chunk in small parts
    for each allocation

git-svn-id: trunk@1900 -
2005-12-07 20:01:15 +00:00
Jonas Maebe
2dea0c793f * made the target parameter of SetString an "out" instead of "var" parameter
git-svn-id: trunk@1896 -
2005-12-07 16:06:34 +00:00
daniel
63ea645207 var & const were sometimes lowercased, sometimes uppercased. Put them
in lowercase.

git-svn-id: trunk@1846 -
2005-11-29 23:28:32 +00:00
tom_at_work
67e5a7621a * fixes for successful cycle on 64 bit systems after 64 bit FS changes
git-svn-id: trunk@1794 -
2005-11-20 18:14:23 +00:00
florian
4a6939e354 * made generic basic file handling 64 bit
git-svn-id: trunk@1792 -
2005-11-20 12:23:54 +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
Tomas Hajny
349d7108ce * Check of memory ranges under OS/2 added to HeapTrc
git-svn-id: trunk@1735 -
2005-11-13 19:05:38 +00:00
tom_at_work
1b4b42fdd6 * added CheckInitialStkLen() function which checks whether the given stack size value is valid on the OS when creating a thread, fixing stack checking
git-svn-id: trunk@1722 -
2005-11-11 12:16:08 +00:00
tom_at_work
367df58016 * stack related things (sizes, calculations, etc.) are now 64 bit on 64 bit platforms
* default stack size is now also 32k for Windows (allows the use of stack checking when using threads)

git-svn-id: trunk@1718 -
2005-11-10 17:06:25 +00:00
florian
8b3c634573 * fixed DynArraySetLength
git-svn-id: trunk@1678 -
2005-11-06 17:16:55 +00:00
marco
a9a3c88fed * small but significant typo fixed for ipv6 sockaddr record in BSD style (_WITH_ sinlen)
git-svn-id: trunk@1665 -
2005-11-05 19:49:10 +00:00
florian
370a66a452 * reverted r1651
git-svn-id: trunk@1653 -
2005-11-05 09:54:44 +00:00
florian
a884848684 * ThreadProc needs stdcall or cdecl calling conventions usually
git-svn-id: trunk@1651 -
2005-11-05 00:05:07 +00:00
florian
380d3be22c * started to fix var. array -> dyn. array
git-svn-id: trunk@1626 -
2005-11-01 22:41:25 +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
9e30922547 * fixed previous commit
git-svn-id: trunk@1623 -
2005-11-01 22:13:37 +00:00
florian
7bff61ce29 * patch from Ales Katona to add a stack size parameter to tthread functions
git-svn-id: trunk@1621 -
2005-11-01 22:01:48 +00:00
florian
25ce080225 * BGI font fix from Lowell C. Savage
git-svn-id: trunk@1620 -
2005-11-01 21:56:50 +00:00
florian
c5f82ba6de + (ole)variant<->error type conversion
+ DynArraySetLength
+ DynArrayFromVariant

git-svn-id: trunk@1608 -
2005-10-30 23:12:08 +00:00
florian
2dcefd968f * fixed video unit for windows with sizes requiring scrolling
* prevent potential overflow by changing integer to longint

git-svn-id: trunk@1552 -
2005-10-20 19:30:57 +00:00
peter
ea6dadb7be * make widestrings compatible with COM BSTR, the length is now the number
of bytes allocated instead of the number of widechars

git-svn-id: trunk@1467 -
2005-10-18 09:45:13 +00:00
tom_at_work
4176b71277 * fixed variants unit to make it compile for 64 bit targets
git-svn-id: trunk@1451 -
2005-10-17 21:23:48 +00:00
Jonas Maebe
2cb88de19b * fixed missing digit when printing a double whose significant digits are
all before the floating point on a cpu/fpu supporting maximally double
    precision
  * fixed test in tw1792a for double precision fpu's (they can print one
    digit less for double precision numbers than 80 bit fpu's)

git-svn-id: trunk@1446 -
2005-10-17 20:33:07 +00:00
yury
2332eae403 * prevent endless stack dump if an exception occured during the dump itself.
git-svn-id: trunk@1427 -
2005-10-16 17:17:50 +00:00
florian
d8acc80ae5 * reverted inline patch partly
* improved append_char by avoiding unnecessary unique call

git-svn-id: trunk@1406 -
2005-10-16 11:24:24 +00:00
tom_at_work
701638138b * fixed exception handling for PowerPC64
* math library is now automatically linked on non-x86 platforms when FPC_USE_LIBC is defined
* generic C system function signature adaptions for 64 bit CPUs 

git-svn-id: trunk@1392 -
2005-10-15 21:24:15 +00:00
marco
a2ba7077e9 * some very generic constants added.
git-svn-id: trunk@1388 -
2005-10-15 19:28:21 +00:00
tom_at_work
0b34b01a6d * fixed class messages for PowerPC64, due to a wrong typecast
git-svn-id: trunk@1363 -
2005-10-12 22:28:51 +00:00
peter
9d0851e4a1 * remove comment level 2 warning
git-svn-id: trunk@1355 -
2005-10-11 06:48:32 +00:00
marco
5fbf962637 * small fix for 1735, tw2242 still broken due to complexity.
git-svn-id: trunk@1350 -
2005-10-10 12:09:57 +00:00
marco
411e2359eb * Fixed 2.0.0 compilation
git-svn-id: trunk@1346 -
2005-10-09 21:29:01 +00:00
marco
5c92d88da8 * inlined a few funcs, inlined the non threaded part of inc/declocked. The lock prefixed one
remains a separate proc, as it is slow anyway.

git-svn-id: trunk@1339 -
2005-10-09 10:57:29 +00:00
tom_at_work
f7f0f9c426 * makefile adaption to be able to cycle compiler and RTL on PowerPC64 target
* some fixes for PowerPC64 target in the code generator and the RTL
* stabs generation for PowerPC64 is okay now (untested)

git-svn-id: trunk@1337 -
2005-10-08 15:48:39 +00:00
yury
a6b84b93e1 * another ARM data alignment issue was fixed.
git-svn-id: trunk@1333 -
2005-10-08 13:48:03 +00:00
yury
7ec8589616 * added support for wince in heaptrc.
* fixed alignment for ARM CPU in heaptrc.

git-svn-id: trunk@1314 -
2005-10-07 15:43:54 +00:00
peter
cc38ec676e * add winwidestringalloc boolean, set it to false to use the fpc
heapmanager to allocate widestrings

git-svn-id: trunk@1306 -
2005-10-06 06:28:05 +00:00
peter
f9f75b40e5 * fixed DUMPGROW compile
git-svn-id: trunk@1305 -
2005-10-06 05:57:58 +00:00
tom_at_work
b2e1cf2610 * powerpc64 port now (manually) cycles, most test programs in tests/test are fine too
* fixed bug in ncal.pas which in some circumstances treated the hidden length parameter for open arrays as 32 bit integer

git-svn-id: trunk@1303 -
2005-10-05 21:55:25 +00:00
florian
1b6364ceba * fixed fillchar parameters
git-svn-id: trunk@1257 -
2005-10-02 17:06:06 +00:00
florian
468c2476de * we should zero out the data instead of the pointer
git-svn-id: trunk@1253 -
2005-10-02 10:03:26 +00:00
florian
6bf8d76140 * zero out resource info record
git-svn-id: trunk@1252 -
2005-10-02 09:46:43 +00:00
florian
8cc183c1d1 * resources aren't case sensitive
* fixed installing of default component loading handler

git-svn-id: trunk@1250 -
2005-10-02 09:08:21 +00:00
florian
e864a12528 + loading of components from resources
git-svn-id: trunk@1249 -
2005-10-02 08:10:17 +00:00
florian
3a5895be0f * StringToWideChar fixed
git-svn-id: trunk@1236 -
2005-09-30 08:30:44 +00:00
florian
8e09d48591 - removed a writeln I recently committed by accident
git-svn-id: trunk@1188 -
2005-09-25 14:37:37 +00:00
florian
78f4cb86b0 * more widestring overloads for pos to avoid problems with selection of the correct one
git-svn-id: trunk@1177 -
2005-09-24 16:42:35 +00:00
florian
0b3094fdde * from Thomas Schatzl: changed result type of InstanceSize to PtrInt
* simplified some code
* small methods of tobject are now inlined

git-svn-id: trunk@1170 -
2005-09-24 08:35:43 +00:00
florian
700aacf6a3 + forgot to add some helpers, now type cast helpers for olevariants should be complete
git-svn-id: trunk@1169 -
2005-09-23 16:56:36 +00:00