home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / INCLUDE.ZIP / SETJMP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  733 b   |  48 lines

  1. /*    setjmp.h
  2.  
  3.     Defines typedef and functions for setjmp/longjmp.
  4.  
  5.         Copyright (c) Borland International 1987,1988,1990
  6.     All Rights Reserved.
  7. */
  8.  
  9. #ifndef __SETJMP_H
  10. #define __SETJMP_H
  11.  
  12. #if __STDC__
  13. #define _Cdecl
  14. #else
  15. #define _Cdecl    cdecl
  16. #endif
  17.  
  18. #ifndef __PAS__
  19. #define _CType _Cdecl
  20. #else
  21. #define _CType pascal
  22. #endif
  23.  
  24. typedef struct {
  25.     unsigned    j_sp;
  26.     unsigned    j_ss;
  27.     unsigned    j_flag;
  28.     unsigned    j_cs;
  29.     unsigned    j_ip;
  30.     unsigned    j_bp;
  31.     unsigned    j_di;
  32.     unsigned    j_es;
  33.     unsigned    j_si;
  34.     unsigned    j_ds;
  35. }    jmp_buf[1];
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. void    _CType longjmp(jmp_buf __jmpb, int __retval);
  41. int        _CType setjmp(jmp_buf __jmpb);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. #endif
  47.  
  48.