Commit Graph

5994 Commits

Author SHA1 Message Date
Jonas Maebe
1bcde3436d * random(int64(0)) now return 0 instead of division by zero
* random(negative_longint) now returns values between -l+1 and 0
    instead of between -l and 0

git-svn-id: trunk@2422 -
2006-02-03 20:57:32 +00:00
Jonas Maebe
7338c03fac + comp and int64 overloads for floattostr(f)
git-svn-id: trunk@2403 -
2006-02-02 10:33:12 +00:00
daniel
d19c95db8f * various bugfixes
- Disable shared linking for now since it since it simply breaks
    svn. (Already disabled in Makefile itself, likely accidentally
    done with an old FPCMake, but it "fixed" svn to compile.)

git-svn-id: trunk@2401 -
2006-02-02 08:22:35 +00:00
Károly Balogh
deb2bd1e24 - deleted readme containing obsolete info
git-svn-id: trunk@2394 -
2006-02-01 16:00:40 +00:00
Károly Balogh
572c8430ac + more mess to make the skeleton amiga rtl compile
git-svn-id: trunk@2393 -
2006-02-01 15:35:33 +00:00
Károly Balogh
fe6637884d + some basic system unit. morphos one with _lot_ of commented out parts
git-svn-id: trunk@2392 -
2006-02-01 15:21:29 +00:00
Jonas Maebe
e9a6b3dc10 * fixed some FloatToStrF and FloatToStr precision problems. Still fails
for some corner cases (e.g. 8.502 as double), but that problem is in
    str_real

git-svn-id: trunk@2390 -
2006-02-01 10:22:52 +00:00
daniel
eb45aa901f * Remove debugging code.
git-svn-id: trunk@2389 -
2006-02-01 08:27:30 +00:00
peter
a293a2486d * remove useless comment
git-svn-id: trunk@2388 -
2006-02-01 06:34:31 +00:00
florian
818ac29ba2 + some files from old fixes branch added
git-svn-id: trunk@2385 -
2006-01-31 21:55:42 +00:00
daniel
56d3bf1403 + Keyboard unit overhaul
+ Shift+arrow keys now working in xterm
     + Keyboard restored when vt-switching away from application on Linux
       console
     + Escape key remapped on Linux console so it works instantly.
     + Try to use Linux console more aggressively
     + Linux specific code now only executed on Linux terminals and not
       on xterm, FreeBSD etc.

git-svn-id: trunk@2383 -
2006-01-31 10:26:25 +00:00
peter
e58e92c4fa * added sumInt
git-svn-id: trunk@2380 -
2006-01-29 19:46:14 +00:00
daniel
0c050527ca * 2.0 workaround
git-svn-id: trunk@2379 -
2006-01-29 18:15:50 +00:00
tom_at_work
64c8d25dcf * added __stkptr global in cprt0 for powerpc/linux
git-svn-id: trunk@2377 -
2006-01-29 17:54:04 +00:00
tom_at_work
453bb6d1c9 * removed libc package from build for every linux platform but i386 and x86-64 (libc is a x86 specific kylix compatibility library)
git-svn-id: trunk@2376 -
2006-01-29 17:49:42 +00:00
michael
dcb932d367 + Patch from Michalis Kamburelis to fix hex2dec behaviour in case of error
git-svn-id: trunk@2373 -
2006-01-29 10:28:37 +00:00
daniel
b53d90a328 * Comitted too quickly
git-svn-id: trunk@2371 -
2006-01-29 08:28:46 +00:00
daniel
c1e09fab0c * Fix 2.0.0 compat
git-svn-id: trunk@2370 -
2006-01-29 08:00:16 +00:00
daniel
bb797e93f0 * vcsa functionality moved into linuxvcs unit
* Reverse ifdef in gpm

git-svn-id: trunk@2366 -
2006-01-28 23:17:48 +00:00
daniel
c182af93ab * Overhaul of key recognition codes. Should recognize key much
better now, even without terminfo, which has been removed so another
    libc dependency is gone.

git-svn-id: trunk@2361 -
2006-01-28 22:21:28 +00:00
michael
cbdda429c5 + Patch from Graeme Geldenhuys to fix ExtractFileDrive
git-svn-id: trunk@2359 -
2006-01-28 18:10:07 +00:00
michael
736b9ec000 + Patch from Graeme Geldenhuys to add delphi compatibility function
git-svn-id: trunk@2358 -
2006-01-28 18:07:23 +00:00
daniel
ea2af1b3aa + Much more agressive VCSA detection. Now works from inside Midnight Commander.
git-svn-id: trunk@2351 -
2006-01-27 10:46:26 +00:00
daniel
45d159eaad * Another libc dependency less
git-svn-id: trunk@2348 -
2006-01-26 22:14:46 +00:00
marco
2a1d81db28 * fdset is now array of unsigned.
git-svn-id: trunk@2347 -
2006-01-26 21:11:37 +00:00
oro06
0b206dcb26 *wince : more windows extended styles
git-svn-id: trunk@2346 -
2006-01-26 19:12:23 +00:00
oro06
8a48da8a70 -SHLoadImage not really exported on wince4.2 SE
git-svn-id: trunk@2345 -
2006-01-26 15:11:13 +00:00
oro06
650845915f *wince : more shell api
git-svn-id: trunk@2344 -
2006-01-26 14:17:22 +00:00
peter
6c905f6266 * added missing varString,varOlestr to ordinals
git-svn-id: trunk@2340 -
2006-01-25 22:05:31 +00:00
Tomas Hajny
bbd4886809 * fix for wrong pointer increment (causing crash/heap corruptions)
git-svn-id: trunk@2337 -
2006-01-25 21:26:38 +00:00
peter
50dc3390e8 * gprof fixes
git-svn-id: trunk@2322 -
2006-01-22 11:23:41 +00:00
Jonas Maebe
5e694a801e * use vfork instead of fork for popen and one variant of executeprocess
if USE_VFORK is defined (currently only if both BSD and FPC_USE_LIBC
    are defined). Speeds up the compilation of the compiler under Darwin
    by 20-25% (the larger the project, the bigger the speedup).

git-svn-id: trunk@2317 -
2006-01-21 20:19:19 +00:00
marco
768bf94a99 * more "shared" fixes
git-svn-id: trunk@2295 -
2006-01-15 14:56:20 +00:00
marco
77d20d988c * some patches related to shared linking + some AMD64 checks.
git-svn-id: trunk@2294 -
2006-01-15 14:33:30 +00:00
Vincent Snijders
32fc7668cc write pointer values using 16 hexadecimal digits on 64 bits platforms
git-svn-id: trunk@2293 -
2006-01-15 14:12:42 +00:00
marco
b6ac26d673 * picified syscall code
git-svn-id: trunk@2292 -
2006-01-15 12:00:49 +00:00
marco
762e335da1 * .size stuff for GOT
git-svn-id: trunk@2290 -
2006-01-15 00:08:15 +00:00
oro06
1d48e6ce78 +wince : dialogbox
git-svn-id: trunk@2289 -
2006-01-14 16:11:48 +00:00
florian
e9b718a0a2 * cleanup
git-svn-id: trunk@2282 -
2006-01-14 12:55:26 +00:00
florian
b9a0e2ead2 * makefile again regenerated
git-svn-id: trunk@2280 -
2006-01-13 20:32:53 +00:00
florian
40290348bc * Makefiles regenerated
git-svn-id: trunk@2279 -
2006-01-13 19:49:25 +00:00
Tomas Hajny
b853d45cd8 * fix for buggy ParamStr(0) / web bug #4666 as provided by Salvatore Licciardi (and in comp.lang.pascal.misc - maybe by Salvatore too?)
git-svn-id: trunk@2272 -
2006-01-12 23:17:51 +00:00
florian
4af9d14a64 * fixed errors
git-svn-id: trunk@2270 -
2006-01-12 21:11:46 +00:00
peter
1b9f2a8fa9 * use initialstkptr for setting stackbottom
git-svn-id: trunk@2268 -
2006-01-12 11:55:36 +00:00
peter
49cf8154c1 * add missing .globl
git-svn-id: trunk@2267 -
2006-01-12 11:04:03 +00:00
peter
94f2b1d941 * add initialstkptr to get the stackpointer at startup before
PASCALMAIN is called so the main body framepointer is seen as
    a valid pointer with backtracing

git-svn-id: trunk@2266 -
2006-01-12 09:29:57 +00:00
peter
6bbf8f4e22 * always write backtracestr for exception address to print also backtrace info for
exceptions generated from the main body

git-svn-id: trunk@2265 -
2006-01-12 08:46:36 +00:00
florian
30fc11e7ca * makefiles regenerated
git-svn-id: trunk@2260 -
2006-01-11 21:46:28 +00:00
peter
9464d1df6c * move vesa includes
git-svn-id: trunk@2247 -
2006-01-10 09:02:49 +00:00
Károly Balogh
4a8882d7fe + added __amigaos4__ symbol
git-svn-id: trunk@2240 -
2006-01-09 09:05:58 +00:00
florian
78447375dc * comment patch by Vincent Snijders
git-svn-id: trunk@2231 -
2006-01-08 16:28:32 +00:00
florian
d310c6f65c * regenerated
git-svn-id: trunk@2229 -
2006-01-08 16:25:41 +00:00
florian
4e6f4e5cb4 * make shared support
git-svn-id: trunk@2228 -
2006-01-08 15:56:31 +00:00
florian
af9d6344b8 * activated fastmove on win32
git-svn-id: trunk@2218 -
2006-01-08 10:10:28 +00:00
Jonas Maebe
cfae9df535 * added missing ","
git-svn-id: trunk@2216 -
2006-01-08 08:21:15 +00:00
marco
27c92161d6 * Ales Katona's errors patch
git-svn-id: trunk@2210 -
2006-01-07 18:41:15 +00:00
Károly Balogh
c723aa9c86 + first startup code implementation for amigaos4
git-svn-id: trunk@2200 -
2006-01-07 03:36:09 +00:00
Jonas Maebe
b334da9a54 * fixed dlgtemplate and dlgitemtemplate structs (Martin Schreiber)
git-svn-id: trunk@2198 -
2006-01-06 22:34:47 +00:00
Károly Balogh
000e839d77 - fixed system.chdir() to properly return error
+ better, more Amigaish sysutils.DirectoryExists() implementation

git-svn-id: trunk@2195 -
2006-01-06 14:21:51 +00:00
Jonas Maebe
f92f8501ff * applied r2098 change regarding threads destroying themselves to
the other bsd variants

git-svn-id: trunk@2158 -
2006-01-04 13:31:50 +00:00
Jonas Maebe
a67f42a3e7 * also return 0 when reading an unsigned integer at the end of a file
git-svn-id: trunk@2156 -
2006-01-04 12:07:21 +00:00
Jonas Maebe
58381ff7b6 * made chararray handling 98% TP-compatible, fixes web bugs 3012
and 4080. The compatibility differences are:
      a) writing a chararray which is zero-based but not zero-
         terminated does not cause a buffer overflow
      b) non-zero-based chararrays can also be read

    The difference was that previously, all chararrays were treated
    as pchars. In TP/Delphi (and now also in FPC), this is only done
    for zero-based chararrays. For non-zero-based ones, the entire
    contents of the array should always be used (including #0's).

    The default parameters in the system unit for the chararray
    helpers are to avoid having to use a define for bootstrapping.

git-svn-id: trunk@2152 -
2006-01-04 10:05:10 +00:00
florian
f60d89cc75 + StrToQWord patch from Vincent Snijders
git-svn-id: trunk@2148 -
2006-01-03 22:15:22 +00:00
Jonas Maebe
69c64cf40b * initialise windmax (web bug #4654)
git-svn-id: trunk@2146 -
2006-01-03 21:24:03 +00:00
marco
1318b959e0 * ffinish patch
git-svn-id: trunk@2141 -
2006-01-03 19:09:25 +00:00
florian
ce73006fc3 * picfied code
git-svn-id: trunk@2127 -
2006-01-02 18:35:17 +00:00
florian
48c8401104 * proper setting of symbol sizes and types
git-svn-id: trunk@2126 -
2006-01-02 18:35:01 +00:00
Tomas Hajny
6d96ee4819 * fixed occassional crash during InitArguments
git-svn-id: trunk@2112 -
2006-01-01 23:28:25 +00:00
florian
fb4557d71e * first implementation of pic for i386
git-svn-id: trunk@2107 -
2006-01-01 20:14:48 +00:00
marco
2dbe7d22c2 * Indy fix (freeonterminate workaround)
git-svn-id: trunk@2098 -
2005-12-31 15:40:19 +00:00
marco
a5276e396e * fixed FreeBSD 6 cprt0.as Use -Xf from now on.
git-svn-id: trunk@2097 -
2005-12-31 15:39:35 +00:00
Jonas Maebe
226ef51699 * cpux86 -> cpui386 (cpux86 does not exist)
git-svn-id: trunk@2095 -
2005-12-31 14:21:11 +00:00
Jonas Maebe
c945b972c4 * fixed FpGetRLimit and FpUGetRLimit
git-svn-id: trunk@2093 -
2005-12-31 13:52:38 +00:00
marco
f8c25e9905 * setsockopt detail bug
git-svn-id: trunk@2083 -
2005-12-30 18:58:57 +00:00
daniel
3758d106fe * remove command about quotes in array version of executeprocess, which doesn't
apply there

git-svn-id: trunk@2080 -
2005-12-30 09:19:23 +00:00
marco
51297c3d7b * PosSet(Ex)
git-svn-id: trunk@2076 -
2005-12-29 15:37:19 +00:00
florian
d1709eaefb * rebuild Makefile
git-svn-id: trunk@2074 -
2005-12-29 14:53:59 +00:00
florian
bbb39044ff * fixed win32 makefile
git-svn-id: trunk@2073 -
2005-12-29 14:48:19 +00:00
florian
da18dca277 * graph and ggigraph unit moved to packages/base
git-svn-id: trunk@2071 -
2005-12-29 14:36:22 +00:00
oro06
c1ac14c0f3 *arm/wince lib import corrected for Loadlibrary, GetProcAddress
git-svn-id: trunk@2070 -
2005-12-28 15:09:52 +00:00
oro06
19b6be7d8e +arm/wince more rtl units : winsock, sockets
+arm/wince more fcl units : resolve, ssockets

git-svn-id: trunk@2065 -
2005-12-27 15:37:15 +00:00
florian
834ae15bd1 * fixed sparc building
git-svn-id: trunk@2063 -
2005-12-27 10:41:42 +00:00
Jonas Maebe
640ddd2e26 - removed unused local conflicting type definition
git-svn-id: trunk@2056 -
2005-12-26 16:01:13 +00:00
Jonas Maebe
76857dbca9 * set result of SetPrecisionMode()
git-svn-id: trunk@2055 -
2005-12-26 15:52:57 +00:00
Jonas Maebe
ea3c2fdf46 * fixed used of uninitialized variable in VariantToSingle()
git-svn-id: trunk@2054 -
2005-12-26 15:32:40 +00:00
oro06
c007b1cd90 +arm/wince more fcl units : process, fileinfo
*types.pp : new define Win32orCE added

git-svn-id: trunk@2051 -
2005-12-26 11:06:05 +00:00
peter
63091ddafc * blksze to blksize
git-svn-id: trunk@2050 -
2005-12-25 11:08:23 +00:00
Jonas Maebe
b08eccdbf0 - reverted ansi2wide and wide2ansi changes, because they affect
third party sources too much

git-svn-id: trunk@2046 -
2005-12-24 01:40:23 +00:00
Jonas Maebe
5b9f58ef73 * reverted r2037 because of braindead "out" semantics for refcounted
types

git-svn-id: trunk@2045 -
2005-12-24 01:06:05 +00:00
Jonas Maebe
9a08cdccf0 * several changes of var parameters into out parameters to avoid
useless warnings: code parameter of val(), destination of str(),
    destinations of ansi2wide and wide2ansi

git-svn-id: trunk@2041 -
2005-12-23 22:25:26 +00:00
Jonas Maebe
4c3fb9ae00 * frexp has out instead of var parameter
git-svn-id: trunk@2040 -
2005-12-23 22:03:21 +00:00
Jonas Maebe
84aab46550 * changed formal "var" paramters of move, movechar0 and fill* into
"out" parameters to avoid wrong "uninitialized" warnings

git-svn-id: trunk@2037 -
2005-12-23 20:59:08 +00:00
peter
9b0c8269bc * remove also 255 limit for ExtractFileExt
git-svn-id: trunk@2033 -
2005-12-23 10:02:21 +00:00
marco
5008bb74b1 * removed 255 char limit in extractfilename
git-svn-id: trunk@2032 -
2005-12-23 09:41:19 +00:00
oro06
06d8d7c03c * updated compilation pb
git-svn-id: trunk@2012 -
2005-12-20 18:55:53 +00:00
peter
68e56b9fc7 * write only unique property names in rtti
git-svn-id: trunk@2007 -
2005-12-20 14:44:48 +00:00
peter
6238b1a917 * use NameIndex in GetPropInfos
git-svn-id: trunk@2004 -
2005-12-20 10:35:08 +00:00
peter
767291ca5f * refactor reading and setting of parent classes
git-svn-id: trunk@1992 -
2005-12-19 12:24:45 +00:00
tom_at_work
c3f678e8df * updated makefiles for ppc64/linux to allow successful snapshot building on that platform
git-svn-id: trunk@1975 -
2005-12-16 20:37:08 +00:00
peter
9d817056ce * optimize by removing expensive calculations
git-svn-id: trunk@1973 -
2005-12-16 17:19:37 +00:00
florian
398cafb1a0 * fixed cases
git-svn-id: trunk@1969 -
2005-12-15 22:55:43 +00:00
florian
da9469c550 * avoid unique call in ansistr_append
git-svn-id: trunk@1968 -
2005-12-15 22:55:20 +00:00
florian
e2a4dac215 + i386 assembler versions of decr_ansistring and unique_ansistring
git-svn-id: trunk@1963 -
2005-12-15 19:51:57 +00:00
Jonas Maebe
50ebeaad5e * fixed fpc_ansistr_append_ansistring() in case it's called to append a
string to itself

git-svn-id: trunk@1961 -
2005-12-15 15:22:35 +00:00
Károly Balogh
cea0af646c + Lot of fixes, cleanups and additions for MUI
git-svn-id: trunk@1955 -
2005-12-15 10:47:14 +00:00
Károly Balogh
acb7b263b0 - Removed __stklen accidentally left in
git-svn-id: trunk@1952 -
2005-12-14 23:51:01 +00:00
Károly Balogh
d5aa345bb3 + Proper startup code for Amiga/m68k (for the first time in history)
git-svn-id: trunk@1951 -
2005-12-14 23:36:33 +00:00
peter
198aa2e72a * change value to const string to remvoe implicit exception stack:
git-svn-id: trunk@1949 -
2005-12-14 17:23:32 +00:00
daniel
178b756607 * Move grab_vcsa to utils
git-svn-id: trunk@1946 -
2005-12-13 21:51:00 +00:00
peter
0cd68e3c5d * ifndef ver2_0 added
git-svn-id: trunk@1936 -
2005-12-12 07:01:03 +00:00
daniel
79329acde4 * Less bloated ttyname implementation
git-svn-id: trunk@1928 -
2005-12-11 16:58:35 +00:00
daniel
15e90d7f17 * Grab_vcsa utility that is supposed to be installed suid root.
It sets the permissions, in case you are logged in on the console,
    of your /dev/vcs and /dev/vcsa device to the permissions of your
    /dev/tty device, making sure programs using the video unit can
    use the Linux console mode instead of the Network mode.

git-svn-id: trunk@1927 -
2005-12-11 14:25:07 +00:00
florian
d473e9873d * fixed declaration of NullHandle
git-svn-id: trunk@1926 -
2005-12-10 22:15:00 +00:00
Jonas Maebe
9b9dd342c5 * fixed strpos() in case source or target is nil
+ added test for this

git-svn-id: trunk@1907 -
2005-12-09 14:57:10 +00:00
Jonas Maebe
4577a6a98e + added a number of constants from /usr/include/sys/iocomm.h and filio.h
(including FIONREAD, needed for lazarus)

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

git-svn-id: trunk@1900 -
2005-12-07 20:01:15 +00:00
Jonas Maebe
2dea0c793f * made the target parameter of SetString an "out" instead of "var" parameter
git-svn-id: trunk@1896 -
2005-12-07 16:06:34 +00:00
Jonas Maebe
5769739834 * fixed floattostr and friends for systems where extended = double
git-svn-id: trunk@1882 -
2005-12-05 14:09:35 +00:00
tom_at_work
3502898ba3 * makefile updates after last changes for successful build on ppc64/linux
git-svn-id: trunk@1874 -
2005-12-04 13:07:37 +00:00
Tomas Hajny
f9e28f363d * workaround for OS/2 bug - check for 64kB border crossing in parameters for DosExecPgm
git-svn-id: trunk@1861 -
2005-12-01 22:07:32 +00:00
daniel
63ea645207 var & const were sometimes lowercased, sometimes uppercased. Put them
in lowercase.

git-svn-id: trunk@1846 -
2005-11-29 23:28:32 +00:00
Károly Balogh
0305d49c53 * Modified makefile to match the changes
git-svn-id: trunk@1837 -
2005-11-28 03:52:14 +00:00
Károly Balogh
20face432b * fixed double identifier
git-svn-id: trunk@1836 -
2005-11-28 03:48:33 +00:00
Károly Balogh
2ec1678cc1 * Changes for better MUI support
git-svn-id: trunk@1835 -
2005-11-28 03:29:37 +00:00
Károly Balogh
06ba490487 + some more emulinterface consts added
git-svn-id: trunk@1833 -
2005-11-27 06:51:01 +00:00
Károly Balogh
548bf2f29f + Implemented (hopefully correct) DoSuperMethodA()
git-svn-id: trunk@1832 -
2005-11-27 06:01:50 +00:00
Károly Balogh
7459e9431c * Makefile adjustments for MUI
git-svn-id: trunk@1831 -
2005-11-27 04:16:40 +00:00
Károly Balogh
848a56bdb9 + Support unit for MUI widget kit added
git-svn-id: trunk@1830 -
2005-11-27 04:10:09 +00:00
Károly Balogh
e1aa3018f6 * Few more changes for MorphOS OpenGL support
* TinyGL unit moved to RTL, because it fits there better

git-svn-id: trunk@1829 -
2005-11-26 22:47:39 +00:00
Károly Balogh
b881329fdc * a very early aboxlib implementation
git-svn-id: trunk@1819 -
2005-11-25 05:29:15 +00:00
florian
446c24ed77 * fixed StrToFloat for large constants
git-svn-id: trunk@1817 -
2005-11-24 20:50:40 +00:00
Károly Balogh
548a38ac21 Fixed do_erase and do_rename Unix2Amiga path conversions
git-svn-id: trunk@1815 -
2005-11-24 11:40:02 +00:00
Károly Balogh
bd24678ae5 Merged r1666 changes from fixes branch
git-svn-id: trunk@1813 -
2005-11-24 04:58:15 +00:00
marco
bd30d32683 * getrandomrgn
git-svn-id: trunk@1809 -
2005-11-23 19:43:16 +00:00
florian
fd2afe913f * AnsiEndsStr fixed
git-svn-id: trunk@1807 -
2005-11-23 19:30:33 +00:00
florian
609a9c0412 * fixed AnsiContainsText
git-svn-id: trunk@1806 -
2005-11-23 19:21:21 +00:00
marco
f7f14e4dee * CROSSOPT support
git-svn-id: trunk@1798 -
2005-11-20 22:19:50 +00:00
florian
d6d8756e3d * hopefully fixed setup of long/shortdateformat setup
git-svn-id: trunk@1797 -
2005-11-20 22:19:37 +00:00
tom_at_work
67e5a7621a * fixes for successful cycle on 64 bit systems after 64 bit FS changes
git-svn-id: trunk@1794 -
2005-11-20 18:14:23 +00:00
florian
b88fcfda62 + 64 bit fs support
git-svn-id: trunk@1793 -
2005-11-20 15:50:06 +00:00
florian
4a6939e354 * made generic basic file handling 64 bit
git-svn-id: trunk@1792 -
2005-11-20 12:23:54 +00:00
Károly Balogh
b23adc3ab5 + added datatypes.library support
git-svn-id: trunk@1788 -
2005-11-20 08:34:04 +00:00
tom_at_work
174297c4cf * ppc32: added FPU configuration code in math unit (fixes tw3161)
git-svn-id: trunk@1787 -
2005-11-20 01:21:55 +00:00
tom_at_work
651f34e27c * ppc64: with -Or the compiler now also generates calls to helper functions in the function prolog/epilog instead of multiple stores/loads
* ppc64: moved function prolog/epilog helper code into startup code
* ppc64: added FPU configuration code in math unit (fixes tw3161)

git-svn-id: trunk@1786 -
2005-11-20 01:20:55 +00:00
tom_at_work
268050b0c1 * added ptrgl helper to cprt0 startup code as well
git-svn-id: trunk@1779 -
2005-11-17 21:35:47 +00:00
tom_at_work
88cd832f48 * ppc64/linux: fixed and enabled most assembly helpers
git-svn-id: trunk@1775 -
2005-11-16 20:53:58 +00:00
tom_at_work
9d7ac02696 * fixed tb0488 on unix platforms (missing cwstring uses)
* 64bit big-endian fix of dynamic array handling
* added qword support for %x format specifier of format() functions

git-svn-id: trunk@1773 -
2005-11-16 20:50:38 +00:00
peter
4286b4364c * Mac conversions from Mark de Wever
git-svn-id: trunk@1764 -
2005-11-16 06:38:33 +00:00
tom_at_work
3bf1152a9c * ppc64/linux: fixed and enabled some more assembly routines in the RTL
* ppc64/linux: cleaned up several files (mainly proper comments)

git-svn-id: trunk@1757 -
2005-11-15 17:30:15 +00:00
tom_at_work
99ed1d009b * ppc32/linux: cprt0 update, fixing linking to libc
* ppc32/linux: stat update, making the compiler cycle with -dFPC_USE_LIBC again
* fixed typo in ugetrlimit libc function name

git-svn-id: trunk@1756 -
2005-11-15 17:27:42 +00:00
marco
b6ed07eb30 * fixed RLIMIT_VMEM gotcha
git-svn-id: trunk@1754 -
2005-11-15 11:15:27 +00:00
marco
238510c59d * added resource consts and types
git-svn-id: trunk@1749 -
2005-11-14 11:31:28 +00:00
olle
0fde736720 fixed support for filenames with spaces in exec
git-svn-id: trunk@1738 -
2005-11-13 20:56:40 +00:00
Tomas Hajny
f29fde8978 * CheckInitialStkLen and/or StackLength initialization added to previously omitted targets
git-svn-id: trunk@1736 -
2005-11-13 19:13:16 +00:00
Tomas Hajny
349d7108ce * Check of memory ranges under OS/2 added to HeapTrc
git-svn-id: trunk@1735 -
2005-11-13 19:05:38 +00:00
Tomas Hajny
7ab72f43b3 * DosWrite only possible under non-PM apps
git-svn-id: trunk@1732 -
2005-11-13 17:30:18 +00:00
marco
3638f8fdea * couple of redefs for bug #4509
git-svn-id: trunk@1730 -
2005-11-13 15:25:26 +00:00
marco
09134bd40a * patch with a _lot_ more constants from JP Mugaas (for Indy)
git-svn-id: trunk@1729 -
2005-11-13 14:56:35 +00:00
tom_at_work
cc2873232f * forgot to add CheckInitialStkLen function
* fixed two unitinitialized StackLength variables

git-svn-id: trunk@1727 -
2005-11-12 11:34:15 +00:00
tom_at_work
47258d61a6 * some cleanup, typo fixes
git-svn-id: trunk@1723 -
2005-11-11 12:37:28 +00:00
tom_at_work
1b4b42fdd6 * added CheckInitialStkLen() function which checks whether the given stack size value is valid on the OS when creating a thread, fixing stack checking
git-svn-id: trunk@1722 -
2005-11-11 12:16:08 +00:00
michael
59d3cd95a8 + Patch from Michalis Kamburelis to implement correct config dir, following basedir-spec
git-svn-id: trunk@1719 -
2005-11-10 20:40:11 +00:00
tom_at_work
367df58016 * stack related things (sizes, calculations, etc.) are now 64 bit on 64 bit platforms
* default stack size is now also 32k for Windows (allows the use of stack checking when using threads)

git-svn-id: trunk@1718 -
2005-11-10 17:06:25 +00:00
tom_at_work
940f953e8b * cleanup, removing debug code removed and fixing file headers
* cprt0 updates

git-svn-id: trunk@1713 -
2005-11-10 15:08:41 +00:00
tom_at_work
d54dbdf9b6 * new constants for si_code field for FPU signals (required by commit 1710)
git-svn-id: trunk@1712 -
2005-11-10 15:04:28 +00:00
tom_at_work
745cafdc70 * signal handler update, uses uc_mcontext instead of sigcontext_struct in later Linux versions
* syscalls update

git-svn-id: trunk@1711 -
2005-11-10 15:01:00 +00:00
Vincent Snijders
353f623f1f removed seek64bit define
git-svn-id: trunk@1704 -
2005-11-09 13:26:22 +00:00
peter
91324759e4 * fixed range error in FpSigFillSet
git-svn-id: trunk@1692 -
2005-11-08 09:15:20 +00:00
Tomas Hajny
e90a6deebb * Alle -> all
git-svn-id: trunk@1681 -
2005-11-06 19:00:30 +00:00
florian
8b3c634573 * fixed DynArraySetLength
git-svn-id: trunk@1678 -
2005-11-06 17:16:55 +00:00
florian
9efae2700b * more rangecheck fixing
git-svn-id: trunk@1676 -
2005-11-06 09:21:52 +00:00
florian
a636570436 * compile with $R-
git-svn-id: trunk@1675 -
2005-11-06 09:18:35 +00:00
Tomas Hajny
69cc232b0b * WaitFor modified to call CheckSynchronize - to be tested with 3695
git-svn-id: trunk@1671 -
2005-11-06 01:53:48 +00:00
marco
a9a3c88fed * small but significant typo fixed for ipv6 sockaddr record in BSD style (_WITH_ sinlen)
git-svn-id: trunk@1665 -
2005-11-05 19:49:10 +00:00
florian
375bc7bbb0 + TThread.WaitFor needs to call CheckSynchronize
git-svn-id: trunk@1661 -
2005-11-05 17:42:13 +00:00
florian
370a66a452 * reverted r1651
git-svn-id: trunk@1653 -
2005-11-05 09:54:44 +00:00
florian
a884848684 * ThreadProc needs stdcall or cdecl calling conventions usually
git-svn-id: trunk@1651 -
2005-11-05 00:05:07 +00:00
florian
9749238cfe * OrdType isn't valid for Int64 and QWord
git-svn-id: trunk@1644 -
2005-11-04 21:22:00 +00:00
florian
ba22b0b3af + format("%d",[<qword>]); fixes 4489
git-svn-id: trunk@1640 -
2005-11-04 19:01:33 +00:00
tom_at_work
324dd47e7e * added stacksize parameter for TThread.Create for some platforms left out in commit 1621
git-svn-id: trunk@1637 -
2005-11-03 15:44:22 +00:00
tom_at_work
7a1860190b * fixes error introduced in sscanf() when looking for 64 bit unsafe pointer casts
git-svn-id: trunk@1632 -
2005-11-02 19:55:57 +00:00
marco
6279c187f9 * stacksize fixes for freebsd
git-svn-id: trunk@1630 -
2005-11-02 14:52:05 +00:00
florian
380d3be22c * started to fix var. array -> dyn. array
git-svn-id: trunk@1626 -
2005-11-01 22:41:25 +00:00
tom_at_work
653f4b465d * fixed some typecasts of pointers to Longint for 64 bit architectures (Linux and generic parts of the RTL only)
* 64 bit sockets unit fixes

git-svn-id: trunk@1625 -
2005-11-01 22:40:23 +00:00
florian
9e30922547 * fixed previous commit
git-svn-id: trunk@1623 -
2005-11-01 22:13:37 +00:00
florian
7bff61ce29 * patch from Ales Katona to add a stack size parameter to tthread functions
git-svn-id: trunk@1621 -
2005-11-01 22:01:48 +00:00
florian
25ce080225 * BGI font fix from Lowell C. Savage
git-svn-id: trunk@1620 -
2005-11-01 21:56:50 +00:00
tom_at_work
b8f34684ec - fixed TFDSet type for 64 bit compatibility
git-svn-id: trunk@1618 -
2005-11-01 21:08:07 +00:00
florian
c5f82ba6de + (ole)variant<->error type conversion
+ DynArraySetLength
+ DynArrayFromVariant

git-svn-id: trunk@1608 -
2005-10-30 23:12:08 +00:00
tom_at_work
2198a6a44a * assembly round and trunc routines for ppc64
git-svn-id: trunk@1601 -
2005-10-26 21:43:54 +00:00
tom_at_work
c5f89d7efd * release old stack pointer register on ppc64 after method prolog
* threading fixes for ppc64
* fixed a_param_ref to respect the size parameter on ppc64
* better stack size calculation for ppc64

git-svn-id: trunk@1599 -
2005-10-26 19:50:17 +00:00
tom_at_work
5520442fc4 * call by register now also takes care of the TOC and environment pointer
* first "optimize for size"-optimization

git-svn-id: trunk@1593 -
2005-10-25 20:12:21 +00:00
florian
9fd0bb293d * fixed typo in previous commit
git-svn-id: trunk@1575 -
2005-10-23 14:01:08 +00:00
florian
d2a111105e * made syscall.inc pic safe
git-svn-id: trunk@1574 -
2005-10-23 13:48:51 +00:00
florian
8711adb9d1 * fixed exp to be pic safe
git-svn-id: trunk@1573 -
2005-10-23 13:37:08 +00:00
Jonas Maebe
5cd3f3272c * fixed fpdup2() for non-text files
git-svn-id: trunk@1557 -
2005-10-21 12:34:36 +00:00
florian
2dcefd968f * fixed video unit for windows with sizes requiring scrolling
* prevent potential overflow by changing integer to longint

git-svn-id: trunk@1552 -
2005-10-20 19:30:57 +00:00
tom_at_work
202236c6e0 * fpcmake.ini update which fixes glibc search path problems on PowerPC64
* makefile update

git-svn-id: trunk@1546 -
2005-10-20 16:56:40 +00:00
yury
cdd17e4299 * readme.txt changes.
git-svn-id: trunk@1494 -
2005-10-19 07:21:58 +00:00
peter
75c00e21c9 * i386 signal handler receives a ucontext instead of sigcontext
git-svn-id: trunk@1478 -
2005-10-18 13:41:48 +00:00
peter
7f6d44006e * disable TLS segment initialization, it breaks threading
git-svn-id: trunk@1470 -
2005-10-18 11:20:36 +00:00
peter
ea6dadb7be * make widestrings compatible with COM BSTR, the length is now the number
of bytes allocated instead of the number of widechars

git-svn-id: trunk@1467 -
2005-10-18 09:45:13 +00:00
florian
11336b091d + TInterfaceList implemented
git-svn-id: trunk@1453 -
2005-10-17 21:39:46 +00:00
tom_at_work
4db863d076 * first shared library link path fixes
* PowerPC64/Linux signal handler now differs between different FP exceptions

git-svn-id: trunk@1452 -
2005-10-17 21:30:21 +00:00
tom_at_work
4176b71277 * fixed variants unit to make it compile for 64 bit targets
git-svn-id: trunk@1451 -
2005-10-17 21:23:48 +00:00
florian
71dac7c02f + RegisterClassAlias implemenentation from Stefan van den Berg
git-svn-id: trunk@1449 -
2005-10-17 20:56:39 +00:00
Jonas Maebe
2cb88de19b * fixed missing digit when printing a double whose significant digits are
all before the floating point on a cpu/fpu supporting maximally double
    precision
  * fixed test in tw1792a for double precision fpu's (they can print one
    digit less for double precision numbers than 80 bit fpu's)

git-svn-id: trunk@1446 -
2005-10-17 20:33:07 +00:00
yury
2332eae403 * prevent endless stack dump if an exception occured during the dump itself.
git-svn-id: trunk@1427 -
2005-10-16 17:17:50 +00:00
Jonas Maebe
f5083e8dfa * fixed FreeOnTerminate (was already fixed in Linux version)
* handle interrupted reads from the semaphore pipe in Darwin (should be
    applied to *BSD and Linux as well)
  + lots of extra debugging code in Darwin tthread.inc if DEBUG_MT defined

git-svn-id: trunk@1416 -
2005-10-16 13:59:19 +00:00
yury
a5f134ba25 * floating point exceptions were enabled.
git-svn-id: trunk@1409 -
2005-10-16 13:07:11 +00:00
florian
d8acc80ae5 * reverted inline patch partly
* improved append_char by avoiding unnecessary unique call

git-svn-id: trunk@1406 -
2005-10-16 11:24:24 +00:00
yury
3239011837 * DOS<->Win filetime conversion was fixed.
* FileExists fix from Win32 was applied.

git-svn-id: trunk@1405 -
2005-10-16 10:28:10 +00:00
florian
396b5524ee * patch from Luiz Américo:
1 - Return false when the argument is a directory (like Delphi)
  2 - Return false when passing '*' as argument (like Delphi)
  3 - Its faster 

git-svn-id: trunk@1404 -
2005-10-16 09:17:41 +00:00
Jonas Maebe
f67ffaa7c8 * fixed TextToFloat for platforms where currency = Int64 (webtbs/tw4093)
git-svn-id: trunk@1402 -
2005-10-16 06:28:14 +00:00
marco
14e7ad4cfe * added some constants
git-svn-id: trunk@1397 -
2005-10-15 22:35:15 +00:00
tom_at_work
701638138b * fixed exception handling for PowerPC64
* math library is now automatically linked on non-x86 platforms when FPC_USE_LIBC is defined
* generic C system function signature adaptions for 64 bit CPUs 

git-svn-id: trunk@1392 -
2005-10-15 21:24:15 +00:00
marco
a2ba7077e9 * some very generic constants added.
git-svn-id: trunk@1388 -
2005-10-15 19:28:21 +00:00
Jonas Maebe
2dbdc474fd * use register variables when release-building for ppc (more or less doubles
performance for most programs)

git-svn-id: trunk@1383 -
2005-10-15 16:36:52 +00:00
tom_at_work
0ba960e1bd * added workarounds for some load/store instructions requiring 4 byte aligned addresses
* some cleanup and optimization of 64 bit address loading in the code generator
* small changes to the IDE to make it compile
* stat type update for packages/cdrom compatibility

git-svn-id: trunk@1375 -
2005-10-14 00:00:16 +00:00
florian
78abb1603d * synched with i386
git-svn-id: trunk@1373 -
2005-10-13 20:59:00 +00:00
marco
0bc7d92310 * removed old BSD ifdefs
git-svn-id: trunk@1368 -
2005-10-13 18:39:22 +00:00
tom_at_work
3f4682400c * fixed basic signal handling for PowerPC64/linux, by updating related types and major code cleanup
git-svn-id: trunk@1364 -
2005-10-12 22:46:13 +00:00
tom_at_work
0b34b01a6d * fixed class messages for PowerPC64, due to a wrong typecast
git-svn-id: trunk@1363 -
2005-10-12 22:28:51 +00:00
peter
9d0851e4a1 * remove comment level 2 warning
git-svn-id: trunk@1355 -
2005-10-11 06:48:32 +00:00
peter
6314aa118f * support for MCBS from bug #4211
git-svn-id: trunk@1353 -
2005-10-11 06:36:07 +00:00
tom_at_work
bfb2c916dc * fixed problem with too large offsets in conditional jumps (see also rev 1161 for the PowerPC code)
* updated sysnr.inc for PowerPC64 from 2.6.11 kernel sources
* fixed SigactionRec sa_flags field sizes, which improves signal handling for PowerPC64 platform

git-svn-id: trunk@1352 -
2005-10-10 23:45:57 +00:00
marco
5fbf962637 * small fix for 1735, tw2242 still broken due to complexity.
git-svn-id: trunk@1350 -
2005-10-10 12:09:57 +00:00
marco
411e2359eb * Fixed 2.0.0 compilation
git-svn-id: trunk@1346 -
2005-10-09 21:29:01 +00:00
marco
f054a6df16 * nanosleep for sleep(), since it is now in the POSIX group.
git-svn-id: trunk@1341 -
2005-10-09 11:41:57 +00:00
marco
8f50bb556e * small fix to inclocked inlining changes
git-svn-id: trunk@1340 -
2005-10-09 11:06:47 +00:00
marco
5c92d88da8 * inlined a few funcs, inlined the non threaded part of inc/declocked. The lock prefixed one
remains a separate proc, as it is slow anyway.

git-svn-id: trunk@1339 -
2005-10-09 10:57:29 +00:00
tom_at_work
9e7d550455 * fixed last commit (1337) which broke some files in the repository
git-svn-id: trunk@1338 -
2005-10-08 17:23:44 +00:00
tom_at_work
f7f0f9c426 * makefile adaption to be able to cycle compiler and RTL on PowerPC64 target
* some fixes for PowerPC64 target in the code generator and the RTL
* stabs generation for PowerPC64 is okay now (untested)

git-svn-id: trunk@1337 -
2005-10-08 15:48:39 +00:00
yury
48b75a0608 * compilation for i386-wince was fixed.
* some warnings and DirectoryExists were fixed in sysutils

git-svn-id: trunk@1336 -
2005-10-08 14:09:00 +00:00
michael
9a1052e1be + Patch from Luiz Américo to fix direxists
git-svn-id: trunk@1334 -
2005-10-08 13:49:30 +00:00
yury
a6b84b93e1 * another ARM data alignment issue was fixed.
git-svn-id: trunk@1333 -
2005-10-08 13:48:03 +00:00
yury
771743a61c * varutils,variants,dynlibs units are built now for wince.
* added readme.txt

git-svn-id: trunk@1316 -
2005-10-07 16:45:48 +00:00
yury
15893c0a05 * build more units for wince.
* exitcode was fixed.
* stderr handle was fixed.
* support for heaptrc was added.

git-svn-id: trunk@1315 -
2005-10-07 15:47:25 +00:00
yury
7ec8589616 * added support for wince in heaptrc.
* fixed alignment for ARM CPU in heaptrc.

git-svn-id: trunk@1314 -
2005-10-07 15:43:54 +00:00
yury
09bb934c15 * adds,subs,muls,divs compilerprocs declaration was fixed.
git-svn-id: trunk@1312 -
2005-10-07 13:56:05 +00:00
Jonas Maebe
e68436cfda * fixed ttyname()
git-svn-id: trunk@1310 -
2005-10-07 09:36:35 +00:00
Jonas Maebe
b766a42e23 * fixed return value of IsATTY()
git-svn-id: trunk@1308 -
2005-10-07 09:29:13 +00:00
peter
cc38ec676e * add winwidestringalloc boolean, set it to false to use the fpc
heapmanager to allocate widestrings

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

git-svn-id: trunk@1303 -
2005-10-05 21:55:25 +00:00
florian
91be287119 * exit_group isn't available on older linuxes, if exit_group fails, use exit
git-svn-id: trunk@1299 -
2005-10-05 19:24:00 +00:00
peter
9ea69cfec9 * fix isatty return value checks
git-svn-id: trunk@1292 -
2005-10-05 06:50:16 +00:00
Károly Balogh
ccc29a13f3 * added SysResetFPU, which is required for MorphOS
git-svn-id: trunk@1279 -
2005-10-03 22:49:44 +00:00
florian
1102cc2b95 * hopefully final fix for the hinstance problem of libraries
git-svn-id: trunk@1276 -
2005-10-03 21:10:19 +00:00