home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / anwor032.zip / antiword.0.32 / unix.c < prev    next >
C/C++ Source or Header  |  2000-10-23  |  820b  |  46 lines

  1. /*
  2.  * unix.c
  3.  * Copyright (C) 1998-2000 A.J. van Os; Released under GPL
  4.  *
  5.  * Description:
  6.  * Unix approximations of RISC-OS functions
  7.  */
  8.  
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <stdarg.h>
  12. #include "antiword.h"
  13.  
  14.  
  15. /*
  16.  * werr - write an error message and exit if needed
  17.  */
  18. void
  19. werr(int iFatal, const char *szFormat, ...)
  20. {
  21.     va_list tArg;
  22.  
  23.     va_start(tArg, szFormat);
  24.     (void)vfprintf(stderr, szFormat, tArg);
  25.     va_end(tArg);
  26.     fprintf(stderr, "\n");
  27.     switch (iFatal) {
  28.     case 0:        /* The message is just a warning, so no exit */
  29.         return;
  30.     case 1:        /* Fatal error with a standard exit */
  31.         exit(EXIT_FAILURE);
  32.     default:    /* Fatal error with a non-standard exit */
  33.         exit(iFatal);
  34.     }
  35. } /* end of werr */
  36.  
  37. void
  38. visdelay_begin(void)
  39. {
  40. } /* end of visdelay_begin */
  41.  
  42. void
  43. visdelay_end(void)
  44. {
  45. } /* end of visdelay_end */
  46.