added DumpLog function to Oberon module; -- noch

Former-commit-id: 6433d592bb
This commit is contained in:
norayr 2015-09-15 19:16:46 +04:00
parent e9f1a2710a
commit b00409910c

View file

@ -2,7 +2,7 @@ MODULE Oberon;
(* this version should not have dependency on graphics -- noch *)
IMPORT Kernel, Texts, Args;
IMPORT Kernel, Texts, Args, Out := Console;
TYPE
ParList* = POINTER TO ParRec;
@ -53,6 +53,18 @@ MODULE Oberon;
END PopulateParams;
PROCEDURE DumpLog*;
VAR R : Texts.Reader;
ch : CHAR;
BEGIN
Texts.OpenReader(R, Log, 0);
REPEAT
Texts.Read(R, ch);
Out.Char(ch);
UNTIL R.eot;
END DumpLog;
BEGIN
NEW(Par);
NEW(Par.text);