Commit Graph

7464 Commits

Author SHA1 Message Date
Jonas Maebe
b5a1a6c6b4 * fixed generic index- and comparebyte/word/dword for limits which
overflow the pointer range (fixes tw3612 regression on sparc/solaris)

git-svn-id: trunk@8754 -
2007-10-09 11:00:15 +00:00
peter
e8322a83e4 * optimized generic implementations to use pointers instead of
array accesses. This also allows better register variable
    optimizations

git-svn-id: trunk@8742 -
2007-10-07 18:36:18 +00:00
florian
de47ba3ac8 * fixed GetKeyData
git-svn-id: trunk@8729 -
2007-10-03 11:13:27 +00:00
Tomas Hajny
34e8576452 + stdconvs and fmtbcd now compiled too (the latter needed for fcl-db)
git-svn-id: trunk@8709 -
2007-09-30 23:24:55 +00:00
Tomas Hajny
97d878cde8 * missing AF_INET added
git-svn-id: trunk@8708 -
2007-09-30 21:35:36 +00:00
Tomas Hajny
54caaf4335 * fix compilation by moving wrongly placed SYSTEMEXCEPTIONDEBUG defines
git-svn-id: trunk@8699 -
2007-09-30 16:14:07 +00:00
Tomas Hajny
05e6784906 + make use of the provided CtrlBreakHandler (OS/2)
git-svn-id: trunk@8697 -
2007-09-30 15:19:59 +00:00
Tomas Hajny
85b8eeac17 + common CtrlBreakHandler for unit Keyboard
git-svn-id: trunk@8696 -
2007-09-30 15:18:37 +00:00
micha
7d5d4ba706 + add i386-linux uclibc process startup code
git-svn-id: trunk@8694 -
2007-09-30 14:53:54 +00:00
Tomas Hajny
58ff2fb482 + Use CtrlBreakHandler infrastructure to allow processing of Ctrl-C in ReadKey (OS/2 implementation)
git-svn-id: trunk@8693 -
2007-09-30 14:17:42 +00:00
Tomas Hajny
b71f5e80b0 + RTL exception handler for OS/2
git-svn-id: trunk@8692 -
2007-09-30 14:15:37 +00:00
Tomas Hajny
58bca68e6a + infrastructure for CtrlBreakHandler added
git-svn-id: trunk@8691 -
2007-09-30 14:14:33 +00:00
Tomas Hajny
e70f1a26db * issue sleep while polling keyboard
git-svn-id: trunk@8690 -
2007-09-30 14:05:00 +00:00
marco
7429c4871b * fix for 9770
git-svn-id: trunk@8689 -
2007-09-30 11:23:33 +00:00
Tomas Hajny
f5250c6433 * missing constants for context flags added
git-svn-id: trunk@8688 -
2007-09-30 00:51:40 +00:00
Tomas Hajny
633a902565 * exception handler is a function, not procedure
git-svn-id: trunk@8680 -
2007-09-29 15:48:26 +00:00
Almindor
fdcc5f4332 * use TIOCtlRequest instead of hard ifdefs to remove warnings
git-svn-id: trunk@8679 -
2007-09-29 14:22:41 +00:00
marco
54d8f93b25 * fix for 9772
git-svn-id: trunk@8677 -
2007-09-29 09:18:15 +00:00
Almindor
5474e0c987 * fix ioCtl differences between BSD and POSIX
git-svn-id: trunk@8676 -
2007-09-29 08:24:23 +00:00
marco
827d380691 * pchar(pointer()) isms that were safe.
git-svn-id: trunk@8672 -
2007-09-28 21:57:45 +00:00
marco
faa8383403 * some pchar(pointer(s)) changes (see maillist)
git-svn-id: trunk@8671 -
2007-09-28 20:24:44 +00:00
Jonas Maebe
f51bac256d * made pic-safe (by simply not accessing global variables from
assembler code anymore, as I don't see how to easily support
    PIC access to global variables for Darwin/i386)

git-svn-id: trunk@8663 -
2007-09-27 15:08:09 +00:00
Jonas Maebe
335bc9fd46 + PIC support for darwin/ppc32 (-Cg works now, no regressions in test
suite compiled with -Cg compared to without -Cg)
  + support for using a virtual register as PIC/got base register
  * moved got loading code from ncgutil to cgobj/cgcpu (can't test whether
    it didn't break anything under linux/i386, because "make cycle OPT=-Cg"
    was already broken due to the *prt*.as -> si_*.pp changes)

git-svn-id: trunk@8651 -
2007-09-26 16:41:32 +00:00
marco
9e1462203c * dateutils.scandatetime, an inverse of formatdatetime
git-svn-id: trunk@8624 -
2007-09-23 20:03:12 +00:00
florian
5a585ce07d * made SExecuteProcessFailed error message more clear
git-svn-id: trunk@8622 -
2007-09-23 14:59:22 +00:00
florian
7f441e0bca + added more FILE_ATTRIBUTE constants, resolves #9669
git-svn-id: trunk@8614 -
2007-09-23 13:10:06 +00:00
florian
ecc45e16db * formatting fixed ;)
git-svn-id: trunk@8613 -
2007-09-23 13:09:24 +00:00
michael
9777065197 * Fixed carry bug in conversion of currency to string
git-svn-id: trunk@8612 -
2007-09-23 10:26:00 +00:00
Jonas Maebe
4e78a30ee3 * only print exception backtrace at end of unhandled exception in
tthread in case rtl is compiled with -dDEBUG_MT

git-svn-id: trunk@8595 -
2007-09-21 15:09:08 +00:00
Károly Balogh
821eb1fe18 + changed this one to contain real 68k headers (based on MOS version of the headers)
git-svn-id: trunk@8555 -
2007-09-18 19:42:54 +00:00
pierre
d5fa108796 * put prt0.obj in the right directory
git-svn-id: trunk@8552 -
2007-09-18 16:03:45 +00:00
pierre
6d8b346113 * test_int31 needs stdcall modifier
git-svn-id: trunk@8551 -
2007-09-18 16:01:33 +00:00
pierre
5a0ec1105d * use prt0.as as loader
git-svn-id: trunk@8549 -
2007-09-18 13:46:59 +00:00
pierre
5100a988f7 * more watcom rtl fixes
git-svn-id: trunk@8548 -
2007-09-18 13:44:40 +00:00
pierre
d3c33fb99c * Update watcom system unit
git-svn-id: trunk@8547 -
2007-09-18 13:29:55 +00:00
joost
f6d66e8cf5 * Changed MinDateTime for FloatToDateTime and VariantToDate to 01/01/0001
git-svn-id: trunk@8534 -
2007-09-17 21:25:51 +00:00
Tomas Hajny
573bc3b767 * inline on needed for 2.0.x
git-svn-id: trunk@8532 -
2007-09-17 21:19:12 +00:00
peter
07275c3dbe * added cdecl for sigmask
git-svn-id: trunk@8529 -
2007-09-17 20:26:29 +00:00
Tomas Hajny
f0959c1b1d * yet another fix for DiskFree/DiskSize
git-svn-id: trunk@8516 -
2007-09-16 20:17:27 +00:00
Jonas Maebe
0040eecf9f + support for extra packing of sets whose lower element number
is <> 0 (Delphi compatible now, + various tests)
  + support for enums and sets in is_in_limit()
  * fixed converting smallset expressions to varsets
  * improved choosing an appropriate common set type when mixing
    set types in an expression
  - removed no longer used normalset code from nadd.pas
  - disabled large set (>256 elements) support for now, because
    they are not yet supported entirely throughout the compiler
    and this causes errors at run time in several situations

git-svn-id: trunk@8515 -
2007-09-16 20:04:45 +00:00
Károly Balogh
f3e13f1e68 + removed a define which seems unnecessary
git-svn-id: trunk@8502 -
2007-09-16 11:07:47 +00:00
florian
b11e861b0f + define DEFAULT_DOUBLE on m68k
git-svn-id: trunk@8499 -
2007-09-16 10:20:16 +00:00
florian
334b9b4ee1 * formatting
git-svn-id: trunk@8498 -
2007-09-16 10:08:53 +00:00
florian
095f9cb9dd * fixed wrongly named defines
git-svn-id: trunk@8497 -
2007-09-16 10:06:00 +00:00
Jonas Maebe
4f23f216f6 * fixed mantis #9695 introduced by the fix in r7959
git-svn-id: trunk@8494 -
2007-09-15 21:15:06 +00:00
Tomas Hajny
3b3849c02c + AllFilesMask constant added
git-svn-id: trunk@8492 -
2007-09-15 12:09:25 +00:00
micha
f48e51c380 * fix TFPSMap.GetKeyData on non-sorted map (#9672)
+ add test for issue #9672

git-svn-id: trunk@8485 -
2007-09-14 20:48:29 +00:00
peter
f5ac7ca9be * remove duplicate sysctl and types
git-svn-id: trunk@8471 -
2007-09-14 08:33:40 +00:00
peter
627cf69ae3 * svn props
git-svn-id: trunk@8468 -
2007-09-14 07:19:48 +00:00
Tomas Hajny
77fe5f40fe * remove erratic / unreliable check for DOS version in Do_DiskData
git-svn-id: trunk@8461 -
2007-09-13 20:54:00 +00:00
Jonas Maebe
77eaa77772 - reverted r7790 because it's buggy (+ test)
git-svn-id: trunk@8444 -
2007-09-12 21:22:08 +00:00
tom_at_work
ddc0ac9a43 * better fix for TFPGSList memory leak: avoid changing allocation behavior (adds one temp entry used for various operations), and clean up in the destructor
git-svn-id: trunk@8433 -
2007-09-11 22:23:33 +00:00
tom_at_work
f88c5e1324 * fix memory leak of TFPSList.Clear()
git-svn-id: trunk@8431 -
2007-09-11 21:43:27 +00:00
Almindor
a42b134a81 * fix sysenter variable duplication
git-svn-id: trunk@8406 -
2007-09-08 14:21:35 +00:00
Almindor
d2e4f53a13 * hopefuly fix the fp* problems for stat and others
git-svn-id: trunk@8405 -
2007-09-08 13:51:39 +00:00
Almindor
148255b5cf * fix deprecated stat calls to use the fp<> ones and not the other way around
git-svn-id: trunk@8401 -
2007-09-08 09:55:35 +00:00
Jonas Maebe
5cffd5d22b * marked TObject.InitInstance as inline
git-svn-id: trunk@8400 -
2007-09-08 09:19:13 +00:00
Jonas Maebe
b02fd37fbe * removed some unused variables
git-svn-id: trunk@8399 -
2007-09-08 08:45:12 +00:00
florian
bcd5fc555a * rtl part of Olivier Coursier's BeOS patch
git-svn-id: trunk@8396 -
2007-09-07 19:25:05 +00:00
Jonas Maebe
9bd4fe433b * fixed buffer overflows in int_str() + test
git-svn-id: trunk@8395 -
2007-09-07 14:06:08 +00:00
Jonas Maebe
bd0532f158 * removed unused variable from fpc_shortstr_enum and reformatted
its declarations

git-svn-id: trunk@8394 -
2007-09-07 11:54:00 +00:00
yury
ebfd2b6b20 * Fix for tres.pp test by Sergei Gorelkin.
git-svn-id: trunk@8375 -
2007-09-04 12:28:14 +00:00
Jonas Maebe
084f47708a * fixed CtrlZMarksEOF comment (#9475)
git-svn-id: trunk@8372 -
2007-09-03 18:36:45 +00:00
yury
498da17875 * Patch from Sergei Gorelkin (Mantis #9558):
- Enables support for resource types;
  - Enables support for numeric resource IDs;
  - Removes initialization and runtime resource info. That initialization only did two pointer additions per resource, but required use of ansistrings and memory manager. I believe that positive impact on resource usage overweights performance impact from inlining the pointer additions...

git-svn-id: trunk@8368 -
2007-09-03 13:41:38 +00:00
marco
d539d9c54d * fix for 9588
git-svn-id: trunk@8366 -
2007-09-03 13:24:26 +00:00
Almindor
b8c3dc960d * fix x86 -> cpu86 define
* add tee() function

git-svn-id: trunk@8365 -
2007-09-03 10:54:44 +00:00
Almindor
6fd901181a * update sysnr.inc for x86 and x86_64 to latest kernel
* add splice syscall to linux unit for x86 and x86_64

git-svn-id: trunk@8364 -
2007-09-02 22:06:04 +00:00
michael
3ed12b0229 * Small patch from Inoussa OUEDRAOGO so it compiles with Delphi
git-svn-id: trunk@8363 -
2007-09-02 21:57:51 +00:00
marco
e034788320 * two semi colon's added and compilation checked
git-svn-id: trunk@8342 -
2007-08-30 20:09:35 +00:00
yury
ae90ae077a * Added missing TPM_BOTTOMALIGN constant.
git-svn-id: trunk@8334 -
2007-08-29 16:17:02 +00:00
Jonas Maebe
cce61fa602 * fixed compilation on 64 bit cpus
git-svn-id: trunk@8333 -
2007-08-29 14:31:17 +00:00
Jonas Maebe
a57f9e0672 + added QWord overloads for IntToHex, hexStr, OctStr, binStr
git-svn-id: trunk@8332 -
2007-08-29 12:06:54 +00:00
Almindor
6a327799f8 * fix typo with [T]SysInfo record
git-svn-id: trunk@8331 -
2007-08-29 11:59:47 +00:00
Almindor
89eeb8aa63 * fix linux sysinfo struct and function (bug 9523)
git-svn-id: trunk@8330 -
2007-08-29 10:08:02 +00:00
Almindor
9525a96db7 * update winsock2 to version 2.2 regarding SO_ and AF_ constants
git-svn-id: trunk@8329 -
2007-08-29 09:38:01 +00:00
yury
a768c29b2d * Implemented GetTempDir for wince. Bug #9348.
git-svn-id: trunk@8326 -
2007-08-28 21:17:49 +00:00
Jonas Maebe
9238ea2850 * fixed potential range errors
git-svn-id: trunk@8321 -
2007-08-28 19:01:49 +00:00
yury
685810c18c * Fixed fpc_WideCharArray_To_WideStr in case if widechar array contains empty string.
+ Test.

git-svn-id: trunk@8317 -
2007-08-28 09:53:29 +00:00
peter
65afe53eb0 * fix settimeofday timeval parameter
git-svn-id: trunk@8315 -
2007-08-28 09:29:25 +00:00
michael
287c262d10 * Added copy,length and setlength
git-svn-id: trunk@8306 -
2007-08-25 13:41:22 +00:00
yury
3cbd1fb108 * Properly implement registry API ANSI wrappers for wince.
git-svn-id: trunk@8301 -
2007-08-22 22:13:59 +00:00
yury
2e75d6726a * Fixed internal Ansi<->Wide conversion routines.
git-svn-id: trunk@8300 -
2007-08-22 22:13:07 +00:00
Jonas Maebe
cb744d37ff - reverted change for avoiding recompilation of units in subdirs,
it breaks other things

git-svn-id: trunk@8298 -
2007-08-22 08:16:10 +00:00
Jonas Maebe
30bc89cfe5 * fixed dependency checking for source files in subdirectories relative
to the makefile location + regenerated all Makefiles
  * hopefully fixed fpmkunit dependencies

git-svn-id: trunk@8297 -
2007-08-22 07:04:23 +00:00
Almindor
7a21cb5888 * add preliminary UnixSockets with linux implementation
git-svn-id: trunk@8290 -
2007-08-19 13:35:43 +00:00
florian
a01b377e40 * patch for #9449 by Sergei Gorelkin
git-svn-id: trunk@8289 -
2007-08-17 18:39:27 +00:00
Almindor
1e4dd0685a * fix bug #9438
git-svn-id: trunk@8288 -
2007-08-16 09:58:35 +00:00
Almindor
8a0eeb5e57 * make the updates also compilable (move struct down, add LPWSAMSG = PWSAMSG)
git-svn-id: trunk@8277 -
2007-08-13 11:01:04 +00:00
Almindor
3f6f91ae79 * adds WSARecvMsg and WSASendMsg along with requires structure to winsock2
git-svn-id: trunk@8276 -
2007-08-13 10:43:22 +00:00
Jonas Maebe
815cd2b39d + support for widestring manager based widechar conversions
(widechar<->char, widechar<>*string), based on patch from
    Rimgaudas Laucius (mantis #7758)
  * no longer perform compile-time widechar/string->char/ansi/
    shortstring conversions if they would destroy information
    (they can't cope with widechars with ord>=128). This means
    that you can now properly constant widechars/widestrings
    in source code with a {$codepage } set without risking that
    the compiler will mangle everything afterwards
  * support ESysEINVAL return code from iconv (happens if last
    multibyte char is incomplete)
  * fixed writing of widechars (were converted to char -> lost
    information)

git-svn-id: trunk@8274 -
2007-08-12 20:01:08 +00:00
Jonas Maebe
123362235b * use initc.fpgetCerrno rather than fpgeterrno to get the errno
results of the sem_* routines (since those always come from libc/
    libpthread)

git-svn-id: trunk@8266 -
2007-08-12 08:29:48 +00:00
Jonas Maebe
4457538435 * explicitly unmask SIGSEGV, SIGILL, SIGBUS and SIGFPE at the start
of a new thread (should fix #9073)

git-svn-id: trunk@8265 -
2007-08-11 20:59:37 +00:00
Jonas Maebe
ce86cedd4d * return wrAbandoned rather than wrError from IntbasiceventWaitFor
in case a sleep is interrupted while the event is being destroyed

git-svn-id: trunk@8260 -
2007-08-11 08:13:36 +00:00
Jonas Maebe
ef801ba3a3 * check once more whether we can lock after we've waited
for the entire timeout in IntbasiceventWaitFor

git-svn-id: trunk@8259 -
2007-08-11 08:07:44 +00:00
Jonas Maebe
494fb81dd8 * fixed semaphore implementation based on file handles (select needs
file descriptor + 1 as first parameter, select can also be EIntr)
  * changed IntbasiceventWaitFor (used by syncobjs) so it can emulate
    timeouts (using a loop and short sleeps) (mantis #9414)
  * also added wrAbandoned support to IntbasiceventWaitFor
  * enhanced tbrtlevt.pp to test new functionality

git-svn-id: trunk@8257 -
2007-08-10 20:20:44 +00:00
Tomas Hajny
908a116cfc * preserve gs in far_strlen
git-svn-id: trunk@8256 -
2007-08-09 18:51:15 +00:00
Tomas Hajny
05b3c0311b * make sure to preserve edi in free_memory_block
git-svn-id: trunk@8255 -
2007-08-09 18:41:27 +00:00
Tomas Hajny
1967deb137 * missing size modifier added
git-svn-id: trunk@8254 -
2007-08-09 18:38:09 +00:00
yury
1a661dc254 * TAPI fixes by S0vNark0m.
+ SimMgr API by S0vNark0m.

git-svn-id: trunk@8251 -
2007-08-09 09:55:01 +00:00
Jonas Maebe
fd98a0cc5b * don't call runerror if a unix threading error occurs (because this
immediately terminates the whole application), but instead call
    handleerrorframe (which can be converted into an exception) (#7954)

git-svn-id: trunk@8248 -
2007-08-08 13:59:17 +00:00
Jonas Maebe
f3a00b0731 * cache result of GetThreadManager in InitThreads
git-svn-id: trunk@8245 -
2007-08-08 11:33:54 +00:00
Jonas Maebe
e205481027 * fixed sparc bootstrap
* use -Av9 assembler option so it accepts the memory barrier opcodes

git-svn-id: trunk@8244 -
2007-08-08 09:48:37 +00:00
Jonas Maebe
98ad33a0c7 + added lwsync instruction to the compiler
* fixed compilation of ReadDependencyBarrier

git-svn-id: trunk@8243 -
2007-08-08 09:15:48 +00:00
Jonas Maebe
ad43c6a989 * fixed properties
git-svn-id: trunk@8242 -
2007-08-08 09:10:40 +00:00
peter
2e47433989 * fix typo
git-svn-id: trunk@8241 -
2007-08-08 06:00:18 +00:00
micha
d95b9082bb * add memory barrier prototypes + implementation for i386 and sparc + use lwsync for powerpc64
git-svn-id: trunk@8240 -
2007-08-07 20:37:08 +00:00
Jonas Maebe
134427700b * disabled overloaded operators for non-x86 because they don't compile
(the value is a packed array of bytes in this case, not a record)

git-svn-id: trunk@8231 -
2007-08-06 13:44:13 +00:00
yury
0e1357642e + Added TAPI declarations by SovNarKom.
git-svn-id: trunk@8230 -
2007-08-06 07:45:39 +00:00
peter
6d4ccd3b3f * operators for clongdouble
git-svn-id: trunk@8229 -
2007-08-06 07:12:51 +00:00
Jonas Maebe
49a545aef2 * fixed FormatFloat for non-x86 (mantis 9384)
git-svn-id: trunk@8220 -
2007-08-04 17:38:48 +00:00
yury
b07b8b557b * Added TransparentImage and TransparentBlt declarations.
git-svn-id: trunk@8218 -
2007-08-03 23:19:57 +00:00
florian
ea61793ca2 * fix by Carsten Bager
git-svn-id: trunk@8211 -
2007-08-02 07:44:32 +00:00
florian
9713d5cb21 * more properties fixed
git-svn-id: trunk@8210 -
2007-08-02 07:40:03 +00:00
florian
065b187c26 * properties set
git-svn-id: trunk@8209 -
2007-08-02 07:38:09 +00:00
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