Commit Graph

125 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
cd8af229a8 * string -> shortstring 2023-07-14 20:33:45 +02:00
Michael VAN CANNEYT
485944b492 * 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
nickysn
db0b6adef8 + add the ports[] access to the go32v2 system unit as well
git-svn-id: trunk@39423 -
2018-07-09 16:26:52 +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
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
sergei
3a55c4301e * Since StackTop=StackBottom+StackLength, any two variables are sufficient to describe stack, the third one is redundant.
* As a first part of cleanup, replaced StackTop with function returning StackBottom+StackLength.
* On Win32 and Win64, StackTop returns the stack base from TIB instead.

git-svn-id: trunk@27119 -
2014-03-12 19:48:03 +00:00
nickysn
611358be7e * fixed the stack traces (StackTop initialization) under go32v2 as well
git-svn-id: trunk@25875 -
2013-10-28 00:14:08 +00:00
pierre
57c5821042 Merge forgotten go32v2 2.6.0 branch changes back into trunk.
------------------------------------------------------------------------
r20580 | pierre | 2012-03-22 17:52:40 +0100 (Thu, 22 Mar 2012) | 1 line

 * Set __environ to envp in Setup_environment function
------------------------------------------------------------------------

git-svn-id: trunk@24230 -
2013-04-12 10:28: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
pierre
f0aa48b083 * Remove use of direct U_UNIT_NAME or TC_UNIT_NAME
symbols in assembler sources.
  Added to corresponding system variables or typed constants a
  public name 'operatingsystem_XXX' alias and used that alias in assembler
  source.

git-svn-id: trunk@18943 -
2011-09-02 12:51:48 +00:00
pierre
cdcabe3ee4 * Prevent propagation of ' !proxy' environment variable to programs launched by Dos.exec by renaming it to '_!proxy' after handling in startup code
git-svn-id: trunk@17936 -
2011-07-05 06:54:24 +00:00
pierre
4a7a054f13 * Avoid using stack memory for argv elements to avoid corruption of help in setup_arguments
git-svn-id: trunk@17684 -
2011-06-07 16:13:28 +00:00
florian
f97c2968f9 * fixed widestring/unicodemanager initialisiation
git-svn-id: trunk@11743 -
2008-09-10 21:02:50 +00:00
Tomas Hajny
d86bc53b0c * fix for missing initialization of widestring manager by Giulio Bernardi
git-svn-id: trunk@10797 -
2008-04-26 04:52:22 +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
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
pierre
44c567cf46 * fix memory corruption in Setup_arguments
git-svn-id: trunk@7012 -
2007-03-27 19:56:58 +00:00
daniel
c95cf176f4 + Add {$ifdef FPC_HAS_FEATURE_THREADING}
git-svn-id: trunk@6523 -
2007-02-17 09:25:58 +00:00
Tomas Hajny
c40e0d9b6f * error handling for potential issues with memory allocation during setup_environment as suggested by borsa77 at libero.it
git-svn-id: trunk@3931 -
2006-06-24 22:54:12 +00:00
Tomas Hajny
b853d45cd8 * fix for buggy ParamStr(0) / web bug #4666 as provided by Salvatore Licciardi (and in comp.lang.pascal.misc - maybe by Salvatore too?)
git-svn-id: trunk@2272 -
2006-01-12 23:17:51 +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
peter
e6fcb4996f Call InitSystemThreads 2005-05-05 11:40:23 +00:00
peter
d955da19dd use fillchar after reallocmem, fix taken from win32 2005-05-01 13:00:53 +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
Jonas Maebe
9984dd16b0 * fix cdecl name problems (patch from Tomas) 2004-12-07 14:02:24 +00:00
Tomas Hajny
353d5cc3de + GetProcessID added 2004-12-05 14:36:37 +00:00
Jonas Maebe
90b8204cec * fixed some C-linking problems (the C-prefix is now always added to
cdecl external functions, also if you define the name explicitly)
2004-11-25 17:37:59 +00:00
peter
dbc2025604 ErrOutput added 2004-11-04 09:32:31 +00:00
peter
e86b4529c8 * second try for data too large 2004-11-02 13:35:35 +00:00
peter
89b40a3682 * fix mem[] arrays 2004-11-02 07:43:50 +00:00
Tomas Hajny
f600db32f5 * HEAP and HEAPSIZE removal reflected 2004-10-27 18:52:05 +00:00
Tomas Hajny
605ee59e81 * handle type changed to thandle in do_isdevice 2004-09-18 11:12:09 +00:00
olle
9a4855aa43 + added maxExitCode to all System.pp
* constrained error code to be below maxExitCode in RunError et. al.
2004-09-03 19:25:21 +00:00
peter
244b6d1435 fixed go32v2 compile 2004-06-20 09:24:40 +00:00
peter
2ed14823c5 * New heapmanager that releases memory back to the OS, donated
by Micha Nelissen
2004-06-17 16:16:13 +00:00