Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
918 B

  1. /***
  2. *setjmp.h - definitions/declarations for setjmp/longjmp routines
  3. *
  4. * Copyright (c) 1985-1993, 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. #ifndef _INC_SETJMP
  14. #ifndef __cplusplus
  15. #if (_MSC_VER <= 600)
  16. #define __cdecl _cdecl
  17. #define __far _far
  18. #endif
  19. /* define the buffer type for holding the state information */
  20. #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
  21. #ifndef _JMP_BUF_DEFINED
  22. typedef int jmp_buf[_JBLEN];
  23. #define _JMP_BUF_DEFINED
  24. #endif
  25. /* ANSI requires setjmp be a macro */
  26. #define setjmp _setjmp
  27. /* function prototypes */
  28. int __cdecl _setjmp(jmp_buf);
  29. void __cdecl longjmp(jmp_buf, int);
  30. #endif
  31. #define _INC_SETJMP
  32. #endif