Commit Graph

37 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
e50d90b7e9 * string -> shortstring 2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
a5ad266065 * Char -> AnsiChar 2023-07-14 17:26:10 +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
9e6209db3a * fixed compilation of win16 in medium memory model
git-svn-id: trunk@37697 -
2017-12-07 17:29:06 +00:00
nickysn
08062a2eb4 * fixed ParamStr(0) for the win16 target
* fixed ParamStr and ParamCount in objfpc mode

git-svn-id: trunk@37696 -
2017-12-07 16:27:48 +00:00
nickysn
9febafa8d5 * fixed win16 compilation, patch by Max Nazhalov
git-svn-id: trunk@34701 -
2016-10-09 19:20:54 +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
pierre
a72434e93a Trial to clarify heap for i8086 issues:
- MSDOS heap in tinyheap.inc modified to use usual
  SysGetMem and similar names.
  - Use HAS_MEMORYMANAGER (used previously in wince source code,
  to specify that a memory manager is defined elsewhere than inside
  heap.inc include file.
  - Use
  - Remove TinyHeapMemoryManager Structure variable completely

  heaptrc.pp: remove unneeded macro code after name changes of tinyheap.inc

  msdos/system.pp now only defines HAS_MEMORYMANAGER macro
  win16/system.pp defines HAS_MEMORYMANAGER and FPC_NO_DEFAULT_HEAP
  as it still uses a different memory manager.
  __stkbottom variable added for win16 system.pp as it is required
  by i8086 specific stack check code.

git-svn-id: trunk@33983 -
2016-06-13 22:26:03 +00:00
pierre
14359cffec Fix system compilation for win16 OS by setting FPC_NO_DEFAULT_MEMORYMANAGER and adding dummy FinalizeHeap
git-svn-id: trunk@33716 -
2016-05-20 15:20:46 +00:00
nickysn
48d9daadb9 + init the dynlibs manager in the win16 system unit startup code
git-svn-id: trunk@31900 -
2015-10-01 12:37:30 +00:00
nickysn
01257267b8 + win16 implementation of a dynlib manager in the system unit
git-svn-id: trunk@31893 -
2015-09-29 16:31:17 +00:00
nickysn
5f0905d9c7 - removed unnecessary zero fill of regs in CheckLFN in the win16 system unit
git-svn-id: trunk@31874 -
2015-09-28 00:17:53 +00:00
nickysn
25573b5927 + implemented randomize for win16
git-svn-id: trunk@31873 -
2015-09-28 00:12:59 +00:00
nickysn
2f32a7b718 * only clear DS and ES instead of fillchar-ing the whole Registers record in
various places in the win16 rtl where int 21h is called

git-svn-id: trunk@31871 -
2015-09-27 23:52:33 +00:00
nickysn
f5c2ce9058 * fixes to the win16 stderr output
git-svn-id: trunk@31849 -
2015-09-27 15:17:59 +00:00
nickysn
406d5b7b3d + implemented a win16 heap manager for the far data memory models, using the
global heap; TODO: allocate heap in blocks and perform suballocation for small
  memory blocks, because the number of global heap blocks is limited

git-svn-id: trunk@31846 -
2015-09-27 13:00:27 +00:00
nickysn
1c3a0864e8 + implemented win16 stderr via messageboxes similar to the way it is implemented for win32/win64 gui apps
git-svn-id: trunk@31828 -
2015-09-25 14:51:50 +00:00
nickysn
228b6b7c5c + added the win16api message box functions and its related constants
git-svn-id: trunk@31794 -
2015-09-23 16:04:55 +00:00
nickysn
3a8acd3f33 + initial implementation of win16 file support, based on the msdos rtl
git-svn-id: trunk@31614 -
2015-09-12 00:17:11 +00:00
nickysn
04cb0cf615 + check for LFN support at startup on win16
git-svn-id: trunk@31612 -
2015-09-11 22:03:50 +00:00
nickysn
181ee0b4d2 + init exceptions and the unicode string manager in the win16 system unit startup
git-svn-id: trunk@31611 -
2015-09-11 21:54:40 +00:00
nickysn
9997ee54fb + initialize IsConsole and IsLibrary in the win16 system unit startup code
git-svn-id: trunk@31610 -
2015-09-11 21:48:20 +00:00
nickysn
694d93d011 + ported the MsDos() routine from the msdos rtl to win16
git-svn-id: trunk@31609 -
2015-09-11 21:29:45 +00:00
nickysn
afcc5a9e11 + added the win16api string functions
git-svn-id: trunk@31586 -
2015-09-11 12:38:01 +00:00
nickysn
600d2cfbc6 + implemented a win16 heap manager for the near data memory models using the
windows local heap

git-svn-id: trunk@31578 -
2015-09-08 14:22:16 +00:00
nickysn
a9069dc16d - removed some debug and commented out code from the win16 system unit
git-svn-id: trunk@31577 -
2015-09-07 22:28:42 +00:00
nickysn
a76c9ebd43 + initialize StackBottom and StackLength in the win16 system unit startup code
git-svn-id: trunk@31567 -
2015-09-07 01:52:48 +00:00
nickysn
fe8cb4b09d + integrated the winprocs and wintypes .inc files into the win16 system unit
git-svn-id: trunk@31565 -
2015-09-06 23:37:04 +00:00
nickysn
e62c276672 * use far pointers in the declaration of MessageBox
git-svn-id: trunk@31563 -
2015-09-06 22:46:51 +00:00
nickysn
58465396db + initialize the SelectorInc variable on win16
git-svn-id: trunk@31549 -
2015-09-06 11:52:30 +00:00
nickysn
48e83479ef + implemented ParamCount and ParamStr for win16 (ParamStr(0) is not implemented yet)
git-svn-id: trunk@31548 -
2015-09-06 10:42:33 +00:00
nickysn
eea09632a3 + add and initialize the win16 system unit variables that correspond to the
WinMain parameters in C

git-svn-id: trunk@31547 -
2015-09-06 10:25:34 +00:00
nickysn
049171c69c * moved the imports of InitTask, WaitEvent and InitApp to the win16 startup module
git-svn-id: trunk@31531 -
2015-09-05 12:43:26 +00:00
nickysn
c2c008c09a * switch to a full blown win16 system unit
git-svn-id: trunk@31530 -
2015-09-05 12:39:58 +00:00
nickysn
839ab714cc + started implementing a win16 target :)
git-svn-id: trunk@31521 -
2015-09-05 02:47:42 +00:00