Commit Graph

1622 Commits

Author SHA1 Message Date
sergei
38068acd42 * Removed "packed" attribute from TUC_Prop on alignment-sensitive targets (temporary solution, see comment in source), and from TUCA_DataBook on all targets (does not add noticeable bloat because this type is used just a few times. OTOH having unaligned pointers in record hurts performance on all targets).
This change fixes fpwidestring-related tests at least on mips-linux.

git-svn-id: trunk@29322 -
2014-12-25 10:11:16 +00:00
marcus
6767ed7103 Amiga, AROS, MorphOS: Sysutils, GetDirs must also cut at DriveSeparator
git-svn-id: trunk@29294 -
2014-12-14 20:16:23 +00:00
florian
4d5f1f04fe * solution in r29126 was brute force, fixed
git-svn-id: trunk@29128 -
2014-11-23 20:37:20 +00:00
svenbarth
2f613f71d7 Readd RT_RCDATA to the Types unit, but with a deprecated message so that users use the Windows one instead.
rtl/objpas/types.pp:
  + readd RT_RCDATA as a reference to the one declared in the Windows unit for Win32 and Win64; also add a deprecated message that advices users to use the one declared in the Windows instead.

git-svn-id: trunk@29127 -
2014-11-23 20:32:21 +00:00
florian
9a31cba3d3 * do not blindly insert decimal seperators in StrToFloat, resolves #27029
git-svn-id: trunk@29126 -
2014-11-23 20:18:19 +00:00
svenbarth
ace1ea0070 Fix compilation of NativeNT RTL
rtl/objpas/types.pp:
  - remove declaration of RT_RCDATA which is part of System since we have resource support

git-svn-id: trunk@29102 -
2014-11-21 14:33:58 +00:00
pierre
bde3bb4f5b Give a different output if Obj is not a vlaid class
git-svn-id: trunk@29045 -
2014-11-09 22:14:13 +00:00
Jonas Maebe
77c1364713 * replaced use of semaphores in Unix version of TThread for suspend/resume
functionality with RTLEvent:
   o the thread manager semaphore functionality isn't used for anything else,
     and the main difference between mutex/condvar and semaphores is that the
     latter can be used for IPC (while the thread manager is always used
     within a single process) and that they are counting (but since a thread
     can only suspend itself nowadays, it cannot be suspended recursively)
   o OS X sandboxing does not support the use of semaphores (or rather: Apple
     does not allow sandboxing rules that enable the use of IPC semaphores in
     the appstore)

git-svn-id: trunk@28965 -
2014-11-02 15:00:24 +00:00
Jonas Maebe
79a40547ca - removed no longer used tthread.FSuspendedExternal
git-svn-id: trunk@28963 -
2014-11-02 15:00:14 +00:00
michael
a45890443b * Fix for regression in 12385
git-svn-id: trunk@28741 -
2014-10-04 15:59:37 +00:00
marco
29e5418a4f * remove construct with exception, mantis #26738, patch by Alexander.
git-svn-id: trunk@28687 -
2014-09-18 11:34:29 +00:00
marcus
980abaa9ba AROS: introduced threading without additional library
git-svn-id: trunk@28682 -
2014-09-16 19:32:56 +00:00
michael
2a4019b012 * Fix tw13076, broken by previous commit 28660
git-svn-id: trunk@28680 -
2014-09-16 14:00:41 +00:00
michael
71a1628303 * Fix bug #24645
git-svn-id: trunk@28661 -
2014-09-14 16:17:25 +00:00
michael
4c86a68345 * Fix bug #23954
git-svn-id: trunk@28660 -
2014-09-14 15:58:07 +00:00
michael
beafc9fe8c * Fix bug #26717
git-svn-id: trunk@28659 -
2014-09-14 15:06:34 +00:00
marcus
ee31b188f6 AMIGA/MorphOS/AROS: corrected pathes in FP-IDE
git-svn-id: trunk@28620 -
2014-09-08 16:47:38 +00:00
marcus
97831bed8a Amiga, AROS, MorphOS: Define in IncludeTrailingPathDelimiter changed to HASAMIGA
git-svn-id: trunk@28548 -
2014-08-31 06:46:17 +00:00
marcus
5305a4d827 Amiga,AROS,MorphOS: IncludeTrailingPathDelimiter not adding DirectorySeparator after Driveseparator
git-svn-id: trunk@28541 -
2014-08-30 18:22:08 +00:00
nickysn
45ed066fed * fixed SysUtils.FindFirst/FindNext/FindClose on i8086-msdos in the compact and
large memory models by changing TSearchRec.FindHandle to a pointer (because
  THandle is 16-bit on this platform and is thus not able to hold a far pointer
  without truncating it)

git-svn-id: trunk@28451 -
2014-08-18 21:39:20 +00:00
nickysn
2565126d36 * also update TUnicodeSearchRec after r28449
git-svn-id: trunk@28450 -
2014-08-18 21:30:26 +00:00
nickysn
f5c1751be5 + added a define FINDHANDLE_IS_POINTER that indicates that on the current
platform SysUtils.TSearchRec.FileHandle is a Pointer, instead of THandle.
  I didn't introduce a TFindHandle type, because I didn't want to add yet
  another publicly visible type in the SysUtils interface.

git-svn-id: trunk@28449 -
2014-08-18 21:20:07 +00:00
marco
3a7cde492e * finance functions by wp, mantis #26459
git-svn-id: trunk@28182 -
2014-07-08 12:45:11 +00:00
michael
a0f4ff655e * Small optimisation in strnew from Luiz Americo (bug ID 26365)
git-svn-id: trunk@28005 -
2014-06-19 17:40:21 +00:00
Károly Balogh
e89669bedc rewrite SpinLock to still work without the need to accidentally disable optimizations for a large part of the classes unit
git-svn-id: trunk@27864 -
2014-06-06 11:05:57 +00:00
michael
6fcff07e50 * SizeInt -> SizeUInt for strPLCopy (Bug ID 26156)
git-svn-id: trunk@27802 -
2014-05-18 07:35:33 +00:00
michael
046b7626dd * Reworked patch from Werner Pamler (bug ID 26168) to add support for periods
git-svn-id: trunk@27801 -
2014-05-18 07:24:59 +00:00
pierre
d4368c55b9 Fix windows problem with FindResource function
git-svn-id: trunk@27782 -
2014-05-14 06:11:53 +00:00
michael
81a95f6f1b * Fix problem with IE for inlined taking address (@S[1]) of empty const
git-svn-id: trunk@27781 -
2014-05-13 17:58:31 +00:00
michael
ddf6de1b29 * Implemented ReadComponentRes(ex) for bug #21785
git-svn-id: trunk@27777 -
2014-05-11 18:28:50 +00:00
michael
042e6243a3 * Fixed bug #20522, adapted patch from Bart Broersma
git-svn-id: trunk@27775 -
2014-05-11 18:04:52 +00:00
michael
d9d1a7fa5d * Fix bug ID #18550
git-svn-id: trunk@27774 -
2014-05-11 17:14:20 +00:00
michael
17e34abc62 * Fix for bug ID #18551
git-svn-id: trunk@27773 -
2014-05-11 17:02:56 +00:00
michael
a397b1b480 * Added (modified) patch for appending 0:0:0 in case of full date (Denis Golovan, bug ID #25109)
git-svn-id: trunk@27772 -
2014-05-11 14:11:44 +00:00
michael
1d9ac3aa9e * Fixed bug #26053
git-svn-id: trunk@27770 -
2014-05-11 13:28:00 +00:00
michael
66f711ad09 * Fixed bug ID #26070
git-svn-id: trunk@27767 -
2014-05-11 12:12:12 +00:00
michael
276a273e6c * Const string in StrP(L)Copy (bug report 26100)
git-svn-id: trunk@27763 -
2014-05-11 10:11:41 +00:00
michael
47fd732236 * Fix StrToDate incompatibility with delphi in case of trailing whitespace
git-svn-id: trunk@27745 -
2014-05-10 13:41:06 +00:00
Jonas Maebe
35c64a7a69 * properly order all operations in TMultiReadExclusiveWriteSynchronizer
using memory barriers, rather than half-heartedly using atomic
    operations. Fixes random failures in trwsync on POWER7 processors
    (and probably other weakly ordered architectures)

git-svn-id: trunk@27723 -
2014-05-03 14:19:54 +00:00
sergei
b16c6f8ced * i386 and x86_64 changes for Delphi compatibility:
* 'mxcsr' variable made public and renamed to DefaultMXCSR.
  * GetSSECSR and SetSSECSR renamed to GetMXCSR and SetMXCSR, respectively. Previous names continue to exist as deprecated aliases.

git-svn-id: trunk@27656 -
2014-04-25 15:10:12 +00:00
sergei
f767d9017c * Fixed sin(-0.0) to return -0.0 (was returning 0.0)
* Fixed lnxp1(-1.0) to return -Inf (was returning NaN)

git-svn-id: trunk@27639 -
2014-04-23 10:03:18 +00:00
sergei
57c762c8d2 + Inserted license header for AMath routines.
git-svn-id: trunk@27552 -
2014-04-12 20:45:44 +00:00
sergei
bd58adfcc9 + Added credits for functions reused from AMath/DAMath libraries.
git-svn-id: trunk@27518 -
2014-04-10 20:29:49 +00:00
michael
d45ced0221 * Added DegNormalize
git-svn-id: trunk@27492 -
2014-04-06 16:37:43 +00:00
nickysn
070955bcd0 * fixed 'data element too large' error in i8086 far data memory models
git-svn-id: trunk@27390 -
2014-03-30 18:17:37 +00:00
marco
ed3a49372d * strutils moved to packages/rtl-objpas
git-svn-id: trunk@27339 -
2014-03-29 17:51:44 +00:00
nickysn
a0f08f3d5c * objpas.IntegerArray on 16 and 8-bit CPUs made as large as possible without
causing 'data element too large'

git-svn-id: trunk@27250 -
2014-03-24 00:01:13 +00:00
nickysn
a4ac2a3538 * fixed compilation of unit objpas in i8086 large memory model
git-svn-id: trunk@27249 -
2014-03-23 23:54:15 +00:00
nickysn
fb20791cbe * replaced all the remaining uses of nativeint in the rtl with either sizeint
or objpasint

git-svn-id: trunk@27237 -
2014-03-23 13:38:16 +00:00
sergei
94a045aa3d * Moved declarations of TFPURoundingMode,TFPUExceptionMask and TFPUPrecisionMode to System unit. Declarations in Math unit changed to aliases.
* Changed type of softfloat_exception_mask and softfloat_exception_flags to TFPUExceptionMask, softfloat_rounding_mode to TFPURoundingMode.
- Cleaned out numerous conversions happening when getting/setting exception mask and rounding mode.

git-svn-id: trunk@27215 -
2014-03-20 22:44:46 +00:00