X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=Test.obn;h=69389899cad06413cb1824a0829eef066767864d;hb=023ef0d8349acdfe751bba1b50749361682f72ff;hp=8c3a8d1458efc80ddf4837c106b664b70a3abfae;hpb=9f8036eb00032fa7f756113365cb42e05ab262df;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 8c3a8d1..6938989 100644 --- a/Test.obn +++ b/Test.obn @@ -1,18 +1,23 @@ MODULE Test; -IMPORT Out; +TYPE + File* = POINTER TO Handle; -VAR - msg : ARRAY 20 OF CHAR; + Handle = RECORD END; + Rider* = RECORD + eof* : BOOLEAN; + res* : LONGINT; + END; + +PROCEDURE Old*(name : ARRAY OF CHAR) : File; +BEGIN + RETURN NIL +END Old; + +PROCEDURE New*(name : ARRAY OF CHAR) : File; BEGIN - Out.Open; - COPY("Hello World!", msg); - Out.String(msg); Out.Ln; - COPY("Hell!", msg); - Out.String(msg); Out.Ln; - COPY("The quick brown fox jumps over the lazy dog", msg); - Out.String(msg); Out.Ln; - msg := "Hello World!"; - Out.String(msg); Out.Ln; + RETURN NIL +END New; + END Test.