home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H386 / SETJMP.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  2KB  |  45 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  4. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  5. /*                                                                           */
  6. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  7. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  8. /*    drivers. You may use this code in accordance with the IBM License      */
  9. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  10. /*    Copyright statement may not be removed.                                */
  11. /*                                                                           */
  12. /*****************************************************************************/
  13. /*static char *SCCSID = "@(#)setjmp.h    6.1 90/11/16";*/
  14. /***
  15. *setjmp.h - definitions/declarations for setjmp/longjmp routines
  16. *
  17. *
  18. *Purpose:
  19. *    This file defines the machine-dependent buffer used by
  20. *    setjmp/longjmp to save and restore the program state, and
  21. *    declarations for those routines.
  22. *    [ANSI/System V]
  23. *
  24. *******************************************************************************/
  25.  
  26. #ifndef    CALLTYPE
  27. #define    CALLTYPE    _cdecl
  28. #endif    /* CALLTYPE */
  29.  
  30.  
  31. /* define the buffer type for holding the state information */
  32.  
  33. #define _JBLEN    9  /* bp, di, si, sp, ret addr, ds */
  34.  
  35. #ifndef _JMP_BUF_DEFINED
  36. typedef  int  jmp_buf[_JBLEN];
  37. #define _JMP_BUF_DEFINED
  38. #endif
  39.  
  40.  
  41. /* function prototypes */
  42.  
  43. int CALLTYPE setjmp(jmp_buf);
  44. void CALLTYPE longjmp(jmp_buf, int);
  45.