yury
b40de09cdb
* Update and cleanup.
...
git-svn-id: trunk@8208 -
2007-08-01 17:22:39 +00:00
yury
0d79d73dc3
* Fixed TSHFILEINFO declaration.
...
git-svn-id: trunk@8205 -
2007-07-31 21:58:05 +00:00
yury
c454c53ae7
* Fix and cleanup window styles.
...
git-svn-id: trunk@8204 -
2007-07-31 21:49:57 +00:00
yury
b0834a01a0
* Don't use changed registers list. Save used registers directly in asm code.
...
git-svn-id: trunk@8201 -
2007-07-30 17:26:45 +00:00
Legolas
87d67dcad6
* gba and nds work with new heap manager now (no need for a custom heap manager that allocates a single big block anymore)
...
git-svn-id: trunk@8200 -
2007-07-30 15:37:19 +00:00
yury
4b8777eb5a
* Optimize syscalls for arm-linux.
...
git-svn-id: trunk@8191 -
2007-07-29 15:57:15 +00:00
yury
27db4ec55a
* Final fix for threadvar access in syscall helpers on arm-linux. It fixes bugs #9191 and #9290 .
...
git-svn-id: trunk@8189 -
2007-07-29 15:21:44 +00:00
yury
a24803c63d
* Fixed threadvar access in syscall helpers on arm-linux. Bug #9290 .
...
git-svn-id: trunk@8186 -
2007-07-29 12:01:22 +00:00
micha
7475f656f8
+ add memory barrier routines for powerpc/64
...
git-svn-id: trunk@8179 -
2007-07-28 12:47:48 +00:00
micha
68dbca040e
* fix floating point signal and exception handling, for linux/i386, test tfpu2 regression
...
git-svn-id: trunk@8152 -
2007-07-23 15:36:02 +00:00
Károly Balogh
8f27e64080
+ regenerated Makefile with recent fpcmake
...
git-svn-id: trunk@8151 -
2007-07-23 15:06:25 +00:00
yury
f2df73cfe9
* Patch from Felipe Monteiro de Carvalho.
...
git-svn-id: trunk@8150 -
2007-07-23 13:25:30 +00:00
Károly Balogh
5f33a865a7
+ added MorphOS specific sockets.pp (WIP, but already works at some level)
...
+ added sockets unit to Makefile.fpc (i have no recent fpcmake ATM to regenerate Makefile)
git-svn-id: trunk@8149 -
2007-07-23 10:29:28 +00:00
peter
8d53e54e3e
* fix typos
...
git-svn-id: trunk@8146 -
2007-07-23 07:54:58 +00:00
peter
1db1bc598c
* move setting of socketerror to real socketcall
...
git-svn-id: trunk@8140 -
2007-07-22 20:42:41 +00:00
Károly Balogh
bee56abb78
- dec(comment_typos,2);
...
git-svn-id: trunk@8130 -
2007-07-22 10:22:26 +00:00
daniel
34afbcc040
* Enable inline for ctypes.
...
git-svn-id: trunk@8129 -
2007-07-22 10:10:35 +00:00
daniel
354cd09f31
* long double=double on powerpc-linux
...
* educated guess this is the case on arm-linux as well
* temporary change: do not alias clongdouble from unixtype into ctypes to prevent
having to work in two places.
git-svn-id: trunk@8127 -
2007-07-22 10:04:48 +00:00
daniel
d51b735deb
* Prevent range check errors on powerpc-linux
...
git-svn-id: trunk@8126 -
2007-07-22 09:53:21 +00:00
daniel
74ad03e264
* Remove double definition of O_LARGEFILE for powerpc-linux and give it
...
the correct value: $10000
git-svn-id: trunk@8123 -
2007-07-22 07:47:34 +00:00
florian
baafccf372
+ added some constants missed for compatibility, resolves #9182
...
git-svn-id: trunk@8121 -
2007-07-21 20:19:29 +00:00
florian
6250a3ccb9
* proper definition of O_LARGEFILE for all cpu platforms
...
git-svn-id: trunk@8120 -
2007-07-21 19:45:44 +00:00
daniel
bb5fea342f
* RTL updates needed to successfully cycle with -CIcommon_type.
...
git-svn-id: trunk@8119 -
2007-07-21 19:22:28 +00:00
florian
dc2a8787a1
+ VarArrayPut and VarArrayGet from Igor, resolves #9161
...
git-svn-id: trunk@8117 -
2007-07-21 18:49:10 +00:00
daniel
f0087dad28
* Write zero to extra bytes of quadruple when converting to it.
...
git-svn-id: trunk@8115 -
2007-07-21 15:36:38 +00:00
daniel
4861c8b7ed
* Convert clongdouble from double <=> quadruple on non-x86.
...
git-svn-id: trunk@8114 -
2007-07-21 15:32:15 +00:00
daniel
c5ac7638ed
* Make clongdouble 16 bytes on Darwin.
...
git-svn-id: trunk@8113 -
2007-07-21 15:00:52 +00:00
daniel
2fbe0038b9
* Make clongdouble:
...
- 8 bytes on windows
- For other platforms: 12 bytes on 32-bit and 16 bytes on 64-bit cpus.
... using a record with assignment overloads.
git-svn-id: trunk@8112 -
2007-07-21 13:02:11 +00:00
michael
7f58252179
* Extra mouse button defines from Pavel Ishenin
...
git-svn-id: trunk@8102 -
2007-07-19 12:08:41 +00:00
micha
dd350255a4
* print thread handle unsigned in unix thread debug info
...
git-svn-id: trunk@8094 -
2007-07-18 20:14:48 +00:00
micha
721ae51cd0
* dump stack when thread terminates because of exception (unix)
...
git-svn-id: trunk@8093 -
2007-07-18 20:13:39 +00:00
micha
0e64718cb2
* call HandleErrorAddrFrame on return of signal handler, reduces amount of code called within signal handler (for linux/i386)
...
git-svn-id: trunk@8092 -
2007-07-18 20:11:07 +00:00
Almindor
920660c460
* fix AssignFile to use "out" if the PARAMOUT define is defined (fixes 9275)
...
git-svn-id: trunk@8080 -
2007-07-16 21:47:31 +00:00
Almindor
fdecceebd0
* fix UnicodeToUtf8 if Dest is nil, patch by Sergei Gorelkin
...
git-svn-id: trunk@8078 -
2007-07-16 18:24:32 +00:00
yury
f591ba7e59
* Fixed GetScrollPos and GetScrollRange.
...
git-svn-id: trunk@8070 -
2007-07-15 22:35:37 +00:00
yury
ef3178cdb1
* Fixed default float exceptions mask for arm fpu. It fixes tw3160c.pp on arm-linux.
...
git-svn-id: trunk@8054 -
2007-07-14 19:46:22 +00:00
yury
4da2e1a04f
* fixed conversion zero int64 to double in softfloat mode.
...
git-svn-id: trunk@8050 -
2007-07-14 18:45:00 +00:00
Vincent Snijders
9d0445a7ef
* fixed checking if file is directory in Erase(File); it was broken if the directory had the FILE_ATTRIBUTE_NOT_CONTENT_INDEXED attribute too
...
git-svn-id: trunk@8049 -
2007-07-14 13:15:19 +00:00
yury
1807613f88
* Made NaN = 0.0/0.0 for arm-linux. It is calculated as Nan on Florian's arm-linux box. ln(-1.0) is calculated as -Inf on arm-linux and x86. It fixes bug #9132 .
...
git-svn-id: trunk@8045 -
2007-07-14 08:55:54 +00:00
florian
6f6e60b723
* improved SSE check by Martin Schreiber
...
git-svn-id: trunk@8040 -
2007-07-13 21:16:48 +00:00
daniel
9a8aa52cc5
+ Add setcap/getcap
...
+ Restore clone
git-svn-id: trunk@8033 -
2007-07-12 22:02:11 +00:00
Legolas
9021bbad98
* Added NDS CPU detection routine (ARM7 can't handle dsp extensions)
...
git-svn-id: trunk@8026 -
2007-07-12 11:29:49 +00:00
Almindor
279422cdde
* add comment about stat.h source
...
git-svn-id: trunk@8022 -
2007-07-11 21:10:27 +00:00
tom_at_work
b62ede20d6
* fix stat record when compiling for ppc/linux using -dFPC_USE_LIBC
...
git-svn-id: trunk@8021 -
2007-07-11 21:05:23 +00:00
Almindor
b0fde4700f
* fix the stupid pascal names in x86_64 linux stat
...
git-svn-id: trunk@8020 -
2007-07-11 21:02:34 +00:00
Almindor
5c1296e87b
* preliminary x86_64 stat for FPC_USE_LIBC
...
git-svn-id: trunk@8019 -
2007-07-11 21:00:03 +00:00
Almindor
389ea20704
* fix FPC_USES_LIBC cycling, by fixing libc stat records (both 32 and 64 bit)
...
git-svn-id: trunk@8018 -
2007-07-11 20:55:09 +00:00
yury
04b640880c
* fixed exp() for hardfloat on arm.
...
git-svn-id: trunk@8013 -
2007-07-10 20:31:47 +00:00
Legolas
cdf4841517
* Changed .elf extension to .nef (Not Executable File) for intermediate file builds in the NDS compiler (used on no$gba debugger for symbol table)
...
* Added nds target to ppudump.pp
* Fixed rtl compilation for nds target
* Changes in prt09.as
git-svn-id: trunk@8002 -
2007-07-09 22:17:36 +00:00
marco
9c45584938
* Safeloadlibrary
...
git-svn-id: trunk@7985 -
2007-07-09 08:07:42 +00:00
yury
55d6a37865
* Fixed bug #9221 .
...
+ Test.
git-svn-id: trunk@7975 -
2007-07-07 17:37:34 +00:00
Almindor
f71c886752
* move the FUTEX down so uses doesn't get in the way
...
git-svn-id: trunk@7974 -
2007-07-07 09:23:18 +00:00
Almindor
5baca0cfd3
* fix IPC for FPC_USE_LIBS
...
* fix shmget to use size_t as per manpage
* directly use external, don't depend on ipccdecl.inc (may be removed if confirmed)
git-svn-id: trunk@7973 -
2007-07-07 09:13:23 +00:00
Almindor
1fa4e17c87
* make FUTEX_OP implemented also with FPC_USE_LIBC since it's a macro
...
git-svn-id: trunk@7972 -
2007-07-07 08:41:42 +00:00
yury
826ba045f1
* made records not packed to fix bus errors.
...
git-svn-id: trunk@7966 -
2007-07-06 08:52:32 +00:00
yury
6ffbbb5734
* fixed compilation.
...
git-svn-id: trunk@7965 -
2007-07-06 08:51:18 +00:00
florian
4917931c63
* don't compile objects in fpu emulation mode
...
git-svn-id: trunk@7964 -
2007-07-05 20:01:01 +00:00
Jonas Maebe
1eb1bf4c42
* fixed str(extended(0.005):0:2) and related problems
...
git-svn-id: trunk@7959 -
2007-07-05 15:25:01 +00:00
daniel
47fe287169
* Change to ptruint.
...
git-svn-id: trunk@7954 -
2007-07-05 07:35:12 +00:00
Jonas Maebe
17e0807a20
* fixed cycle (fpc_getmem argument from ptrint -> ptruint)
...
git-svn-id: trunk@7951 -
2007-07-04 19:57:07 +00:00
daniel
0c3a2a257d
* Convert heap to ptruint.
...
git-svn-id: trunk@7950 -
2007-07-04 19:46:47 +00:00
Jonas Maebe
0d8594a705
* made cwstring thread safe without locks + test (twide4): widestring
...
manager now has two extra parameterless procedures (ThreadInitProc
and ThreadFiniProc) which are called whenever a thread begins/ends,
and cwstring uses these to create separate iconv handles for
each thread (via threadvars)
* renamed UCS4 to UCS-4BE/LE, because UCS4 is not recognised by most
systems
* clean up all iconv handles on exit, and check whether they are
valid before doing so
git-svn-id: trunk@7949 -
2007-07-04 18:10:34 +00:00
daniel
6d059a0640
* Convert to code that also works correct in $T+ case.
...
* Remove typecasts to longint.
git-svn-id: trunk@7940 -
2007-07-03 21:40:54 +00:00
daniel
02bed23a11
* Prevent range check error at compile time.
...
git-svn-id: trunk@7938 -
2007-07-03 21:28:59 +00:00
Tomas Hajny
581515d8e5
* give up timeslices while waiting in SysGetMouseEvent, compilation fix plus change of pointer conversion to unsigned
...
git-svn-id: trunk@7937 -
2007-07-03 21:00:01 +00:00
yury
8a0cc8c888
* Reallocate source winlike widestring on assign. It fixes bug #9190 .
...
* Error handling on allocating winlike widestring.
+ Test.
git-svn-id: trunk@7917 -
2007-07-01 21:57:39 +00:00
yury
ec2d657a32
* Small addition to r7911.
...
git-svn-id: trunk@7914 -
2007-07-01 20:29:01 +00:00
yury
8379edbb5d
* Clean fix for bug #9170 . Thanks Peter.
...
git-svn-id: trunk@7911 -
2007-07-01 18:57:49 +00:00
daniel
296501f036
* Remove more ptrint usage.'
...
git-svn-id: trunk@7909 -
2007-07-01 15:44:52 +00:00
florian
4ba2a49318
* compilation fixed
...
git-svn-id: trunk@7904 -
2007-07-01 14:43:06 +00:00
daniel
5e24870b8b
* Pointer to integer conversion not necessary here.
...
git-svn-id: trunk@7902 -
2007-07-01 11:42:34 +00:00
daniel
35b6980254
* Put pptrint back in place.
...
git-svn-id: trunk@7897 -
2007-07-01 11:05:39 +00:00
daniel
6491a6e914
* Make vtype signed again to prevent unnecessary 64 bit promotions.
...
Should be okay as it isn't a pointer.
git-svn-id: trunk@7893 -
2007-07-01 10:25:10 +00:00
daniel
ea47fcfc97
* ptrint -> ptruint
...
git-svn-id: trunk@7892 -
2007-07-01 10:14:19 +00:00
daniel
32216bcccd
* ptrint -> ptruint
...
git-svn-id: trunk@7888 -
2007-07-01 09:41:07 +00:00
micha
b8822c88b5
* fix heap manager adding to wrong free list, and race condition
...
git-svn-id: trunk@7878 -
2007-06-30 21:13:48 +00:00
yury
fd4f90d3ff
* fixed bug #9187 .
...
+ test.
git-svn-id: trunk@7876 -
2007-06-30 21:02:10 +00:00
yury
53b47273c4
* Fixed bug #9170 .
...
git-svn-id: trunk@7868 -
2007-06-30 12:28:03 +00:00
marco
a73063cdd5
* Image_imagesubsystem consants
...
git-svn-id: trunk@7867 -
2007-06-30 12:08:51 +00:00
marco
aa9492a5bb
* tgetfileexinfolevels
...
git-svn-id: trunk@7866 -
2007-06-30 12:05:30 +00:00
florian
c30ad53e42
* fixed bug with illegal block usage
...
* made *ObjectInstance MT safecall
git-svn-id: trunk@7861 -
2007-06-30 09:39:39 +00:00
marco
f19b4591ec
* var fix for propertysheet
...
git-svn-id: trunk@7857 -
2007-06-29 22:35:03 +00:00
florian
0b98b7ed14
+ Make/FreeObjectInstance for win32
...
git-svn-id: trunk@7856 -
2007-06-29 22:27:41 +00:00
marco
cefb056aa3
* more stuff copied from jwawinnt. $externalsyms stripped
...
git-svn-id: trunk@7855 -
2007-06-29 22:21:22 +00:00
marco
841de35713
* Some Delphilike aliases for the previous commit added
...
git-svn-id: trunk@7854 -
2007-06-29 22:03:17 +00:00
marco
a50f07618c
* some PE headers Delphi also has.
...
git-svn-id: trunk@7853 -
2007-06-29 21:53:45 +00:00
michael
07fdede9b8
* Defined ExceptionClass and ExceptObjProc for Delphi compatibility (bug 8459)
...
git-svn-id: trunk@7850 -
2007-06-29 20:16:44 +00:00
florian
0c4e27f706
+ few package related declarations added
...
git-svn-id: trunk@7844 -
2007-06-28 17:50:11 +00:00
Tomas Hajny
c00021373a
* fix from r7819 extended to more platforms
...
git-svn-id: trunk@7828 -
2007-06-26 21:08:37 +00:00
marco
7bdc2ccbfb
* EWX_FORCEIFHUNG
...
git-svn-id: trunk@7822 -
2007-06-26 15:06:43 +00:00
marco
f885568da9
* more little winapi fixes (largeuint)
...
git-svn-id: trunk@7821 -
2007-06-26 14:50:24 +00:00
marco
4ff745402e
* JCLSync missing prototypes.
...
git-svn-id: trunk@7820 -
2007-06-26 14:41:57 +00:00
daniel
f77150fa71
* Fix another bug found by new hint.
...
git-svn-id: trunk@7819 -
2007-06-26 08:24:09 +00:00
daniel
7c124b3817
* Fix bug found by new hint.
...
git-svn-id: trunk@7818 -
2007-06-26 07:52:55 +00:00
daniel
441b015a7d
* Use ptruint instead of ptrint.
...
git-svn-id: trunk@7816 -
2007-06-26 06:57:20 +00:00
florian
0caa70a8b3
+ basic TStreamAdapter implementation
...
git-svn-id: trunk@7815 -
2007-06-25 21:05:08 +00:00
florian
201fc56655
+ added and fixed some delphi compatibility stuff
...
git-svn-id: trunk@7813 -
2007-06-25 20:23:24 +00:00
marco
f6e2f0b2f0
* better compatible systeminfo (Jedi JCL had a problem with it)
...
git-svn-id: trunk@7808 -
2007-06-25 15:57:53 +00:00
micha
cd1a283a18
* fix heap var size chunk search to be as intended (search constant number of blocks from best, not from any bigger)
...
git-svn-id: trunk@7807 -
2007-06-24 21:50:05 +00:00
micha
b4363e046b
* fix heaptrace segfault, access of lost block
...
git-svn-id: trunk@7806 -
2007-06-24 21:33:29 +00:00
micha
afb5f32f65
* fix heap block recycle flag when orphaning
...
git-svn-id: trunk@7805 -
2007-06-24 21:32:31 +00:00
daniel
8ee5966a2e
* Fix comparedword and change it to cardinal.
...
git-svn-id: trunk@7804 -
2007-06-24 21:17:43 +00:00
florian
e1125c3f7f
+ StrNextChar implemented
...
git-svn-id: trunk@7803 -
2007-06-24 20:30:55 +00:00
florian
40fde13aa4
+ several missing constants, functions and structures added
...
git-svn-id: trunk@7801 -
2007-06-24 20:29:40 +00:00
florian
728055586a
+ delphi compatibility stuff
...
git-svn-id: trunk@7800 -
2007-06-24 20:29:05 +00:00
florian
5c58f69595
+ ModuleIs* typed consts added
...
git-svn-id: trunk@7799 -
2007-06-24 20:28:40 +00:00
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