Commit Graph

7194 Commits

Author SHA1 Message Date
florian
628452f04d + ReplaceDate
git-svn-id: trunk@7794 -
2007-06-24 15:15:53 +00:00
florian
5645a1380c * fixed more windows types
git-svn-id: trunk@7791 -
2007-06-24 13:36:46 +00:00
Jonas Maebe
76c783f0a1 * removed divisions from val() for unsigned types
git-svn-id: trunk@7790 -
2007-06-24 13:04:44 +00:00
tom_at_work
cb3b55b3cf * fix compilation on non-windows platforms
git-svn-id: trunk@7786 -
2007-06-23 19:01:57 +00:00
florian
42f036b66c * unified IStream and ISequentialStream declaration
git-svn-id: trunk@7783 -
2007-06-23 10:00:36 +00:00
micha
a70f5bb51e * fix lock release in heap trace
git-svn-id: trunk@7782 -
2007-06-23 09:35:47 +00:00
florian
30c6b37c8d * fixed largeint declarations
git-svn-id: trunk@7781 -
2007-06-23 09:21:50 +00:00
florian
657ef819e0 * comment fixed
git-svn-id: trunk@7779 -
2007-06-23 09:16:21 +00:00
yury
a60248c027 * removed non existent constants on wince.
git-svn-id: trunk@7775 -
2007-06-22 18:02:26 +00:00
yury
4b6c33ea02 * Added lot of Delphi compatible redefs for wince. Now wince redefs as complete as win32 redefs.
git-svn-id: trunk@7774 -
2007-06-22 18:01:42 +00:00
micha
787f9a44c7 * heap manager: do not try to leave critical section twice, moron
git-svn-id: trunk@7763 -
2007-06-21 20:19:33 +00:00
yury
5b5050a09c * Fixed integer to single conversion for arm-wince. It fixes tw8055.pp test.
git-svn-id: trunk@7757 -
2007-06-21 14:08:58 +00:00
micha
c0fa8fd255 * heap manager: fix thread exit race condition by using single global lock
fix finishing to be freed list in orphaned list context
  fix heaptrace finalization

git-svn-id: trunk@7752 -
2007-06-20 21:10:35 +00:00
michael
a7a0e9a307 * Component name can be empty
git-svn-id: trunk@7737 -
2007-06-20 07:28:14 +00:00
micha
3b7792ead1 * heaptrace: cleanup orphaned lock only in case of threading used
also improve readability of zeroing LSB

git-svn-id: trunk@7726 -
2007-06-18 21:05:32 +00:00
yury
5afc9355f8 * use proper runtime error codes for EIntfCastError and ESafecallException exceptions.
git-svn-id: trunk@7723 -
2007-06-18 17:38:07 +00:00
marco
58e3f8ad0d * more deprecated fixes
git-svn-id: trunk@7718 -
2007-06-17 20:31:08 +00:00
marco
0ef2cb0b02 * fixed deprecated
git-svn-id: trunk@7717 -
2007-06-17 20:29:33 +00:00
Jonas Maebe
d9284963b3 * fix for fpc_copy on 64 bit systems from Florian
git-svn-id: trunk@7713 -
2007-06-17 15:07:52 +00:00
florian
ea97b8b137 * fixed copying of remaining elements
git-svn-id: trunk@7699 -
2007-06-17 09:47:05 +00:00
florian
2c4aeefbf4 * fixed copying of automated records
git-svn-id: trunk@7696 -
2007-06-16 21:44:55 +00:00
florian
37bd49692e * proper fix for 8481 et. al.
git-svn-id: trunk@7691 -
2007-06-16 19:03:53 +00:00
florian
fb1c8e5b1a + {$PACKSET 1} for windows units to improve delphi compatibility
git-svn-id: trunk@7686 -
2007-06-16 16:57:31 +00:00
florian
44037b565f + some missing BM_* and WM_* constants added
git-svn-id: trunk@7685 -
2007-06-16 16:57:00 +00:00
Jonas Maebe
0a121bda8e * removed svn:executable property
git-svn-id: trunk@7680 -
2007-06-16 10:02:22 +00:00
florian
87f87bce0b * some dummy implementations of delphi compatibility stuff
git-svn-id: trunk@7673 -
2007-06-15 18:57:05 +00:00
Jonas Maebe
7b47ebff6b * removed Darwin/Solaris-specific code and fixed all issues by calling
setlocale(LC_ALL,'') per POSIX, which initialises the langinfo stuff
    based on the environment variables (some OS'es do that automatically,
    but at least Darwin and Solaris don't)

git-svn-id: trunk@7672 -
2007-06-15 18:51:06 +00:00
daniel
b293a9bdd4 - Revert patch by Alex Raine.
git-svn-id: trunk@7669 -
2007-06-15 14:13:26 +00:00
daniel
14f2edc56e + Assembler implementation of min/max by Alex Rayne.
git-svn-id: trunk@7668 -
2007-06-15 13:59:20 +00:00
florian
9e257a5289 + new definitions
git-svn-id: trunk@7665 -
2007-06-14 21:37:30 +00:00
micha
3e97c6b324 * fix cwstring compilation: remove extra "}"
git-svn-id: trunk@7661 -
2007-06-14 14:45:19 +00:00
Jonas Maebe
6111e3e2b9 * also force utf-8 on Solaris, nl_langinfo(CODESET) doesn't work there
either and utf-8 is also its default "international" encoding

git-svn-id: trunk@7660 -
2007-06-14 10:56:29 +00:00
Jonas Maebe
0a10f521f6 * added {$inline on} directive to fix compilation with 2.0.4
git-svn-id: trunk@7658 -
2007-06-14 07:25:47 +00:00
florian
631187d30d + some delphi compatibility stuff added
git-svn-id: trunk@7652 -
2007-06-13 20:44:24 +00:00
micha
c226f6fd44 * heap manager: handle freeing of block owned by exited thread
* heap trace: ditto

git-svn-id: trunk@7649 -
2007-06-13 20:27:42 +00:00
Jonas Maebe
ceaaa0e552 * fixed writing of widestrings
git-svn-id: trunk@7645 -
2007-06-13 13:00:25 +00:00
Jonas Maebe
8523bdc831 * force utf-8 for darwin
git-svn-id: trunk@7644 -
2007-06-13 12:59:39 +00:00
joost
4d9c3244fe * If a variant contains a datetime value and is converted to a string, it should return a string in a date/time format. (+test)
git-svn-id: trunk@7643 -
2007-06-13 12:24:16 +00:00
marco
ebea7ac320 * fix for 9029
git-svn-id: trunk@7627 -
2007-06-10 18:23:32 +00:00
Jonas Maebe
172f85c8c3 * fixed important typo in better comments :)
git-svn-id: trunk@7618 -
2007-06-09 20:37:26 +00:00
Jonas Maebe
e93d612f4a * fixed FFreeOnTerminate handing in destructor + better comments
git-svn-id: trunk@7617 -
2007-06-09 20:36:35 +00:00
Jonas Maebe
20b99dade3 - reverted r7600, see additional comments in mantis #9027
git-svn-id: trunk@7606 -
2007-06-09 17:14:28 +00:00
marco
b846f2596e * Fix for 9220 for socket2text stuff too
git-svn-id: trunk@7604 -
2007-06-09 14:24:13 +00:00
daniel
bce3ea4373 + Added types UnsignedByte,UnsignedWord,UnsignedLong, suggestion by
Adriaan van Os, (Mantis #9030)

git-svn-id: trunk@7601 -
2007-06-09 07:37:03 +00:00
Jonas Maebe
5a8679131f + support for new/dispose with extra size parameter in macpas mode
(mantis #9027)

git-svn-id: trunk@7600 -
2007-06-08 18:02:31 +00:00
Jonas Maebe
4dd3be0e5a * return thread function result via pthread_exit() from CBeginThread
(Vinzent Hoefler)
  * simplified CWaitForThreadTerminate based on comments from Vinzent
    Hoefler
  * fixed resource leaks where in some cases a pthread would not be
    reaped based on comments from Vinzent Hoefler (resolves #9016)

git-svn-id: trunk@7588 -
2007-06-06 15:18:48 +00:00
pierre
e3164530b8 * use __get_errno_ptr to implement GetLastOSError
git-svn-id: trunk@7584 -
2007-06-05 09:36:05 +00:00
pierre
f932ccbc59 * use libc unit GetLastError to implement GetLastOSError
git-svn-id: trunk@7582 -
2007-06-05 09:22:40 +00:00
yury
6fca51ea11 * fixed declaration of TWIN32FINDDATA.
git-svn-id: trunk@7572 -
2007-06-03 23:01:49 +00:00
marco
a123ec0d14 * More deprecated.
git-svn-id: trunk@7566 -
2007-06-03 18:55:36 +00:00
Jonas Maebe
f32621610f * fixed sse detection
git-svn-id: trunk@7554 -
2007-06-02 19:58:18 +00:00
florian
80d55022e9 * tried to fix SSE OS support detection
git-svn-id: trunk@7553 -
2007-06-02 19:26:06 +00:00
Jonas Maebe
526a79a3c6 * disable thread suspension from another thread under *nix, see added
comments in cthreads.pp why

git-svn-id: trunk@7551 -
2007-06-02 11:39:59 +00:00
micha
f3a22cbab4 * simplify/remove some code
git-svn-id: trunk@7533 -
2007-05-30 19:05:07 +00:00
yury
0c6fb09094 * fixed compilation for wince.
git-svn-id: trunk@7517 -
2007-05-29 17:03:03 +00:00
Jonas Maebe
480af93606 * fixed several range check errors inside variant helpers in case the
rtl is compiled with range checking on (Delphi doesn't give range
    errors there either)

git-svn-id: trunk@7513 -
2007-05-29 14:09:24 +00:00
florian
a8062fafe7 * valgrind safe primitive move implementation
git-svn-id: trunk@7503 -
2007-05-28 18:21:44 +00:00
peter
48fa078f15 * simplified and optimzied check for eol
git-svn-id: trunk@7502 -
2007-05-28 17:39:53 +00:00
florian
041ff166cc * fixed arm compilation
git-svn-id: trunk@7499 -
2007-05-28 16:04:43 +00:00
micha
eaa598094e * heap manager: do not access chunk after last one
git-svn-id: trunk@7497 -
2007-05-28 15:06:19 +00:00
peter
9abb852d70 * fix incompatiblity in signess between 64 and 32, make tthreadid=ptruint
git-svn-id: trunk@7496 -
2007-05-28 14:25:59 +00:00
micha
0248d2472d * heap manager: fix os chunk list nonsense
fix usage statistics for variable sized chunks
    fix var chunks free space fragmentation

git-svn-id: trunk@7491 -
2007-05-27 19:04:02 +00:00
marco
08d10efb9f * now also fixes div hz with hz=0 for Linux, and reenables it for FreeBSD. Still needs phys console check though
git-svn-id: trunk@7489 -
2007-05-27 12:00:55 +00:00
Jonas Maebe
d1f7be8c7b * disabled sound/nosound for non-Linux, as the used ioctl is
Linux-specific (and at least under Mac OS X, there seems to be
    no way to play sound without going via the Carbon/Quicktime/...
    frameworks)

git-svn-id: trunk@7488 -
2007-05-27 11:11:13 +00:00
marco
eaaefc0f64 * deprecated here and there even though compiler doesn't seem to show
git-svn-id: trunk@7481 -
2007-05-26 13:56:21 +00:00
Tomas Hajny
a2bae0fb21 * synchronized with SocketError change
git-svn-id: trunk@7480 -
2007-05-26 12:39:16 +00:00
Jonas Maebe
cb23a80178 * fixed fpu rte code for invalid, inexact and "subscript out of range"
errors (216 -> 207) (same as for sparc/solaris in r7453)

git-svn-id: trunk@7477 -
2007-05-25 19:22:28 +00:00
Jonas Maebe
a2dbc4d272 * fixed multi-thread case of FPC_SYSCALL3 (all others were already correct)
git-svn-id: trunk@7476 -
2007-05-25 19:02:19 +00:00
Jonas Maebe
f8b40e90dc * exit -> exit_group to exit so unterminated threads are killed too
git-svn-id: trunk@7474 -
2007-05-25 17:48:24 +00:00
Jonas Maebe
cc03eacd2a * fixed program exitcode after change of operatingsystem_result from
word to longint

git-svn-id: trunk@7473 -
2007-05-25 13:07:23 +00:00
Jonas Maebe
79e84ba129 * fixed add_tail functionality for cpus which require natural
alignment

git-svn-id: trunk@7471 -
2007-05-25 12:02:08 +00:00
Jonas Maebe
4f95f742f4 * fixed get_caller_frame() and get_caller_addr() for nil addresses
git-svn-id: trunk@7470 -
2007-05-25 12:01:28 +00:00
micha
4a1f828c98 * allow shrinking ansistrings if at least half of its memory is saved
git-svn-id: trunk@7468 -
2007-05-25 09:43:36 +00:00
micha
f9d2ea7e3a * heap manager: fix shrinking var sized chunks to very small sizes < sizeof(tmemchunk_var)
was no problem previously due to sizeof(tmemchunk_var) <= blocksize

git-svn-id: trunk@7464 -
2007-05-25 07:05:33 +00:00
Jonas Maebe
e8423154ec * fixed Do_IsDevice for sparc (TCGETS constant; the entire termios.inc
also needs to be fixed for sparc)

git-svn-id: trunk@7461 -
2007-05-24 22:58:12 +00:00
Jonas Maebe
b9a97ae891 * another sparc/linux fix for stat (record must NOT be packed, or
variables of that type will not be aligned properly)

git-svn-id: trunk@7460 -
2007-05-24 22:50:33 +00:00
Jonas Maebe
399ab249d6 * initialise/finalise critical section
git-svn-id: trunk@7455 -
2007-05-24 12:24:45 +00:00
Jonas Maebe
eac195fc51 * fixed fpu rte code for invalid, inexact and "subscript out of range"
errors (216 -> 207)

git-svn-id: trunk@7453 -
2007-05-24 12:02:23 +00:00
Jonas Maebe
7e3b792713 * fixed for solaris:
* iconv is in libc for solaris
    * use official names for unicode encodings (UTF-16BE/UTF-16LE instead
      of unofficial UNICODEBIG/UNICODELITTLE aliases, which are not supported
      by solaris' iconv)

git-svn-id: trunk@7452 -
2007-05-24 11:38:07 +00:00
yury
60191d06d0 * added LVM_GETHEADER message.
git-svn-id: trunk@7447 -
2007-05-24 08:08:58 +00:00
peter
dd3fdac68e * beos support from Olivier Coursiere
git-svn-id: trunk@7443 -
2007-05-24 07:16:17 +00:00
peter
6a51ea7eac * obsolete files
git-svn-id: trunk@7440 -
2007-05-24 07:13:15 +00:00
florian
271c970e9d * rtl part of BeOS patch from Olivier Coursiere
git-svn-id: trunk@7438 -
2007-05-24 06:52:50 +00:00
marco
7c66dc722f * virtualprotect overload compat
git-svn-id: trunk@7433 -
2007-05-23 17:41:14 +00:00
marco
aef34ef03f * a few extra MEM_ constants
git-svn-id: trunk@7432 -
2007-05-23 17:39:15 +00:00
Jonas Maebe
3ab9ace8c4 * implement CThreadSwitch using sched_yield()
git-svn-id: trunk@7429 -
2007-05-23 13:38:20 +00:00
micha
e989730f34 * initialize/finalize critical sections in heaptrace properly
git-svn-id: trunk@7419 -
2007-05-22 15:34:46 +00:00
micha
9f11556f10 * flush output after heap debug writeln at exit
git-svn-id: trunk@7413 -
2007-05-21 20:38:29 +00:00
micha
6c85fcb157 heap manager: initialize critical sections properly
git-svn-id: trunk@7412 -
2007-05-21 17:08:28 +00:00
peter
6a345d7e76 * fixed compile
git-svn-id: trunk@7408 -
2007-05-21 06:18:42 +00:00
micha
7f2a257102 + heap manager now per thread, reduce heap lock contention
+ heap threading test

git-svn-id: trunk@7407 -
2007-05-20 20:58:12 +00:00
Jonas Maebe
5cf2511283 - removed/disabled all normalset code (except for bootstrapping), since
it's no longer needed

git-svn-id: trunk@7403 -
2007-05-20 11:19:36 +00:00
Jonas Maebe
7d44ca0113 * fixed unportable soft float mask handling which broke on big endian
systems after yesterday's set changes

git-svn-id: trunk@7402 -
2007-05-20 10:25:48 +00:00
Jonas Maebe
ba67b8566b * fixed some varset helpers broken in the previous commit
git-svn-id: trunk@7399 -
2007-05-19 20:15:55 +00:00
Jonas Maebe
a0b57eddb5 * new internal set format for big endian systems. Advantages:
* varsets ({$packset x}) are now supported on big endian targets
    * gdb now displays sets properly on big endian systems
    * cleanup of generic set code (in, include/exclude, helpers), all
      based on "bitpacked array[] of 0..1" now
  * there are no helpers available yet to convert sets from the old to
    the new format, because the set format will change again slightly
    in the near future (so that e.g. a set of 24..31 will be stored in
    1 byte), and creating two classes of set conversion helpers would
    confuse things (i.e., it's not recommended to use trunk currently for
    programs  which load sets stored to disk by big endian programs compiled
    by previous FPC versions)
  * cross-endian compiling has been tested and still works, but one case
    is not supported: compiling a compiler for a different endianess
    using a starting compiler from before the current revision (so first
    cycle natively, and then use the newly created compiler to create a
    cross-compiler)

git-svn-id: trunk@7395 -
2007-05-19 17:15:15 +00:00
yury
abd6b9c3f1 * Replaced TVI_XXX functions to constants.
git-svn-id: trunk@7394 -
2007-05-18 20:59:48 +00:00
yury
1c99143326 * patch from Sergei Gorelkin (Mantis #8897). Various symbols that were #define's in original C headers were converted from functions to constants.
git-svn-id: trunk@7393 -
2007-05-18 20:45:04 +00:00
Jonas Maebe
3bc08cafae * -dFPC_USE_LIBC fix
git-svn-id: trunk@7363 -
2007-05-16 15:13:36 +00:00
pierre
79f314cf96 Put every {$smarlink on} inside an {$ifndef NO_SMART_link} condition.
This allows to do a 'make build' for win32 with nasm,
  using OPT="-Anasmwin32 -XS -dNO_SMART_LINK"

git-svn-id: trunk@7357 -
2007-05-16 11:26:06 +00:00
sekelsenmat
a3703321f3 Improved Symbian RTL. Separated os include files from SDK include files and added more bindings
git-svn-id: trunk@7349 -
2007-05-15 18:39:29 +00:00
pierre
11923e9786 + code to debug LFN FindFirst/findClose
git-svn-id: trunk@7344 -
2007-05-15 13:37:19 +00:00
peter
5c914393d5 * added uint64 alias
git-svn-id: trunk@7338 -
2007-05-15 05:41:02 +00:00
micha
6ec55d2e74 * fix heap mutex deadlock in case of runtime error within heap management (needs recursive heap mutex)
git-svn-id: trunk@7337 -
2007-05-14 21:09:16 +00:00
Jonas Maebe
c80d4225ca + support for ISO Extended Pascal ReadStr() and WriteStr() routines
git-svn-id: trunk@7333 -
2007-05-14 17:34:01 +00:00
Tomas Hajny
615b192c51 * correction to previous commit
git-svn-id: trunk@7332 -
2007-05-13 20:50:51 +00:00
Tomas Hajny
f8e5a62f61 * synchronized with SocketError change
git-svn-id: trunk@7331 -
2007-05-13 20:47:01 +00:00
Tomas Hajny
f55a720b25 * OS/2 implementation synchronized with SocketError change
git-svn-id: trunk@7330 -
2007-05-13 20:34:25 +00:00
Almindor
f83568d897 * fix INVALID_SOCKET for other platforms too
git-svn-id: trunk@7329 -
2007-05-13 19:20:17 +00:00
Almindor
a52a63178b * fix INVALID_SOCKET constant (needs to be OS specific, it is UNSIGNED in windows)
git-svn-id: trunk@7328 -
2007-05-13 19:13:43 +00:00
marco
8991b8f365 * new socketerror scheme. OS/2 and netware are now broken and still must be done. (merge me and all previous socket related commits please)
git-svn-id: trunk@7327 -
2007-05-13 18:30:24 +00:00
micha
bb9de8f193 * SHOW_MEM_USAGE define to always show maximum heap size used/allocated, independent of DUMP_MEM_USAGE
git-svn-id: trunk@7324 -
2007-05-13 12:34:16 +00:00
micha
4579c242df * heap manager: look for better matching variable block size, with upperbound search
git-svn-id: trunk@7320 -
2007-05-12 20:52:08 +00:00
micha
aa951460a5 + heap manager size statistics
git-svn-id: trunk@7319 -
2007-05-12 20:50:33 +00:00
Almindor
fa232dd4ac * make it work on non-unix too...
git-svn-id: trunk@7315 -
2007-05-12 10:30:45 +00:00
Almindor
2086107cf3 * fix missing socketerror discrepancy
git-svn-id: trunk@7314 -
2007-05-12 10:24:58 +00:00
marco
11bda8f5f2 * fpexeclpe
git-svn-id: trunk@7309 -
2007-05-11 15:08:38 +00:00
marco
31e0776694 * socketerror mods for windows.
git-svn-id: trunk@7307 -
2007-05-11 00:08:01 +00:00
yury
380a8e398b * patch and fix from Patrick Chevalley.
git-svn-id: trunk@7306 -
2007-05-10 20:55:27 +00:00
marco
f74b832272 * socketerror for Unix now fpgeterrno.
git-svn-id: trunk@7304 -
2007-05-10 10:58:26 +00:00
florian
4e375e0c38 * set ConsoleStartupMode in all startup codes
git-svn-id: trunk@7274 -
2007-05-05 15:33:34 +00:00
marco
e074f9383c * typo corrected
git-svn-id: trunk@7271 -
2007-05-05 10:19:44 +00:00
marco
699e231223 * more cleanup of unit unix (merge)
git-svn-id: trunk@7269 -
2007-05-04 22:39:28 +00:00
marco
cb8e361672 * removed restoration ofa compability that never existed
git-svn-id: trunk@7268 -
2007-05-04 22:09:02 +00:00
marco
2214c11330 * removed restoration ofa compability that never existed
git-svn-id: trunk@7267 -
2007-05-04 22:06:12 +00:00
marco
fd6f6cf7e9 * fix for 8801. mmap constants inconsistancy. Old constants are aliased for compat. non portable moved to OS specific units (merge)
git-svn-id: trunk@7265 -
2007-05-04 21:23:02 +00:00
marco
b8c21889f9 * bug #8807, PRIO_ constants not aliased to baseunix _merge_
git-svn-id: trunk@7264 -
2007-05-04 19:16:11 +00:00
mazen
0f73d54ac8 + Added ATT assmebler mode directive to override any default in fpc.cfg. Otherwise we need to override it in makefile.
git-svn-id: trunk@7258 -
2007-05-04 10:59:30 +00:00
Jonas Maebe
065b9c39f7 * fixed compilation
git-svn-id: trunk@7256 -
2007-05-04 08:26:38 +00:00
daniel
41d171bda0 - Comment out duplicate entries (F11/F12 <--> Shift+F1/F2)
git-svn-id: trunk@7254 -
2007-05-03 22:54:12 +00:00
yury
5fc31d96e0 * replaced "var R:RECT" to "const R:RECT" in WinAPI functions parameters according to MS PSDK.
git-svn-id: trunk@7248 -
2007-05-02 22:03:01 +00:00
yury
7110ecdf7e * replaced "var R:RECT" to "const R:RECT" in WinAPI functions parameters according to MS PSDK.
git-svn-id: trunk@7247 -
2007-05-02 22:01:26 +00:00
micha
09a60a4019 * tiny optimization to heap manager: implement freeoslist as a fifo (instead of lifo) which should allow more os chunks to keep their fixed size formatting in case of diverse fixed size usage
git-svn-id: trunk@7237 -
2007-05-02 05:20:44 +00:00
micha
9c727d1762 * tiny optimization to heap manager, avoid repeated removing/readding to freeoslist overhead
git-svn-id: trunk@7236 -
2007-05-01 21:04:18 +00:00
yury
f7a24e7e29 * some updates in wince windows unit.
git-svn-id: trunk@7234 -
2007-05-01 18:33:16 +00:00
florian
d78071f8b2 * ensure that softfloat and libgcc float never use rfs/wfs
git-svn-id: trunk@7229 -
2007-05-01 11:47:19 +00:00
micha
e30a47723b * heap manager micro optimizations
git-svn-id: trunk@7219 -
2007-04-30 20:23:46 +00:00
florian
91cdcff845 * the cygwin1.dll messes with the console mode so store and restore the console mode if necessary
git-svn-id: trunk@7218 -
2007-04-30 20:02:36 +00:00
micha
63c49a1555 * fix performance regression in binary-trees benchmark
git-svn-id: trunk@7207 -
2007-04-30 15:29:07 +00:00
Vincent Snijders
41962b8bfb * fixed NMHDR for win64
git-svn-id: trunk@7204 -
2007-04-30 13:53:28 +00:00
micha
9bdde01a99 * avoid usage of freelists_free_chunk boolean, while still prevent repeated fixed size conversion overhead; should reduce memory usage in some cases
git-svn-id: trunk@7203 -
2007-04-30 12:52:28 +00:00
marco
136fa69943 * deprecated
git-svn-id: trunk@7200 -
2007-04-29 22:11:51 +00:00
marco
4ba29cdbe1 * first set of deprecated tags.
git-svn-id: trunk@7199 -
2007-04-29 22:08:18 +00:00
sekelsenmat
f19d931ee0 Improved symbian bindings and rtl. Now you can pass your string to the InfoPrint function, and the exit code is controled by the pascal software.
git-svn-id: trunk@7178 -
2007-04-28 05:56:29 +00:00
pierre
986dea1cfc * reject 0x#0 and variations in val function
git-svn-id: trunk@7159 -
2007-04-23 07:43:51 +00:00
sekelsenmat
812ca1e7a7 Improved Symbian OS support. Added c bindings. Simple softwares for the emulator now work
git-svn-id: trunk@7157 -
2007-04-23 05:33:02 +00:00
marco
c2715f6aaa * added cvartypetoelementinfo struct/const. (mergeme)
git-svn-id: trunk@7152 -
2007-04-22 09:50:50 +00:00
florian
c29455b111 * handle rtti for sets with a size of 1 and 2 properly, resolves #8660
git-svn-id: trunk@7125 -
2007-04-17 20:34:58 +00:00
florian
c6fb0d4cab * made second parameter of inverserect const, resolves #8705
git-svn-id: trunk@7124 -
2007-04-17 19:47:00 +00:00
marco
f458fda7e9 * removed 1.0.x posix include dir
git-svn-id: trunk@7092 -
2007-04-12 14:24:49 +00:00
pierre
9137533864 Patch from Vincent Snijders, sent to fpc-devel
add the same sanity check for the frame pointer
  in TraceReAllocMem as already is in TraceGetMem.

git-svn-id: trunk@7086 -
2007-04-10 22:14:47 +00:00
marco
96ac89f6d5 * 64-bit FreeBSD port files
git-svn-id: trunk@7082 -
2007-04-09 09:09:01 +00:00
florian
572608a64f * fixed ipc for 32 bit systems
git-svn-id: trunk@7073 -
2007-04-07 18:42:01 +00:00
florian
d90bc77a54 * fixed several type declarations
git-svn-id: trunk@7071 -
2007-04-07 18:23:03 +00:00
florian
0c889207ca * fixed ipc syscalls and data structures for x86-64, resolves #8616
git-svn-id: trunk@7070 -
2007-04-07 18:00:05 +00:00
florian
08e5d21da8 + keypressed for windows, resolves #8637
git-svn-id: trunk@7064 -
2007-04-06 20:38:24 +00:00
florian
d7da24aae2 * fixed another bloody stat record issue
git-svn-id: trunk@7060 -
2007-04-05 09:38:06 +00:00
florian
ef5c7a595d + more symbian stuff from Felipe Monteiro de Carvalho
git-svn-id: trunk@7057 -
2007-04-03 15:46:43 +00:00
florian
2894267806 * fixed profiler startup code to link again, resolves #8551
git-svn-id: trunk@7053 -
2007-04-01 16:20:01 +00:00
florian
8d371e3f97 * made RT_* simple constants, fixes #8584
git-svn-id: trunk@7052 -
2007-04-01 15:39:45 +00:00
Tomas Hajny
7668853b15 * missing ctypes dependency for initc added
git-svn-id: trunk@7047 -
2007-04-01 10:25:20 +00:00
Tomas Hajny
ed22287ae2 - removed duplicated type pointer definitions
git-svn-id: trunk@7046 -
2007-04-01 10:22:20 +00:00
Almindor
02702d199f * fix typo in ESock[s]errors
git-svn-id: trunk@7030 -
2007-03-29 20:51:10 +00:00
Tomas Hajny
3975ac2a52 + socket error codes
git-svn-id: trunk@7024 -
2007-03-29 20:31:06 +00:00
Almindor
ed8e6b71e3 * add common socket error constants to all platforms/socket.pp
git-svn-id: trunk@7022 -
2007-03-29 19:29:04 +00:00
pierre
44c567cf46 * fix memory corruption in Setup_arguments
git-svn-id: trunk@7012 -
2007-03-27 19:56:58 +00:00
florian
c4ed4ed7c1 * fix gprof support for win32
git-svn-id: trunk@7003 -
2007-03-25 20:26:59 +00:00
micha
3a1b633325 + revive generics based tfplist/tstringlist implementation for generics testing; build with FPC_TESTGENERICS
git-svn-id: trunk@7001 -
2007-03-25 19:19:04 +00:00
daniel
5acd85f447 * Revert 6964
git-svn-id: trunk@7000 -
2007-03-25 17:55:47 +00:00
florian
edebd84426 * fixed arm compilation
git-svn-id: trunk@6993 -
2007-03-25 10:57:17 +00:00
Almindor
c626740043 * adds support for sysenter syscall style for i386 on 2.6 kernels
git-svn-id: trunk@6992 -
2007-03-25 10:06:23 +00:00
michael
79b572ccae * Fixed bug #8187
git-svn-id: trunk@6990 -
2007-03-24 23:36:35 +00:00
michael
74cbe82e3f * Fixed TimeToStr and DateTimeToStr so they are delphi compatible
git-svn-id: trunk@6986 -
2007-03-24 22:43:02 +00:00
michael
f60fbbb01b * Removed inttostr, isvalidident so sysutils versions are used.
git-svn-id: trunk@6984 -
2007-03-24 22:11:03 +00:00
michael
3399c88af7 * More typo fixes
git-svn-id: trunk@6981 -
2007-03-24 21:35:08 +00:00
marco
0dc221be8f * initial version copied from x86
git-svn-id: trunk@6980 -
2007-03-24 21:33:01 +00:00
marco
793ef9fdf1 * little fixes in prep of x86_64 port.
git-svn-id: trunk@6979 -
2007-03-24 21:32:16 +00:00
michael
c8ea0b0344 * Fixed compilation
git-svn-id: trunk@6978 -
2007-03-24 21:28:49 +00:00
Jonas Maebe
673d02c6b8 * re-added darwin/ppc64 support (please use up-to-date fpcmake)
git-svn-id: trunk@6973 -
2007-03-24 17:26:10 +00:00
mazen
57696aa274 * Build unixutil package for all Linux platforms instead of only Linux/i386.
git-svn-id: trunk@6972 -
2007-03-24 14:06:30 +00:00
Jonas Maebe
89be4f6d07 + added declarations for Apple-specific socket options
* fixed up some whitespace

git-svn-id: trunk@6971 -
2007-03-24 12:31:52 +00:00
daniel
82b973937d * Change padding to 2 bytes.
git-svn-id: trunk@6968 -
2007-03-24 07:56:39 +00:00
daniel
3a7266a462 * Handle FPC_USE_LIBC case for Sparc too.
git-svn-id: trunk@6967 -
2007-03-23 23:30:18 +00:00
daniel
084a78fdd3 * Make sparc/linux stat structure backward compatible too.
git-svn-id: trunk@6966 -
2007-03-23 23:24:12 +00:00
daniel
ae15527637 * Make ARM stat structure backwards compatible too.
git-svn-id: trunk@6965 -
2007-03-23 23:10:09 +00:00
daniel
8127fb7a05 * Switch to classic field names to prevent further messing with compatibility.
git-svn-id: trunk@6964 -
2007-03-23 22:35:12 +00:00
daniel
d030103742 + Restore "stat" data structure in backward compatible state
git-svn-id: trunk@6963 -
2007-03-23 22:23:24 +00:00
daniel
59a972ec9c * Change dd_nextoff to cardinal to prevent upscaling of calculations to 64-bit.
git-svn-id: trunk@6962 -
2007-03-23 15:53:04 +00:00
daniel
5da5440e12 * Ptrint considered harmfull bug no 54689826, change to ptruint.
git-svn-id: trunk@6961 -
2007-03-23 15:38:28 +00:00
michael
25a29c1159 * Undid revision 6462
git-svn-id: trunk@6955 -
2007-03-22 18:43:14 +00:00
ivost
de36c38282 * fixed bug in linux.pp / user_desc record
git-svn-id: trunk@6949 -
2007-03-21 20:56:57 +00:00
florian
605e82489a * reset fpu on win64 as well, certain operations like ln use it
git-svn-id: trunk@6920 -
2007-03-18 20:25:58 +00:00
Jonas Maebe
9cec910eb9 * changed *string_to_*chararray helpers from functions into procedures
because on win64 the location of a function result can depend on its
    size (so some chararrays had to be returned in registers and others
    by reference, which means it's impossible to have a generic function
    declaration which works in all cases) (mantis #8533)
  * pad constant string assignments to chararrays with #0 up to the
    length of the chararray for 2.0.x compatibility (fixes
    tests/test/tarray3)

git-svn-id: trunk@6915 -
2007-03-18 12:20:01 +00:00
florian
2d0c27e80d * sparc uses softfloat routines so softfloat exception masking needs to be set properly
git-svn-id: trunk@6888 -
2007-03-16 20:04:39 +00:00
Jonas Maebe
c7f77296a9 + brotl, brotr and bnot functions for macpas mode + tests
git-svn-id: trunk@6881 -
2007-03-16 16:01:26 +00:00
Károly Balogh
8e7c440790 + added keymap.library interface unit, which will be required by the updated keyboard unit
git-svn-id: trunk@6873 -
2007-03-15 18:01:49 +00:00
Jonas Maebe
6eb320506b * fixed range error in incmonth()
git-svn-id: trunk@6858 -
2007-03-14 19:48:08 +00:00
Jonas Maebe
d3736f563f * fixed several range errors
git-svn-id: trunk@6857 -
2007-03-14 19:47:53 +00:00
Jonas Maebe
18e0b6e98b * do not turn on range/overflow checking, because several of the
statements cause range errors which should be ignored for Delphi
    compatibility (e.g. assigning a variant which contains -10 to a
    cardinal)

git-svn-id: trunk@6856 -
2007-03-14 19:47:32 +00:00
Jonas Maebe
a2c3826281 * changed fpc_big_chararray and fpc_big_widechararray from
array[0..1023] into array[0..0], because they're used as
    dummy return types for the Xstring_to_chararray helpers,
    and if a smaller array is actually passed as result then
    having a larger array declared will cause -gt to
    overwrite other data

git-svn-id: trunk@6855 -
2007-03-14 19:45:07 +00:00
Jonas Maebe
5bf9c58e14 * fixed real:=variant for non-x86
git-svn-id: trunk@6847 -
2007-03-14 17:04:15 +00:00