Commit Graph

12201 Commits

Author SHA1 Message Date
marcus
328772cc46 AROS: return code and comments in startupcode
git-svn-id: trunk@34827 -
2016-11-06 19:23:28 +00:00
Károly Balogh
6a856f109e m68k: made setjmp and longjmp code work when register calling convention is the default
git-svn-id: trunk@34826 -
2016-11-06 19:10:47 +00:00
marcus
f8a7708741 AROS: startupcode for arm-aros
git-svn-id: trunk@34820 -
2016-11-06 17:32:40 +00:00
michael
9926d37dda * Fix bug #30869, introduce CheckIndex in TStringList
git-svn-id: trunk@34817 -
2016-11-06 17:04:37 +00:00
Károly Balogh
7c1c964c28 arm-aros: enabled basic AROS on ARM build
git-svn-id: trunk@34811 -
2016-11-06 14:40:02 +00:00
marcus
e54fdc3853 m68k: fixed compilation without FPU after 34785
git-svn-id: trunk@34803 -
2016-11-06 08:42:41 +00:00
Károly Balogh
7293bb7fdb m68k: reworked setjmp/longjmp to also save the FPU registers (when compiled with HW FPU support), and to only save the nonvolatile registers
git-svn-id: trunk@34785 -
2016-11-05 22:02:50 +00:00
Jonas Maebe
1c04470b66 * converted for-loop to while-loop, because its loop count is used on exit
even if no break is triggered

git-svn-id: trunk@34776 -
2016-11-01 14:01:41 +00:00
Jonas Maebe
85f2903b8b * don't index past the end of the transitions array (mantis #30829)
git-svn-id: trunk@34775 -
2016-11-01 14:01:38 +00:00
nickysn
e1792e712a * changed the 'size' parameter of fpc_zeromem and fpc_fillmem from ptruint to sizeuint
git-svn-id: trunk@34741 -
2016-10-18 15:42:29 +00:00
pierre
a81d2b58f8 Rectify last accessed char in TBigEndianUnicideEncoding.GetChars, fixes test/units/sysutils/tencodingtest.pp failure with -gc option
git-svn-id: trunk@34740 -
2016-10-17 10:48:28 +00:00
svenbarth
f8b458106e * fix for Mantis #30747: for anonymous events CreateEvent() needs to be called with a Nil parameter for the name, not an empty string
git-svn-id: trunk@34736 -
2016-10-16 19:29:49 +00:00
florian
9c81e90e08 + extension to iso mode: reset/rewrite can take a file name as a second parameter
git-svn-id: trunk@34726 -
2016-10-16 07:55:08 +00:00
michael
9f88f52ddf * Getters/Setters should be private
git-svn-id: trunk@34725 -
2016-10-15 20:59:01 +00:00
svenbarth
63f0c7a2c3 Fix for Mantis #30734: Implement Delphi-compatible functions StrToUInt64(), StrToUInt64Def and TryStrToUInt64 as inline forwarders to the existing respective QWord functions
git-svn-id: trunk@34710 -
2016-10-13 17:49:50 +00:00
nickysn
9febafa8d5 * fixed win16 compilation, patch by Max Nazhalov
git-svn-id: trunk@34701 -
2016-10-09 19:20:54 +00:00
Károly Balogh
42760951f9 atari: added the initialization of threading subsystem to system init
git-svn-id: trunk@34697 -
2016-10-09 13:24:41 +00:00
Károly Balogh
63166555a2 atari: fixed file opening, we can now read text files at least on this platform
git-svn-id: trunk@34696 -
2016-10-09 13:23:59 +00:00
michael
5810ff8154 * Patch from Maciej Izak for delphi compatible TLocaleOptions (bug ID 30660)
git-svn-id: trunk@34683 -
2016-10-08 22:23:34 +00:00
nickysn
cf13bacbba + call InitSystemThreads in the win16 system unit as well
git-svn-id: trunk@34682 -
2016-10-08 22:04:40 +00:00
nickysn
e0267e3088 + call InitSystemThreads in the msdos system unit startup, to initialize the
thread manager object, so that rtl calls to InitCriticalSection don't crash

git-svn-id: trunk@34681 -
2016-10-08 22:03:27 +00:00
Jonas Maebe
265923a2ee * several fixes for TMultiReadExclusiveWriteSynchronizer, based on patch by
Derek (mantis #28830)
   o ability for a thread to acquire a readlock when it already holds a
     write lock, or vice versa
   o detect when thread1 releases a lock while it hadn't acquired one
   o correct result of beginwrite (return true only when another thread
     held/acquired a write lock before the current thread got it)
   o extra compared to Derek's patch: replaced some additional
     (mostly pre-existing) interlocked*() hacks with proper memory
     barriers, made formatting consistent, fixed compilation on platforms
     where tthreadid is not an integer type, improved tthreadid hashing
     function for 64 bit platforms, fixed some comments

git-svn-id: trunk@34678 -
2016-10-08 20:45:45 +00:00
Károly Balogh
579e1afe83 atari: an incomplete, but still large cleanup of the atari system unit
git-svn-id: trunk@34664 -
2016-10-08 13:55:59 +00:00
Károly Balogh
8e6ac69553 atari: updated makefiles
git-svn-id: trunk@34663 -
2016-10-08 13:32:43 +00:00
Károly Balogh
7962ce1c54 atari: include xbios and gemdos from sysos.inc
git-svn-id: trunk@34662 -
2016-10-08 13:25:24 +00:00
Károly Balogh
71a4087bc5 atari: new file for xbios defines
git-svn-id: trunk@34661 -
2016-10-08 13:24:40 +00:00
Károly Balogh
05a35a2a16 atari: cleaned up sysdir.inc. it was a combination of old code and copy-pasted code from Amiga
git-svn-id: trunk@34660 -
2016-10-08 12:55:41 +00:00
Károly Balogh
74516f90d3 atari: add a new Error to InOutRes function
git-svn-id: trunk@34659 -
2016-10-08 12:49:10 +00:00
Károly Balogh
1c0a370ce2 atari: rewrote system file functions. no inline assembly, updated to current standards and RTL internals
git-svn-id: trunk@34658 -
2016-10-08 12:48:23 +00:00
Károly Balogh
8166002c8a atari: align some variables properly in the startup code
git-svn-id: trunk@34657 -
2016-10-08 12:47:21 +00:00
Károly Balogh
91a8165ddc atari: added two more directory functions
git-svn-id: trunk@34656 -
2016-10-08 12:42:31 +00:00
nickysn
7d15b688e8 * TInterfaceEntry changed to a variant record, that overlays a CodePointer on
top of the IOffset: SizeUInt field, because it is sometimes used as a
  CodePointer (for etStaticMethodResult and etStaticMethodClass) and sometimes
  as a SizeInt and these two types can be of different size in certain i8086
  memory models

git-svn-id: trunk@34645 -
2016-10-07 20:18:02 +00:00
nickysn
019f904be8 - removed the FPC 2.6.x compatibility ifdefs from tinterfaceentry
git-svn-id: trunk@34637 -
2016-10-06 21:10:40 +00:00
nickysn
5e7ba4a893 * the type of FieldOffset in the TFieldInfo rtti structure changed to SizeUInt,
because it represents an offset _within_ a structure

git-svn-id: trunk@34627 -
2016-10-04 21:57:29 +00:00
Károly Balogh
5cec4b565b atari: use gemdos malloc/free as underlying functions for the heap
git-svn-id: trunk@34616 -
2016-10-04 10:31:49 +00:00
Károly Balogh
7bf2055ef9 atari: added an include file containing GEMDOS calls and other defines, to be used in the RTL
git-svn-id: trunk@34609 -
2016-10-03 23:12:05 +00:00
Jonas Maebe
868370d727 + InterlockedCompareExchangePointer() alias for InterlockedCompareExchange(pointer)
(mantis #29964)

git-svn-id: trunk@34599 -
2016-10-02 12:57:07 +00:00
Jonas Maebe
e5a1231931 * updated FSF address (mantis #30198, patch by Paul Gevers)
git-svn-id: trunk@34598 -
2016-10-02 12:56:59 +00:00
Károly Balogh
33602807f5 amicommon: set the return value of SysErrorMessage to something default. this is consistent with some other platforms
git-svn-id: trunk@34591 -
2016-10-02 02:03:22 +00:00
Károly Balogh
bfe904fb16 atari: dummy sysutils unit. to be implemented.
git-svn-id: trunk@34590 -
2016-10-02 01:58:32 +00:00
Károly Balogh
175cc52e8d atari: added classes unit and a dummy threading implementation
git-svn-id: trunk@34589 -
2016-10-02 01:33:26 +00:00
Károly Balogh
39f043c7fd atari: removed the ancient readme, stating there's no Makefile, as there's one now apparently
git-svn-id: trunk@34586 -
2016-10-01 16:39:48 +00:00
marco
fe99472d22 * fix missing 'kernel32' reported on forum by "DG"
git-svn-id: trunk@34571 -
2016-09-28 14:24:53 +00:00
pierre
749dc00401 Fix CheckPointer code for pointer in stack area for linux
git-svn-id: trunk@34551 -
2016-09-21 13:19:27 +00:00
Jonas Maebe
eb9d4b71b3 * equivalent of r34246 for targets using the non-fragile Objective-C ABI
(fixes webtbs/tw30443 for iOS and 64 bit targets)

git-svn-id: trunk@34549 -
2016-09-20 21:43:59 +00:00
sergei
67bd4775fd - Cleaned out thread manager semaphore support which was ever implemented only for Unix, and not used since r28965. This also reverts changes to System unit interface introduced in r27665.
git-svn-id: trunk@34542 -
2016-09-20 20:14:36 +00:00
pierre
dcd349abd9 Use DEBUG_LINEINFO instead of DEBUG in exeinfo unit source
git-svn-id: trunk@34521 -
2016-09-13 08:37:52 +00:00
michael
bc6819aa91 * Attempt to avoid overflow when reallocating stream
git-svn-id: trunk@34518 -
2016-09-12 08:41:42 +00:00
michael
be17071b46 * Fix windows compilation
git-svn-id: trunk@34517 -
2016-09-11 18:20:40 +00:00
Tomas Hajny
5153cceba3 * provide access to information about the failing file when dynamic loading fails
git-svn-id: trunk@34504 -
2016-09-10 21:30:35 +00:00