home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / modu1096.zip / ISOsym / ioresult.def < prev    next >
Text File  |  1996-08-29  |  721b  |  26 lines

  1. DEFINITION MODULE IOResult;
  2.  
  3.     (* Obtain read results on specified channels *)
  4.  
  5. IMPORT IOConsts;
  6. FROM   IOChan IMPORT ChanId;
  7.  
  8. TYPE
  9.   ReadResults = IOConsts.ReadResults;
  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 form *)
  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 : ChanId): ReadResults;
  23. (* Returns the result for the last read operation on the channel *)
  24.  
  25. END IOResult.
  26.