Michael VAN CANNEYT
552c2146d8
* string -> shortstring
2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
304372262a
* Char -> AnsiChar
2023-07-14 17:26:09 +02:00
ondrej
1a0ba60de6
* revert r47598: implement TRandomGenerator
...
git-svn-id: trunk@47605 -
2020-11-27 04:53:06 +00:00
ondrej
c4dd3b661a
* rtl: implement TRandomGenerator for thread-safe random
...
git-svn-id: trunk@47598 -
2020-11-26 05:59:00 +00:00
pierre
84ebe96d41
Define FPC_IS_SYSTEM at start of all system.pp source
...
git-svn-id: trunk@43203 -
2019-10-15 15:04:32 +00:00
Tomas Hajny
db7a9950d1
* unit name changed to System (starting with uppercase 'S') for improved compatibility to Delphi - see test tobject5.pp
...
git-svn-id: trunk@30025 -
2015-02-27 19:00:50 +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
3a5e6485b5
- RTL: removed InitVariantManager, it was an empty procedure since day 1.
...
git-svn-id: trunk@29114 -
2014-11-22 20:35:46 +00:00
Jonas Maebe
69c29a415f
* pass the procdef to getintparaloc instead of only the proccalloption, so
...
that the type of the parameters can be determined automatically
o added compilerproc declarations for all helpers called in the compiler
via their assembler name, so we can look up the corresponding procdef
git-svn-id: trunk@23325 -
2013-01-06 15:05:40 +00:00
Tomas Hajny
d442d14e0c
+ FileNameCasePreserving added - see #18066 in Mantis
...
git-svn-id: trunk@20894 -
2012-04-15 20:56:13 +00:00
paul
1ccf16358c
rtl: init widestring and unitcodestring managers before initialization of Standard IO files (stdin,stdout,stderr)
...
git-svn-id: trunk@19542 -
2011-10-25 02:29:29 +00:00
florian
f97c2968f9
* fixed widestring/unicodemanager initialisiation
...
git-svn-id: trunk@11743 -
2008-09-10 21:02:50 +00:00
peter
f4f3ae84d0
* AllowDirectorySeparators and AllowDriveSeparators typed constants
...
added to allow customization of path and directory parsing in the rtl
* Use the new sets instead of the hardcoded / and \
git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
peter
5acb3649df
* revert r9557, the performance impact is to big for an academic corner
...
case optimziation
git-svn-id: trunk@9603 -
2007-12-31 13:36:16 +00:00
yury
c4e60fd1a5
- Removed systhrd.inc from targets where thread manager is stub by default. Stub is installed in common thread.inc file if DISABLE_NO_THREAD_MANAGER is not defined.
...
git-svn-id: trunk@9558 -
2007-12-28 15:21:02 +00:00
yury
0dcad4d822
* Implemented late thread manager initialization. Thread manager code is not included to executable if thread stuff are not used. WinCE executable size is reduced by 4KB, Win32 executable size is reduced by 3KB. No testsuite regressions.
...
git-svn-id: trunk@9557 -
2007-12-28 14:40:28 +00:00
Tomas Hajny
3b3849c02c
+ AllFilesMask constant added
...
git-svn-id: trunk@8492 -
2007-09-15 12:09:25 +00:00
peter
5e860919f8
* removed initfpu
...
git-svn-id: trunk@5296 -
2006-11-09 07:48:31 +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
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
21425e303c
+ Removed HASVARIANT define
...
git-svn-id: trunk@244 -
2005-06-07 20:48:31 +00:00
michael
8a226bba52
+ Removed HASWIDESTRING/HASWIDECHAR defines
...
git-svn-id: trunk@241 -
2005-06-07 20:42:22 +00:00
fpc
790a4fe2d3
* log and id tags removed
...
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
peter
b68af1b0e3
* post 2.0.0 fixes from cvs
...
git-svn-id: trunk@7 -
2005-05-16 20:59:02 +00:00
fpc
50778076c3
initial import
...
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
michael
2e48181661
+ Added maxpathlen constant (maximum length of filename path)
2005-05-12 20:29:04 +00:00
Tomas Hajny
d3c103dfd7
* EOF_CTRLZ conditional define replaced with CtrlZMarksEOF, #26 handling made more consistent (fix for bug #2453 )
2005-04-03 21:10:59 +00:00
peter
e417e34496
* truncate log
2005-02-14 17:13:06 +00:00
peter
e49fa4bd08
* threads for go32v2,os,emx,netware
2005-02-06 16:57:18 +00:00
florian
4f7560d89e
* improved widestring infrastructure manager
2005-02-01 20:22:49 +00:00
armin
6f66b80ea8
* rtl code cleanup, compat fixes between clib and libc
2005-01-04 11:25:33 +00:00
armin
8eb794231c
* implemented GetProcessId, defined TimeVal and TimeZone in addition to TTimeVal, TTimeZone, Makefile defaults to binutilsprefix i386-netware
2004-12-07 11:40:43 +00:00
Tomas Hajny
353d5cc3de
+ GetProcessID added
2004-12-05 14:36:37 +00:00
armin
8cfa7d1c01
* adapted to new compiler check for externals
2004-11-25 12:38:17 +00:00
peter
dbc2025604
ErrOutput added
2004-11-04 09:32:31 +00:00
armin
ad45adbb6e
* saveregisters no longer supported by compiler, for now save all registers in stackcheck
2004-10-25 18:11:49 +00:00
peter
869b0ecc85
* compiler defined HEAP and HEAPSIZE removed
2004-10-25 15:38:59 +00:00
armin
173aea0681
* exiting threads at nlm unload
...
* renamed some libc functions
2004-09-26 19:23:34 +00:00
armin
811f2da364
* removed get/free video buf from video.pp
...
* implemented sockets
* basic library support
* threadvar memory leak removed
* fixes (ide now starts and editor is usable)
* support for lineinfo
2004-09-19 20:06:37 +00:00
armin
76400e6c05
* added keyboard and video
...
* a lot of fixes
2004-09-12 20:51:22 +00:00
armin
4add7ccbc6
* first rtl version for netwlibc
2004-09-05 20:58:47 +00:00