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

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_setjmp_h_
  3. #define __dj_include_setjmp_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. typedef struct {
  12.   unsigned long __eax, __ebx, __ecx, __edx, __esi;
  13.   unsigned long __edi, __ebp, __esp, __eip, __eflags;
  14.   unsigned short __cs, __ds, __es, __fs, __gs, __ss;
  15.   unsigned long __sigmask; /* for POSIX signals only */
  16.   unsigned long __signum; /* for expansion */
  17.   unsigned long __exception_ptr; /* pointer to previous exception */
  18.   unsigned char __fpu_state[108]; /* for future use */
  19. } jmp_buf[1];
  20.  
  21. void    longjmp(jmp_buf env, int val);
  22. int    setjmp(jmp_buf env);
  23.  
  24. #ifndef __STRICT_ANSI__
  25.  
  26. typedef jmp_buf sigjmp_buf;
  27.  
  28. int    sigsetjmp(sigjmp_buf env, int savemask);
  29. int    siglongjmp(sigjmp_buf env, int val);
  30.  
  31. #ifndef _POSIX_SOURCE
  32.  
  33. #endif /* !_POSIX_SOURCE */
  34. #endif /* !__STRICT_ANSI__ */
  35. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  36.  
  37. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  38. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43.  
  44. #endif /* !__dj_include_setjmp_h_ */
  45.