[gforth] / gforth / Attic / io.h  

gforth: gforth/Attic/io.h

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

version 1.2, Tue May 31 07:26:59 1994 UTC version 1.4, Thu Feb 2 18:13:04 1995 UTC
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);
Line 9 
Line 23 
 #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


Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help