home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / DP / Programmation / GCC / gcc_include / setjmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-08  |  762 b   |  43 lines

  1. /*    set jump for ansic.library            */
  2. /*    (c)Copyright 1992 Davide Pasetto     */
  3.  
  4. /* This structure is used by the setjmp & longjmp functions to save */
  5. /* and restore the current environment of the program.                */
  6.  
  7. #ifndef    _SETJMP_H
  8. #define _SETJMP_H
  9.  
  10. struct JMP_BUF
  11.     {
  12.     long jmpret,        /* return address */
  13.          reg_d1,        /* data registers (exept d0) */
  14.          reg_d2,
  15.          reg_d3,
  16.          reg_d4,
  17.          reg_d5,
  18.          reg_d6,
  19.          reg_d7,
  20.          reg_a1,        /* address registers (exept a0) */
  21.          reg_a2,
  22.          reg_a3,
  23.          reg_a4,
  24.          reg_a5,
  25.          reg_a6,
  26.          reg_a7;
  27.     };
  28.  
  29. typedef struct JMP_BUF jmp_buf[1];
  30.  
  31. #ifdef    __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. extern    int    setjmp(jmp_buf);
  36. extern    void    longjmp(jmp_buf, int);
  37.  
  38. #ifdef    __cplusplus
  39. }
  40. #endif
  41.  
  42. #endif    /* _SETIMP_H */
  43.