added DumpLog function to Oberon module; -- noch

This commit is contained in:
norayr 2015-09-15 19:16:46 +04:00
parent 8b66c787da
commit 6433d592bb

View file

@ -2,7 +2,7 @@ MODULE Oberon;
(* this version should not have dependency on graphics -- noch *) (* this version should not have dependency on graphics -- noch *)
IMPORT Kernel, Texts, Args; IMPORT Kernel, Texts, Args, Out := Console;
TYPE TYPE
ParList* = POINTER TO ParRec; ParList* = POINTER TO ParRec;
@ -53,6 +53,18 @@ MODULE Oberon;
END PopulateParams; 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 BEGIN
NEW(Par); NEW(Par);
NEW(Par.text); NEW(Par.text);