home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume4 / bridge / part02 / talk.h < prev   
C/C++ Source or Header  |  1988-05-31  |  656b  |  41 lines

  1. /*    @(#)talk.h 1.1 86/02/05 SMI; from UCB 1.2 83/04/23    */
  2.  
  3. #include <curses.h>
  4. #include <utmp.h>
  5.  
  6. #define    forever        for(;;)
  7.  
  8. #define    BUF_SIZE    512
  9. #define PUT        1
  10. #define GET        2
  11. #define TYPE        buf.type
  12. #define    WN        buf.wn
  13. #define ROW        buf.row
  14. #define COL        buf.col
  15. #define STR        buf.string
  16.  
  17. FILE *popen();
  18. int quit(), sleeper();
  19.  
  20. extern int sockt;
  21. extern int curses_initialized;
  22. extern int invitation_waiting;
  23.  
  24. extern char *current_state;
  25. extern int current_line;
  26.  
  27. typedef struct xwin {
  28.     WINDOW *x_win;
  29.     int x_nlines;
  30.     int x_ncols;
  31.     int x_line;
  32.     int x_col;
  33. } xwin_t;
  34.  
  35. extern xwin_t comwin[19];
  36.  
  37. typedef struct {
  38.     char    type, wn, row, col;
  39.     char    string[40];
  40. } BMSG;
  41.