use value parameters when VAR not needed
This commit is contained in:
parent
a432f84eb0
commit
9379157da7
|
@ -139,7 +139,7 @@ IMPLEMENTATION MODULE RealConversions;
|
||||||
RETURN;
|
RETURN;
|
||||||
END;
|
END;
|
||||||
str[ind1] := 'E'; INC(ind1);
|
str[ind1] := 'E'; INC(ind1);
|
||||||
DEC(pointpos);
|
IF r # 0.0D THEN DEC(pointpos); END;
|
||||||
IF pointpos < 0 THEN
|
IF pointpos < 0 THEN
|
||||||
pointpos := -pointpos;
|
pointpos := -pointpos;
|
||||||
str[ind1] := '-';
|
str[ind1] := '-';
|
||||||
|
|
|
@ -119,7 +119,7 @@ DEFINITION MODULE Streams;
|
||||||
*)
|
*)
|
||||||
|
|
||||||
PROCEDURE WriteBytes(stream: Stream;
|
PROCEDURE WriteBytes(stream: Stream;
|
||||||
VAR bytes: ARRAY OF BYTE;
|
bytes: ARRAY OF BYTE;
|
||||||
VAR result: StreamResult);
|
VAR result: StreamResult);
|
||||||
(* writes bytes to the stream. No character translations occur.
|
(* writes bytes to the stream. No character translations occur.
|
||||||
The number of bytes written is equal to the size of the parameter.
|
The number of bytes written is equal to the size of the parameter.
|
||||||
|
|
|
@ -304,7 +304,7 @@ IMPLEMENTATION MODULE Streams;
|
||||||
END;
|
END;
|
||||||
END WriteByte;
|
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;
|
VAR i: CARDINAL;
|
||||||
BEGIN
|
BEGIN
|
||||||
FOR i := 0 TO HIGH(bytes) DO
|
FOR i := 0 TO HIGH(bytes) DO
|
||||||
|
|
Loading…
Reference in a new issue