home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / DVIDPORT.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  1KB  |  43 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  DVIDPORT.H - Direct video portability functions for PC compilers
  5. **
  6. **  For ease of use, makes everything look like Borland, but adds dvid_open()
  7. **  and dvid_close() for Symantec & Zortech
  8. **
  9. **  public domain by Dave Knapp & Bob Stout
  10. */
  11.  
  12. #ifndef DVIDPORT__H
  13. #define DVIDPORT__H
  14.  
  15. #include <stdio.h>
  16. #include <conio.h>
  17. #include <dos.h>
  18.  
  19. #ifdef M_I86      /* Identifier for MSC, QC, Watcom, or SC/ZTC    */
  20.  #ifndef __ZTC__
  21.   #include <graph.h>
  22.   #define dvid_open()
  23.   #define dvid_close()
  24.   #define cputs(s) _outtext((char _far *)(s))
  25.   #define gotoxy(col,row) _settextposition(row,col)
  26.  #else   /* if SC/ZTC   */
  27.   #include <disp.h>
  28.   void gotoxy(int, int);
  29.   #define dvid_open  disp_open
  30.   #define dvid_close  disp_close
  31.   #define cputs(s) disp_puts(s)
  32.   #define cprintf(s) disp_printf(s)
  33.  #endif  /* if ZTC      */
  34. #else
  35.  #define dvid_open()
  36.  #define dvid_close()
  37.  #if defined(__POWERC)
  38.   #define gotoxy(col,row) poscurs(row,col)
  39.  #endif
  40. #endif
  41.  
  42. #endif /* DVIDPORT__H */
  43.