VAR
- in,
- out,
- err,
+ inch,
+ outch,
+ errch,
stdin,
stdout,
stderr,
PROCEDURE InChan () : ChanId ;
(* Returns the identity of the current default input channel. *)
BEGIN
- RETURN( in )
+ RETURN( inch )
END InChan ;
PROCEDURE OutChan () : ChanId ;
(* Returns the identity of the current default output channel. *)
BEGIN
- RETURN( out )
+ RETURN( outch )
END OutChan ;
PROCEDURE ErrChan () : ChanId ;
(* Returns the identity of the current default error message channel. *)
BEGIN
- RETURN( err )
+ RETURN( errch )
END ErrChan ;
(* The following procedures allow for redirection of the default channels *)
PROCEDURE SetInChan (cid: ChanId) ;
(* Sets the current default input channel to that identified by cid. *)
BEGIN
- in := cid
+ inch := cid
END SetInChan ;
PROCEDURE SetOutChan (cid: ChanId) ;
(* Sets the current default output channel to that identified by cid. *)
BEGIN
- out := cid
+ outch := cid
END SetOutChan ;
PROCEDURE SetErrChan (cid: ChanId) ;
(* Sets the current default error channel to that identified by cid. *)
BEGIN
- err := cid
+ errch := cid
END SetErrChan ;
BEGIN
Init
FINALLY
- SafeClose(in) ;
- SafeClose(out) ;
- SafeClose(err) ;
+ SafeClose(inch) ;
+ SafeClose(outch) ;
+ SafeClose(errch) ;
SafeClose(stdin) ;
SafeClose(stdout) ;
SafeClose(stderr)