home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xco212p.zip / ISODEF / ioresult.def < prev    next >
Text File  |  1994-12-22  |  768b  |  27 lines

  1. DEFINITION MODULE IOResult;
  2.  
  3.   (* Read results for specified channels *)
  4.  
  5. IMPORT IOConsts, IOChan;
  6.  
  7. TYPE
  8.   ReadResults = IOConsts.ReadResults;
  9.  
  10.   (*
  11.     ReadResults =  (* This type is used to classify the result of an input operation *)
  12.     (
  13.       notKnown,    (* no read result is set *)
  14.       allRight,    (* data is as expected or as required *)
  15.       outOfRange,  (* data cannot be represented *)
  16.       wrongFormat, (* data not in expected format *)
  17.       endOfLine,   (* end of line seen before expected data *)
  18.       endOfInput   (* end of input seen before expected data *)
  19.     );
  20.   *)
  21.  
  22. PROCEDURE ReadResult (cid: IOChan.ChanId): ReadResults;
  23.   (* Returns the result for the last read operation on the channel cid. *)
  24.  
  25. END IOResult.
  26.  
  27.