1 #define CR '\n' 2 #define ABORT_CHAR 0x03 3 #define BREAK_CHAR 0x02 4 #define CLEANUP_CHAR 0x07 5 #define INFO_CHAR '\024' 6 7 #define BREAK_LEVEL 1 8 #define ABORT_LEVEL 2 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 int ggetchar(void); 15 void gprintf(long where, char *format, ...); 16 void gputchar(int c); 17 int get_ascii(char *c); 18 char *ggets(char *str); 19 int check_aborted(); 20 int askbool(char *prompt, int deflt); 21 char wait_ascii(); 22 void io_init(); 23 /* this is not entirely kosher: nyquist_printf is also declared in sound.h 24 so that all C programs will see it. Perhaps it should go into cext.h, but 25 I'm not sure I want to drag all that into here. 26 */ 27 void nyquist_printf(const char *format, ...); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #define GTRANS 0 34 #define GERROR 1 35 #define GFATAL 2 36 #define GDEBUG 3 37