use value parameters when VAR not needed

This commit is contained in:
ceriel 1989-03-20 13:03:34 +00:00
parent 9379157da7
commit 346bc839a3

View file

@ -67,7 +67,7 @@ IMPLEMENTATION MODULE InOut ;
openinput(filename);
END OpenInputFile;
PROCEDURE openinput(VAR namebuf: ARRAY OF CHAR);
PROCEDURE openinput(namebuf: ARRAY OF CHAR);
BEGIN
IF (namebuf[0] = '-') AND (namebuf[1] = 0C) THEN
CurrIn := Streams.InputStream;
@ -106,7 +106,7 @@ IMPLEMENTATION MODULE InOut ;
openoutput(filename);
END OpenOutputFile;
PROCEDURE openoutput(VAR namebuf: ARRAY OF CHAR);
PROCEDURE openoutput(namebuf: ARRAY OF CHAR);
BEGIN
IF (namebuf[1] = '-') AND (namebuf[2] = 0C) THEN
CurrOut := Streams.OutputStream;