Vincent Snijders
32fc7668cc
write pointer values using 16 hexadecimal digits on 64 bits platforms
...
git-svn-id: trunk@2293 -
2006-01-15 14:12:42 +00:00
florian
e9b718a0a2
* cleanup
...
git-svn-id: trunk@2282 -
2006-01-14 12:55:26 +00:00
peter
94f2b1d941
* add initialstkptr to get the stackpointer at startup before
...
PASCALMAIN is called so the main body framepointer is seen as
a valid pointer with backtracing
git-svn-id: trunk@2266 -
2006-01-12 09:29:57 +00:00
Jonas Maebe
a67f42a3e7
* also return 0 when reading an unsigned integer at the end of a file
...
git-svn-id: trunk@2156 -
2006-01-04 12:07:21 +00:00
Jonas Maebe
58381ff7b6
* made chararray handling 98% TP-compatible, fixes web bugs 3012
...
and 4080. The compatibility differences are:
a) writing a chararray which is zero-based but not zero-
terminated does not cause a buffer overflow
b) non-zero-based chararrays can also be read
The difference was that previously, all chararrays were treated
as pchars. In TP/Delphi (and now also in FPC), this is only done
for zero-based chararrays. For non-zero-based ones, the entire
contents of the array should always be used (including #0 's).
The default parameters in the system unit for the chararray
helpers are to avoid having to use a define for bootstrapping.
git-svn-id: trunk@2152 -
2006-01-04 10:05:10 +00:00
florian
da18dca277
* graph and ggigraph unit moved to packages/base
...
git-svn-id: trunk@2071 -
2005-12-29 14:36:22 +00:00
Jonas Maebe
640ddd2e26
- removed unused local conflicting type definition
...
git-svn-id: trunk@2056 -
2005-12-26 16:01:13 +00:00
Jonas Maebe
b08eccdbf0
- reverted ansi2wide and wide2ansi changes, because they affect
...
third party sources too much
git-svn-id: trunk@2046 -
2005-12-24 01:40:23 +00:00
Jonas Maebe
5b9f58ef73
* reverted r2037 because of braindead "out" semantics for refcounted
...
types
git-svn-id: trunk@2045 -
2005-12-24 01:06:05 +00:00
Jonas Maebe
9a08cdccf0
* several changes of var parameters into out parameters to avoid
...
useless warnings: code parameter of val(), destination of str(),
destinations of ansi2wide and wide2ansi
git-svn-id: trunk@2041 -
2005-12-23 22:25:26 +00:00
Jonas Maebe
4c3fb9ae00
* frexp has out instead of var parameter
...
git-svn-id: trunk@2040 -
2005-12-23 22:03:21 +00:00
Jonas Maebe
84aab46550
* changed formal "var" paramters of move, movechar0 and fill* into
...
"out" parameters to avoid wrong "uninitialized" warnings
git-svn-id: trunk@2037 -
2005-12-23 20:59:08 +00:00
peter
767291ca5f
* refactor reading and setting of parent classes
...
git-svn-id: trunk@1992 -
2005-12-19 12:24:45 +00:00
peter
9d817056ce
* optimize by removing expensive calculations
...
git-svn-id: trunk@1973 -
2005-12-16 17:19:37 +00:00
florian
398cafb1a0
* fixed cases
...
git-svn-id: trunk@1969 -
2005-12-15 22:55:43 +00:00
florian
da9469c550
* avoid unique call in ansistr_append
...
git-svn-id: trunk@1968 -
2005-12-15 22:55:20 +00:00
florian
e2a4dac215
+ i386 assembler versions of decr_ansistring and unique_ansistring
...
git-svn-id: trunk@1963 -
2005-12-15 19:51:57 +00:00
Jonas Maebe
50ebeaad5e
* fixed fpc_ansistr_append_ansistring() in case it's called to append a
...
string to itself
git-svn-id: trunk@1961 -
2005-12-15 15:22:35 +00:00
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