mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 12:46:06 +02:00
+ call SysInitStdIO (empty for now) and clear InOutRes at startup
git-svn-id: branches/wasm@48293 -
This commit is contained in:
parent
4165c893be
commit
dd47111e61
@ -96,6 +96,11 @@ end;
|
|||||||
|
|
||||||
procedure SysInitStdIO;
|
procedure SysInitStdIO;
|
||||||
begin
|
begin
|
||||||
|
// OpenStdIO(Input,fmInput,StdInputHandle);
|
||||||
|
// OpenStdIO(Output,fmOutput,StdOutputHandle);
|
||||||
|
// OpenStdIO(ErrOutput,fmOutput,StdErrorHandle);
|
||||||
|
// OpenStdIO(StdOut,fmOutput,StdOutputHandle);
|
||||||
|
// OpenStdIO(StdErr,fmOutput,StdErrorHandle);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CheckInitialStkLen(stklen : SizeUInt) : SizeUInt;
|
function CheckInitialStkLen(stklen : SizeUInt) : SizeUInt;
|
||||||
@ -175,5 +180,9 @@ begin
|
|||||||
InitHeap;
|
InitHeap;
|
||||||
SysInitExceptions;
|
SysInitExceptions;
|
||||||
initunicodestringmanager;
|
initunicodestringmanager;
|
||||||
|
{ Setup stdin, stdout and stderr }
|
||||||
|
SysInitStdIO;
|
||||||
|
{ Reset IO Error }
|
||||||
|
InOutRes:=0;
|
||||||
DebugWriteLn('System unit initialization end');
|
DebugWriteLn('System unit initialization end');
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user