home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 125.img / PRO-C4.ZIP / BENCH1.ZIP / GENSUP / DOERROR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-28  |  627 b   |  42 lines

  1. # include <stdio.h>
  2. # include <bench.h>
  3. # include <proc.io>
  4. # include "field.h"
  5. # include "screen.h"
  6. # include "iodef.h"
  7. # include "sup.h"
  8.  
  9. /*
  10.  * Used for Error Reporting Above & Beyond
  11.  * that given by the I/O managers.
  12. */
  13. int do_error(stat)
  14. int stat;
  15. {
  16. # ifdef ERROR_REPORTING
  17.     switch (stat)
  18.     {
  19.     case IOGOOD   :
  20.         break;
  21.     case IOTOF    :
  22.         errmsg(TOP_FILE);
  23.         break;
  24.     case IOEOF    :
  25.         errmsg(END_FILE);
  26.         break;
  27.     case IONOKEY  :
  28.         errmsg(NO_MATCH);
  29.         break;
  30.     case IONONEXT :
  31.         errmsg(NO_MORE);
  32.         break;
  33.     default       :
  34.         errmsg(F_ERR, stat);
  35.         break;
  36.     }
  37. # endif
  38.  
  39.     return (stat);
  40. }
  41.  
  42.