home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / sys / exceptn.h < prev    next >
C/C++ Source or Header  |  1995-12-04  |  2KB  |  64 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_sys_exceptn_h__
  3. #define __dj_include_sys_exceptn_h__
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  20.  
  21. #ifndef __STRICT_ANSI__
  22.  
  23. #ifndef _POSIX_SOURCE
  24.  
  25. #ifdef __dj_include_setjmp_h_
  26. extern jmp_buf *__djgpp_exception_state_ptr;    /* Must include setjmp.h first */
  27. #define __djgpp_exception_state (*__djgpp_exception_state_ptr)
  28. #endif
  29.  
  30. extern unsigned short __djgpp_our_DS;
  31. extern unsigned short __djgpp_app_DS;    /* Data selector invalidated by HW ints */
  32. extern unsigned short __djgpp_ds_alias;    /* Data selector always valid */
  33. extern unsigned short __djgpp_dos_sel;    /* Linear mem selector copy in locked mem */
  34. extern unsigned short __djgpp_hwint_flags; /* 1 = Disable Ctrl-C; 2 = Count Ctrl-Break (don't kill) */
  35. extern unsigned __djgpp_cbrk_count;    /* Count of CTRL-BREAK hits */
  36. extern int __djgpp_exception_inprog;    /* Nested exception count */
  37.  
  38. void __djgpp_exception_toggle(void);
  39. int  __djgpp_set_ctrl_c(int enable);    /* On by default */
  40.  
  41. #endif /* !_POSIX_SOURCE */
  42. #endif /* !__STRICT_ANSI__ */
  43. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  44.  
  45. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  46. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51.  
  52. #endif /* !_POSIX_SOURCE */
  53. #endif /* !__STRICT_ANSI__ */
  54. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  55.  
  56. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  57. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  58.  
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62.  
  63. #endif /* !__dj_include_sys_exceptn_h__ */
  64.