home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / INCLUDE.ZIP / SETJMP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  888 b   |  47 lines

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