use value parameters when VAR not needed
This commit is contained in:
parent
a432f84eb0
commit
9379157da7
|
@ -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] := '-';
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue