Diff for /gforth/Attic/io.h between versions 1.2 and 1.4

version 1.2, 1994/05/31 07:26:59 version 1.4, 1995/02/02 18:13:04
Line 1 Line 1
 /* Input driver header */  /* Input driver header */
   
   #include <setjmp.h>
   
   extern jmp_buf throw_jmp_buf;
   
   #ifdef MSDOS
   #  define prep_terminal()
   #  define deprep_terminal()
   #  define install_signal_handlers()
   
   #  include <conio.h>
   
   #  define key()         getch()
   #  define key_query       FLAG(kbhit())
   #else
 unsigned char getkey(FILE *);  unsigned char getkey(FILE *);
 int key_avail(FILE *);  long key_avail(FILE *);
 void prep_terminal();  void prep_terminal();
 void deprep_terminal();  void deprep_terminal();
 void install_signal_handlers(void);  void install_signal_handlers(void);
   
 #define key()           getkey(stdin)  #  define key()         getkey(stdin)
 #define key_query       -(!!key_avail(stdin)) /* !! FLAG(...)? - anton */  #  define key_query     -(!!key_avail(stdin)) /* !! FLAG(...)? - anton */
                         /* flag was originally wrong -- lennart */                          /* flag was originally wrong -- lennart */
   #endif

Removed from v.1.2  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>