This patch introduces the procedure GetFile into the supplementary
ISO style library IOChanUtils.
gcc/m2/ChangeLog:
PR modula2/120912
* gm2-libs-iso/IOChanUtils.def (GetFile): New procedure function.
* gm2-libs-iso/IOChanUtils.mod (GetFile): New procedure function.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
*)
FROM DynamicStrings IMPORT String ;
+FROM FIO IMPORT File ;
IMPORT IOChan ;
PROCEDURE GetFileName (c: IOChan.ChanId) : String ;
+(*
+ GetFile - returns the FIO.File associated with ChanId c.
+*)
+
+PROCEDURE GetFile (c: IOChan.ChanId) : File ;
+
+
END IOChanUtils.
PROCEDURE GetFileName (c: IOChan.ChanId) : String ;
BEGIN
- RETURN SFIO.GetFileName (RTio.GetFile (c))
+ RETURN SFIO.GetFileName (GetFile (c))
END GetFileName ;
+(*
+ GetFile - returns the FIO.File associated with ChanId c.
+*)
+
+PROCEDURE GetFile (c: IOChan.ChanId) : File ;
+BEGIN
+ RETURN RTio.GetFile (c)
+END GetFile ;
+
+
END IOChanUtils.