Source code of Windows XP (NT5)
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.

35 lines
872 B

  1. /***
  2. *setjmp.h - definitions/declarations for setjmp/longjmp routines
  3. *
  4. * Copyright (c) 1985-1988, 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 NO_EXT_KEYS /* extensions enabled */
  14. #define _CDECL cdecl
  15. #else /* extensions not enabled */
  16. #define _CDECL
  17. #endif /* NO_EXT_KEYS */
  18. /* define the buffer type for holding the state information */
  19. #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
  20. #ifndef _JMP_BUF_DEFINED
  21. typedef int jmp_buf[_JBLEN];
  22. #define _JMP_BUF_DEFINED
  23. #endif
  24. /* function prototypes */
  25. int _CDECL setjmp(jmp_buf);
  26. void _CDECL longjmp(jmp_buf, int);