svenbarth
2cf8cdd885
Fix for Mantis #28650 .
...
rtl/objpas/sysutils/sysstrh.inc:
* forward PString to ObjPas.PString to avoid potential type conflicts
+ added test
git-svn-id: trunk@31603 -
2015-09-11 15:38:59 +00:00
michael
f759815d04
* Patch from Inoussa to decompose canonically (to be able to implement CompareText)
...
git-svn-id: trunk@31508 -
2015-09-04 13:58:28 +00:00
michael
a4502a50d5
* Added TArray generic
...
git-svn-id: trunk@31462 -
2015-08-31 12:03:55 +00:00
michael
d3350b18ba
* Some Delphi XE8 compatibility types
...
git-svn-id: trunk@31461 -
2015-08-31 12:00:22 +00:00
marco
5d2a54136a
* see also r31267, mantis #28289 , change calculation.
...
git-svn-id: trunk@31381 -
2015-08-24 12:03:56 +00:00
michael
e5fba07668
* Fix bug #0028486
...
git-svn-id: trunk@31299 -
2015-08-07 12:00:40 +00:00
florian
a797c2fc46
* calculate middle element P correctly if (L+R>=2^31), resolves #28289
...
git-svn-id: trunk@31267 -
2015-08-03 20:09:50 +00:00
michael
0958ff80de
* Fix bug #28364
...
git-svn-id: trunk@31185 -
2015-07-01 19:57:10 +00:00
Jonas Maebe
d57a85a2de
* fixed compilation on non-Windows systems after r31035
...
git-svn-id: trunk@31043 -
2015-06-13 22:05:50 +00:00
michael
b9fa0d0934
* Mimic minfloat for fpdoc
...
git-svn-id: trunk@31036 -
2015-06-13 16:37:33 +00:00
michael
633c8c7118
* Make sure TSystemTime is seen by fpdoc
...
git-svn-id: trunk@31035 -
2015-06-13 16:36:37 +00:00
michael
bb7e0f645f
* Fake some types when running under FPDOC
...
git-svn-id: trunk@31034 -
2015-06-13 16:23:56 +00:00
svenbarth
b0fa341006
Fix for Mantis #28271 .
...
rtl/objpas/classes/classes.inc:
+ new variable ExternalThreadsCleanup to keep track whether ExternalThreads list is currently cleared
* TExternalThread.Create: add the thread instance to the external thread list
* TExetrnalThread.Destroy: remove the thread instance from the external thread list (if not in system cleanup anyway)
* CommonCleanup: set ExternalThreadsCleanup to true so that the threads don't remove themselves from the list anymore
+ added test
git-svn-id: trunk@31028 -
2015-06-12 13:39:31 +00:00
michael
b36386baf0
* TStreamReader (TTextReader) implementation by Sylvio Clecio (bug ID 28075)
...
git-svn-id: trunk@31022 -
2015-06-10 21:38:55 +00:00
Károly Balogh
1a53f6a799
AROS: in agreement with Marcus Sackrow, AThreads is now enabled for AROS, and the old AROS-specific threading implementation is zapped
...
git-svn-id: trunk@31008 -
2015-06-07 18:35:50 +00:00
Károly Balogh
cdea58317e
classes: since AThreads supports suspended thread creation, enable resume code in AfterConstruction for Amiga-like platforms too
...
git-svn-id: trunk@30941 -
2015-05-31 09:37:43 +00:00
Károly Balogh
632c46bcb6
amicommon: have a generic tthread.inc which even works, given there is a reasonably advanced ThreadManager
...
git-svn-id: trunk@30914 -
2015-05-25 21:06:53 +00:00
Jonas Maebe
afd5ed4afe
* fixed StrPLCopy() with maxlen=0 (mantis #28089 , patch by LacaK)
...
git-svn-id: trunk@30858 -
2015-05-15 09:00:56 +00:00
florian
c2c87828e9
+ slightly modified patch by lelekx to implement plugable file routines for the embedded target, resolves issue #22918
...
git-svn-id: trunk@30759 -
2015-05-02 08:03:18 +00:00
michael
a11fa384b8
* Fix bug #27006
...
git-svn-id: trunk@30704 -
2015-04-22 17:01:14 +00:00
michael
27ff4c95e4
* Made CheckBitIndex protected
...
git-svn-id: trunk@30622 -
2015-04-17 16:53:23 +00:00
michael
3b33b2a7bc
* Fix bug ID #26512
...
git-svn-id: trunk@30620 -
2015-04-17 16:44:11 +00:00
michael
1e365f341e
* Reverted revision 30557
...
git-svn-id: trunk@30577 -
2015-04-13 19:45:25 +00:00
michael
10633da13b
* Reverted revision 30575 (forgor -depth=immediate
...
git-svn-id: trunk@30576 -
2015-04-13 19:44:51 +00:00
michael
2cab4a9a73
* Reverted revision 30557
...
git-svn-id: trunk@30575 -
2015-04-13 19:43:43 +00:00
michael
56715d5d00
* Fix bug #27832
...
git-svn-id: trunk@30557 -
2015-04-12 17:34:13 +00:00
michael
81fa382c42
* Rename WriteExceptionToStdErr -> WriteErrorsToStdErr
...
git-svn-id: trunk@30555 -
2015-04-12 15:37:46 +00:00
michael
94e57aa463
* Moved WriteExceptionToStdErr to system unit, so it is observed even in absence of sysutils (bug ID 27708)
...
git-svn-id: trunk@30551 -
2015-04-12 13:58:49 +00:00
michael
9ae76c3246
* Fix bug ID #27751 (Fill SystemTime.DayOfWeek)
...
git-svn-id: trunk@30384 -
2015-03-29 21:02:26 +00:00
florian
d0f4e7cc99
* respect feature defines
...
git-svn-id: trunk@30378 -
2015-03-29 19:43:25 +00:00
florian
5030ff05b5
* take care of feature defines
...
git-svn-id: trunk@30377 -
2015-03-29 19:35:42 +00:00
michael
910a88122f
* Implemented TWriter.WriteSignature/TReader.ReadSignature (bug ID 27519)
...
git-svn-id: trunk@30367 -
2015-03-29 13:25:12 +00:00
michael
0304b5f1e9
* Copy LineBreak during TStrings.Assign
...
git-svn-id: trunk@30302 -
2015-03-24 08:47:49 +00:00
michael
063d7f1ce2
* Overloaded version of TStrings.Add that accepts Fmt,Args
...
git-svn-id: trunk@30301 -
2015-03-24 08:47:14 +00:00
michael
e3111faa2e
* Implemented LineBreak property for TStrings
...
git-svn-id: trunk@30300 -
2015-03-24 08:38:52 +00:00
michael
5f5883695d
* Fix bug #26954
...
git-svn-id: trunk@30292 -
2015-03-23 16:50:31 +00:00
michael
af9798c761
* MOve update of threadqueuetail to critical section
...
git-svn-id: trunk@30159 -
2015-03-10 08:12:39 +00:00
michael
0b52513c18
* Fix for bug ID #27628
...
git-svn-id: trunk@30153 -
2015-03-09 19:38:26 +00:00
florian
53d6f6bc55
* handle dyn. arrays and interfaces correctly in TypInfo.SetOrdProp
...
git-svn-id: trunk@30141 -
2015-03-08 09:40:36 +00:00
michael
bda3626025
* Write unhandled exceptions to StdErr. Option to revert back to old behaviour (Bug ID 17346)
...
git-svn-id: trunk@30140 -
2015-03-08 09:37:35 +00:00
florian
ca4f4fb855
* changed casing for nicer code completation, #27604
...
git-svn-id: trunk@30102 -
2015-03-05 20:35:38 +00:00
Tomas Hajny
590e2f7977
* fix for bug #16884 for OS/2
...
git-svn-id: trunk@29712 -
2015-02-15 19:39:53 +00:00
Tomas Hajny
09e6069024
* provide possibility of reusing the routine from system WideStringManager for retrieval of current codepage on non-Windows and non-Unix
...
git-svn-id: trunk@29623 -
2015-02-04 01:39:54 +00:00
Tomas Hajny
329f788f58
* added conditional possibility of displaying the last OS error in information displayed for unhandled exceptions
...
git-svn-id: trunk@29622 -
2015-02-04 01:33:14 +00:00
svenbarth
2d454dc8fa
Move DynLibs support to System unit using a manager approach like for Threads, WideStrings, etc.. This is needed so that we can support features like "delayed" and loading of dynamic packages.
...
Each port that allows the usage of dynamic libraries should call InitSystemDynLibs during initialization of the System unit.
The DynLibs unit has been adjusted to be a forwarder for the functions that now reside in the System unit (for backwards compatiblity just in case). Additionally the unit will register the DynLibsManager if it doesn't reside in the System unit anyway.
Currently only the Windows targets (Win32, Win64 and WinCE) implement the DynLibsManager inside the System unit. For other systems using the LoadLibrary, etc. functions will lead to a run error/exception.
If a port wants to implement its own DynLibsManager then it needs to define DISABLE_NO_DYNLIBS_MANAGER. TLibHandle, NilHandle and optionally TOrdinalEntry (it's set to SizeUInt otherwise) should be defined in sysdlh.inc which needs to be enabled using the define FPC_SYSTEM_HAS_SYSDLH (because there are targets which have FEATURE_DYNLIBS enabled, but don't support them... e.g. powerpc-wii -.-).
The DynLibsManager contains methods for loading a library based on a RawByteString and based on a UnicodeString. BOTH should be implemented, but internally one can forward to the other.
The loading by ordinal *can* be be implemented. If it is set to Nil then the implementation of GetProcAddress(lib,ordinal) will return Nil.
+ new functions SetDynLibsManager and GetDynLibsManager to set and retrieve the current DynLibsManager
* provide interface of DynLibs unit in unit System
git-svn-id: trunk@29613 -
2015-02-03 20:00:00 +00:00
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