home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c034 / 4.ddi / INCLUDE / SETJMP.H$ / SETJMP.bin
Encoding:
Text File  |  1989-09-27  |  822 b   |  38 lines

  1. /***
  2. *setjmp.h - definitions/declarations for setjmp/longjmp routines
  3. *
  4. *    Copyright (c) 1985-1990, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file defines the machine-dependent buffer used by
  8. *    setjmp/longjmp to save and restore the program state, and
  9. *    declarations for those routines.
  10. *    [ANSI/System V]
  11. *
  12. ****/
  13.  
  14. #if defined(_DLL) && !defined(_MT)
  15. #error Cannot define _DLL without _MT
  16. #endif
  17.  
  18. #ifdef _MT
  19. #define _FAR_ _far
  20. #else
  21. #define _FAR_
  22. #endif
  23.  
  24. /* define the buffer type for holding the state information */
  25.  
  26. #define _JBLEN    9  /* bp, di, si, sp, ret addr, ds */
  27.  
  28. #ifndef _JMP_BUF_DEFINED
  29. typedef  int  jmp_buf[_JBLEN];
  30. #define _JMP_BUF_DEFINED
  31. #endif
  32.  
  33.  
  34. /* function prototypes */
  35.  
  36. int  _FAR_ _cdecl setjmp(jmp_buf);
  37. void _FAR_ _cdecl longjmp(jmp_buf, int);
  38.