Commit Graph

5644 Commits

Author SHA1 Message Date
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
florian
dcab72078b * U_SYSTEM_HINSTANCE -> U_SYSTEM_SYSINSTANCE
git-svn-id: trunk@1267 -
2005-10-03 14:31:06 +00:00
florian
c15e0911e5 + more runerrors 214
git-svn-id: trunk@1264 -
2005-10-03 08:30:08 +00:00
florian
d4bb99a5fb + runerror 214: bus error/data misaligment
git-svn-id: trunk@1263 -
2005-10-03 08:25:20 +00:00
florian
d9c071da6d * fixed double comparison on wince
git-svn-id: trunk@1262 -
2005-10-03 07:43:36 +00:00
peter
da9ea7ff88 * use exit_group syscall to also stop all threads
git-svn-id: trunk@1259 -
2005-10-02 21:12:45 +00:00
florian
1b6364ceba * fixed fillchar parameters
git-svn-id: trunk@1257 -
2005-10-02 17:06:06 +00:00
florian
468c2476de * we should zero out the data instead of the pointer
git-svn-id: trunk@1253 -
2005-10-02 10:03:26 +00:00
florian
6bf8d76140 * zero out resource info record
git-svn-id: trunk@1252 -
2005-10-02 09:46:43 +00:00
florian
8cc183c1d1 * resources aren't case sensitive
* fixed installing of default component loading handler

git-svn-id: trunk@1250 -
2005-10-02 09:08:21 +00:00
florian
e864a12528 + loading of components from resources
git-svn-id: trunk@1249 -
2005-10-02 08:10:17 +00:00
peter
e94b08ae68 * fix shmat from Nikolay Nikolov
git-svn-id: trunk@1247 -
2005-10-01 20:54:11 +00:00
peter
bd8db92094 * BDR_SUNKENOUTER = 2
git-svn-id: trunk@1246 -
2005-10-01 20:50:54 +00:00
peter
230bd19451 * fixed 2.0.x compilation
git-svn-id: trunk@1241 -
2005-10-01 20:21:50 +00:00
florian
3a5895be0f * StringToWideChar fixed
git-svn-id: trunk@1236 -
2005-09-30 08:30:44 +00:00
oro06
e6fc1af8b9 + added rtl/wince aygshell, commctrl start
git-svn-id: trunk@1234 -
2005-09-30 05:20:22 +00:00
peter
6499d65c39 * fixed compilation with 2.0.x
git-svn-id: trunk@1223 -
2005-09-29 06:26:02 +00:00
marco
73e81ac45a * inlined few procs. Didn't inline makeraw since that triggers inline WITH bug.
git-svn-id: trunk@1221 -
2005-09-28 20:59:20 +00:00
marco
430cb886e3 * {$inline on in baseunix and some inlines in bunxovlh while I was at it
git-svn-id: trunk@1220 -
2005-09-28 20:31:24 +00:00
florian
a78703fb5a * fixed FPC_USE_LIBC on linux
git-svn-id: trunk@1218 -
2005-09-28 19:30:55 +00:00
yury
4b8ac056da * ifdef for WinCE was added.
git-svn-id: trunk@1215 -
2005-09-28 06:44:56 +00:00
florian
1d17d73b2f * first fixes for previous commit
git-svn-id: trunk@1214 -
2005-09-27 21:18:07 +00:00
florian
7626a64e35 + *stat wrappers for linux
git-svn-id: trunk@1213 -
2005-09-27 21:10:55 +00:00
yury
2228532373 * Forgot to add winres.inc in previous commit.
git-svn-id: trunk@1211 -
2005-09-27 18:23:23 +00:00
yury
3b95cb7259 * Resources stuff was fixed.
git-svn-id: trunk@1210 -
2005-09-27 18:19:34 +00:00
tom_at_work
3681639a6a - more PowerPC64 fixes; "Hello World" style programs can be compiled and run
git-svn-id: trunk@1209 -
2005-09-27 18:16:49 +00:00
peter
6bf3269b41 * powerpc64 port from Thomas Schatzl
git-svn-id: trunk@1193 -
2005-09-25 17:19:44 +00:00
florian
a7d088b197 + MAX_PATH
+ mime properties set

git-svn-id: trunk@1191 -
2005-09-25 15:44:26 +00:00
florian
6e2a771c41 * Ansi2Wide inserts ? for unknown chars
* better error reporting

git-svn-id: trunk@1189 -
2005-09-25 15:04:35 +00:00
florian
8e09d48591 - removed a writeln I recently committed by accident
git-svn-id: trunk@1188 -
2005-09-25 14:37:37 +00:00
florian
d629426b67 + system qualifier added
git-svn-id: trunk@1187 -
2005-09-25 14:35:01 +00:00
florian
a897adf6cc * try to unlock mutex before destroying it
git-svn-id: trunk@1186 -
2005-09-25 14:27:15 +00:00
florian
2f011934ef + pull in cthreads
git-svn-id: trunk@1183 -
2005-09-25 11:23:30 +00:00
florian
78f4cb86b0 * more widestring overloads for pos to avoid problems with selection of the correct one
git-svn-id: trunk@1177 -
2005-09-24 16:42:35 +00:00
florian
4f2c0a7049 * don't setup generic widestring routines, this would override the win32 specific ones
git-svn-id: trunk@1173 -
2005-09-24 10:04:21 +00:00
florian
e0d2eee158 * GenericAnsiStrComp fix from Vincent Snijders
git-svn-id: trunk@1172 -
2005-09-24 09:59:26 +00:00
florian
0b3094fdde * from Thomas Schatzl: changed result type of InstanceSize to PtrInt
* simplified some code
* small methods of tobject are now inlined

git-svn-id: trunk@1170 -
2005-09-24 08:35:43 +00:00
florian
700aacf6a3 + forgot to add some helpers, now type cast helpers for olevariants should be complete
git-svn-id: trunk@1169 -
2005-09-23 16:56:36 +00:00
florian
372141e19d + more olevariant type cast wrappers
git-svn-id: trunk@1168 -
2005-09-23 16:36:09 +00:00
florian
6863cb00df * code simplified
git-svn-id: trunk@1167 -
2005-09-23 16:35:46 +00:00
florian
c7cd9ff06b * TMultiReadExclusiveWriteSynchronizer fixed and moved to SysUtils
git-svn-id: trunk@1164 -
2005-09-23 13:07:11 +00:00
oro06
84cd7d6706 * fixed stream resource unicode issue
git-svn-id: trunk@1160 -
2005-09-23 10:02:01 +00:00
florian
95b995fe27 * fixed resource streams for 64 bit systems
git-svn-id: trunk@1158 -
2005-09-23 09:56:14 +00:00
florian
eb57d588fd + several olevariant helpers and wrappers implemented
git-svn-id: trunk@1157 -
2005-09-23 09:48:55 +00:00
florian
c94849ddb0 * readded overload directive to lowercase
+ lowercase(<variant>);

git-svn-id: trunk@1156 -
2005-09-22 17:18:28 +00:00
florian
6df53bf057 - removed overload directive from LowerCase, UpperCase hasn't one either
git-svn-id: trunk@1151 -
2005-09-20 21:10:24 +00:00
oro06
1cb9b55548 * updated wince\classes.pp stream resource unicode
git-svn-id: trunk@1149 -
2005-09-20 17:52:14 +00:00
peter
22a20e15e4 * aligntoptr needs to use unsigned calculations, patch by Thomas
git-svn-id: trunk@1148 -
2005-09-20 13:53:54 +00:00
marco
64dd758281 * minor updates
git-svn-id: trunk@1146 -
2005-09-20 11:23:18 +00:00
florian
527a01bc9d + TResourceStream implemented
git-svn-id: trunk@1143 -
2005-09-19 20:15:25 +00:00
florian
bb26084a0f + UCS4StringToWideString
+ WideStringToUCS4String
+ locale sensitive comparing of widestrings on unix

git-svn-id: trunk@1142 -
2005-09-19 19:13:03 +00:00