use value parameters when VAR not needed
This commit is contained in:
parent
9379157da7
commit
346bc839a3
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ IMPLEMENTATION MODULE InOut ;
|
||||||
openinput(filename);
|
openinput(filename);
|
||||||
END OpenInputFile;
|
END OpenInputFile;
|
||||||
|
|
||||||
PROCEDURE openinput(VAR namebuf: ARRAY OF CHAR);
|
PROCEDURE openinput(namebuf: ARRAY OF CHAR);
|
||||||
BEGIN
|
BEGIN
|
||||||
IF (namebuf[0] = '-') AND (namebuf[1] = 0C) THEN
|
IF (namebuf[0] = '-') AND (namebuf[1] = 0C) THEN
|
||||||
CurrIn := Streams.InputStream;
|
CurrIn := Streams.InputStream;
|
||||||
|
@ -106,7 +106,7 @@ IMPLEMENTATION MODULE InOut ;
|
||||||
openoutput(filename);
|
openoutput(filename);
|
||||||
END OpenOutputFile;
|
END OpenOutputFile;
|
||||||
|
|
||||||
PROCEDURE openoutput(VAR namebuf: ARRAY OF CHAR);
|
PROCEDURE openoutput(namebuf: ARRAY OF CHAR);
|
||||||
BEGIN
|
BEGIN
|
||||||
IF (namebuf[1] = '-') AND (namebuf[2] = 0C) THEN
|
IF (namebuf[1] = '-') AND (namebuf[2] = 0C) THEN
|
||||||
CurrOut := Streams.OutputStream;
|
CurrOut := Streams.OutputStream;
|
||||||
|
|
Loading…
Reference in a new issue