home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6574.LZX / include / setjmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-04  |  683 b   |  30 lines

  1. /* Copyright (c) 1992-1993 SAS Institute, Inc., Cary, NC USA */
  2. /* All Rights Reserved */
  3.  
  4.  
  5. #ifndef _SETJMP_H
  6. #define _SETJMP_H 1
  7.  
  8. /**
  9. *
  10. * This structure is used by the setjmp/longjmp functions to save the
  11. * current environment on the 68000.
  12. *
  13. */
  14.  
  15. struct _JMP_BUF {
  16.     long jmpret,        /* return address */
  17.     jmp_d1, jmp_d2, jmp_d3, jmp_d4, jmp_d5, jmp_d6, jmp_d7,
  18.     jmp_a1, jmp_a2, jmp_a3, jmp_a4, jmp_a5, jmp_a6, jmp_a7;
  19.     long jmp_fp0[3], jmp_fp1[3], jmp_fp2[3], jmp_fp3[3],
  20.          jmp_fp4[3], jmp_fp5[3], jmp_fp6[3], jmp_fp7[3];
  21. };
  22.  
  23. typedef struct _JMP_BUF jmp_buf[1];
  24.  
  25. extern int __setjmp(jmp_buf);
  26. extern void longjmp(jmp_buf, int);
  27. #define setjmp(x) __setjmp(x)
  28.  
  29. #endif
  30.