浏览代码

add temporary type BufferOffset, StreamSize as part of the adaptation a2 for the 64-bit IO

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8437 8c9fc860-2736-0410-a75d-ab315db34111
eth.metacore 6 年之前
父节点
当前提交
7ff65a435b
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      source/Streams.Mod

+ 4 - 1
source/Streams.Mod

@@ -21,9 +21,12 @@ CONST
 CONST
 CONST
 	CR = 0DX;  LF = 0AX;  TAB = 9X;  SP = 20X;
 	CR = 0DX;  LF = 0AX;  TAB = 9X;  SP = 20X;
 
 
+TYPE
+	BufferOffset*	= LONGINT; (* offset in the stream biffer *)
 
 
 TYPE
 TYPE
-	Position* = LONGINT;
+	Position* = LONGINT; (* position in the stream *)
+	StreamSize* = LONGINT; (* size of hte stream *)
 
 
 	(** Any stream output procedure or method. *)
 	(** Any stream output procedure or method. *)
 	Sender* = PROCEDURE {DELEGATE} ( CONST buf: ARRAY OF CHAR;  ofs, len: LONGINT;  propagate: BOOLEAN;  VAR res: WORD );
 	Sender* = PROCEDURE {DELEGATE} ( CONST buf: ARRAY OF CHAR;  ofs, len: LONGINT;  propagate: BOOLEAN;  VAR res: WORD );