X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=a704f0db4d56d3206461fc18065a9afa32220c0e;hb=9ae75f92f805e23b0b151cf8be18a3fe96935c3b;hp=b9b14ae66be8abf069ff9c19ca678ff3e117694d;hpb=57963798c338b0b73e032e9288003fd462f8b954;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index b9b14ae..a704f0d 100644 --- a/Test.obn +++ b/Test.obn @@ -1,23 +1,23 @@ MODULE Test; -TYPE - Stream* = POINTER TO Handle; - Handle = RECORD END; + TYPE + CPinfo = RECORD + tag : INTEGER; + index : ARRAY 2 OF LONGINT; + int : LONGINT; + float : REAL; + long : HUGEINT; + double : LONGREAL; + utf8 : POINTER TO ARRAY OF CHAR; + END; - Writer* = RECORD END; + CPool = POINTER TO ARRAY OF CPinfo; - Printer* = RECORD (Writer) END; - -VAR - s : Stream; - o : Writer; - out : Printer; - -PROCEDURE SetStream(VAR w : Writer; stream : Stream); -BEGIN -END SetStream; + VAR + i : HUGEINT; + cpool : CPool; BEGIN - SetStream(o, s); - SetStream(out, s); + i := 16; + NEW(cpool, i); END Test.