DEADSOFTWARE

Поправлены объявления типов наперёд
[dsw-obn.git] / Test.obn
index fa347cddf19074ac48f9ac84d99c4993074f5aef..be037a255a86681dfd6dde8cb1ddea47041586bf 100644 (file)
--- a/Test.obn
+++ b/Test.obn
@@ -1,21 +1,11 @@
 MODULE Test;
 
-IMPORT Files, Out;
+TYPE
 
-VAR
-  f : Files.File;
-  r : Files.Rider;
-  len : LONGINT;
-  x : POINTER TO ARRAY OF CHAR;
+  PC = ARRAY 3 OF PB;
 
-BEGIN
-  f := Files.Old("Test.obn");
-  ASSERT(f # NIL);
-  Files.Set(r, f, 0);
+  B = RECORD z : PC; next : PB END;
 
-  len := Files.Length(f);
-  NEW(x, len + 1);
+  PB = POINTER TO B;
 
-  Files.ReadBytes(r, x, len);
-  Out.String(x^); Out.Ln;
 END Test.