home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / e_mac / ui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-28  |  595 b   |  33 lines  |  [TEXT/CWIE]

  1. /* ui.h */
  2.  
  3. /* 11Jan95 e */
  4.  
  5. #include "os_mac.h"
  6. #include "os_mac_eventchk.h"
  7.  
  8. #define ui_exit exit
  9. #define ui_read read
  10. #define ui_write write
  11. #define ui_gc_message(msg, arg) fprintf (stderr, msg, arg), fflush (stderr)
  12. #define ui_fatal_error(str, msg) fprintf (stderr, str, msg), exit(2)
  13.  
  14. #undef RETURN
  15.  
  16. #define ui_eventcheck_profiling_P 0
  17.  
  18. #if ui_eventcheck_profiling_P
  19.  
  20. #define PERIODIC_ACTION_FREQ ui_period_counts
  21.  
  22. extern int ui_period_counts;
  23. void ui_periodic_action(void);
  24.  
  25. #else
  26.  
  27. #define PERIODIC_ACTION_FREQ 4096
  28. #define ui_periodic_action() MAYBE_EVENTCHK()
  29.  
  30. #endif
  31.  
  32. /* end of ui.h */
  33.