| 1 |
DEFINITION MODULE IOChanUtils ; |
| 2 |
|
| 3 |
(* |
| 4 |
Title : IOChanUtils |
| 5 |
Author : Gaius Mulley |
| 6 |
System : GNU Modula-2 |
| 7 |
Date : Sat Jun 28 23:33:06 2025 |
| 8 |
Revision : $Version$ |
| 9 |
Description: provides additional procedures to work on |
| 10 |
ChanIds. |
| 11 |
*) |
| 12 |
|
| 13 |
FROM DynamicStrings IMPORT String ; |
| 14 |
FROM FIO IMPORT File ; |
| 15 |
|
| 16 |
IMPORT IOChan ; |
| 17 |
|
| 18 |
|
| 19 |
(* |
| 20 |
GetFileName - returns the filename as a new string associated |
| 21 |
with chanid c. This string should be killed by |
| 22 |
the caller. |
| 23 |
*) |
| 24 |
|
| 25 |
PROCEDURE GetFileName (c: IOChan.ChanId) : String ; |
| 26 |
|
| 27 |
|
| 28 |
(* |
| 29 |
GetFile - returns the FIO.File associated with ChanId c. |
| 30 |
*) |
| 31 |
|
| 32 |
PROCEDURE GetFile (c: IOChan.ChanId) : File ; |
| 33 |
|
| 34 |
|
| 35 |
END IOChanUtils. |