use value parameters when VAR not needed

This commit is contained in:
ceriel 1989-03-20 12:46:25 +00:00
parent a432f84eb0
commit 9379157da7
3 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ IMPLEMENTATION MODULE RealConversions;
RETURN;
END;
str[ind1] := 'E'; INC(ind1);
DEC(pointpos);
IF r # 0.0D THEN DEC(pointpos); END;
IF pointpos < 0 THEN
pointpos := -pointpos;
str[ind1] := '-';

View file

@ -119,7 +119,7 @@ DEFINITION MODULE Streams;
*)
PROCEDURE WriteBytes(stream: Stream;
VAR bytes: ARRAY OF BYTE;
bytes: ARRAY OF BYTE;
VAR result: StreamResult);
(* writes bytes to the stream. No character translations occur.
The number of bytes written is equal to the size of the parameter.

View file

@ -304,7 +304,7 @@ IMPLEMENTATION MODULE Streams;
END;
END WriteByte;
PROCEDURE WriteBytes(stream: Stream; VAR bytes: ARRAY OF BYTE; VAR result: StreamResult);
PROCEDURE WriteBytes(stream: Stream; bytes: ARRAY OF BYTE; VAR result: StreamResult);
VAR i: CARDINAL;
BEGIN
FOR i := 0 TO HIGH(bytes) DO